# $NetBSD: Makefile,v 1.6 2020/05/21 16:04:23 taca Exp $ PKGNAME= ${RUBY_PKGPREFIX}-mikutter-plugins-twitter-4.0 PKGREVISION= 2 DIST_SUBDIR= mikutter-plugins CATEGORIES= net MASTER_SITES= ${MASTER_SITE_GITHUB:=mikutter/} EXTRACT_SUFX= .tar.gz MAINTAINER= tsutsui@NetBSD.org HOMEPAGE= https://github.com/mikutter/twitter_bootstrap COMMENT= Plugins for mikutter to use Twitter LICENSE= mit PLUGIN_DISTNAME+= api_request_file_cache-1.0 # XXX direct message doesn't work after Twitter API changes #PLUGIN_DISTNAME+= direct_message-1.1 PLUGIN_DISTNAME+= followingcontrol-1.2 PLUGIN_DISTNAME+= home_timeline-2.0 PLUGIN_DISTNAME+= list-2.1 PLUGIN_DISTNAME+= list_for_profile-1.0 PLUGIN_DISTNAME+= list_settings-1.0 PLUGIN_DISTNAME+= mentions-1.0 PLUGIN_DISTNAME+= message_detail_view-1.0 PLUGIN_DISTNAME+= message_favorite-1.0 PLUGIN_DISTNAME+= message_retweet-1.0 PLUGIN_DISTNAME+= ratelimit-1.0 PLUGIN_DISTNAME+= rest-1.1 PLUGIN_DISTNAME+= saved_search-1.1 PLUGIN_DISTNAME+= streaming-2.0 PLUGIN_DISTNAME+= twitter-1.1 PLUGIN_DISTNAME+= twitter_activity-1.0 PLUGIN_DISTNAME+= twitter_datasource-1.1 PLUGIN_DISTNAME+= twitter_settings-1.0 PLUGIN_DISTNAME+= user_detail_view-1.0 DISTFILES= .for plugin in ${PLUGIN_DISTNAME} DISTFILES+= ${plugin}${EXTRACT_SUFX} SITES.${plugin}${EXTRACT_SUFX}= -${MASTER_SITES:=${plugin:C/-[^-]*$//}/archive/v${plugin:C/^.*-//}${EXTRACT_SUFX}} .endfor DEPENDS+= ${RUBY_PKGPREFIX}-mikutter>=4.0.4:../../net/mikutter DEPENDS+= ${RUBY_PKGPREFIX}-twitter-text-simpleidn>=3.0.0.0:../../net/ruby-twitter-text-simpleidn USE_TOOLS+= pax EXTRACT_DIR= ${WRKDIR}/plugin WRKSRC= ${EXTRACT_DIR} INSTALLATION_DIRS+= share/mikutter/plugin NO_BUILD= yes post-extract: .for plugin in ${PLUGIN_DISTNAME} # drop version tag strings from plugin names (cd ${WRKSRC} && ${MV} ${plugin} ${plugin:C/-[^-]*$//}) .endfor do-install: (cd ${WRKSRC} && pax -rwpp -s '/.*\.orig//' . \ ${DESTDIR}${PREFIX}/share/mikutter/plugin) .include "../../lang/ruby/replace.mk" .include "../../mk/bsd.pkg.mk"