2012-10-12 00:36:17 +02:00
|
|
|
# Created by: TAKATSU Tomonari <tota@FreeBSD.org>
|
2011-09-27 13:11:00 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mikutter
|
2015-08-29 22:36:26 +02:00
|
|
|
PORTVERSION= 3.2.6
|
2011-09-27 13:11:00 +02:00
|
|
|
CATEGORIES= net-im ruby
|
|
|
|
MASTER_SITES= http://mikutter.hachune.net/bin/ \
|
2015-05-14 12:15:04 +02:00
|
|
|
LOCAL/tota/${PORTNAME}
|
2011-09-27 13:11:00 +02:00
|
|
|
DISTNAME= ${PORTNAME}.${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= tota@FreeBSD.org
|
2012-08-03 17:54:35 +02:00
|
|
|
COMMENT= Simple, powerful, and moeful Twitter client
|
2011-09-27 13:11:00 +02:00
|
|
|
|
2014-08-17 03:33:34 +02:00
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2011-09-27 13:11:00 +02:00
|
|
|
|
2015-05-17 08:30:28 +02:00
|
|
|
RUN_DEPENDS= rubygem-gtk2>=2.2.5:${PORTSDIR}/x11-toolkits/rubygem-gtk2 \
|
2014-09-22 00:42:33 +02:00
|
|
|
rubygem-cairo>=1.12.9:${PORTSDIR}/graphics/rubygem-cairo \
|
2014-10-26 18:04:07 +01:00
|
|
|
rubygem-addressable>=2.3.6:${PORTSDIR}/www/rubygem-addressable \
|
2015-05-24 17:36:21 +02:00
|
|
|
rubygem-ruby-hmac>=0.4.0:${PORTSDIR}/security/rubygem-ruby-hmac \
|
2014-10-26 18:04:07 +01:00
|
|
|
rubygem-json_pure>=1.8.1:${PORTSDIR}/devel/rubygem-json_pure \
|
|
|
|
rubygem-memoize>=1.3.1:${PORTSDIR}/devel/rubygem-memoize \
|
2013-06-23 14:34:33 +02:00
|
|
|
rubygem-oauth>=0.4.7:${PORTSDIR}/net/rubygem-oauth \
|
2014-07-26 01:25:18 +02:00
|
|
|
rubygem-typed-array>=0.1.2:${PORTSDIR}/devel/rubygem-typed-array \
|
|
|
|
rubygem-delayer>=0.0.2:${PORTSDIR}/devel/rubygem-delayer \
|
2014-11-24 16:47:12 +01:00
|
|
|
rubygem-gettext>=2.3.1:${PORTSDIR}/devel/rubygem-gettext \
|
2015-01-17 22:36:57 +01:00
|
|
|
rubygem-moneta>=0.7:${PORTSDIR}/devel/rubygem-moneta \
|
2015-06-13 13:52:31 +02:00
|
|
|
rubygem-nokogiri>=1.6.3.1:${PORTSDIR}/textproc/rubygem-nokogiri \
|
|
|
|
rubygem-httpclient>=0:${PORTSDIR}/www/rubygem-httpclient
|
2011-09-27 13:11:00 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
2015-05-17 08:30:28 +02:00
|
|
|
USES= shebangfix
|
2011-09-27 13:11:00 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2015-05-17 08:30:28 +02:00
|
|
|
SHEBANG_FILES= mikutter.rb \
|
|
|
|
core/miku/miku.rb \
|
|
|
|
core/lib/piapro.rb \
|
|
|
|
devel/makechi.rb
|
2011-09-27 13:11:00 +02:00
|
|
|
|
2013-11-25 18:51:17 +01:00
|
|
|
PORTDOCS= README
|
2011-09-27 13:11:00 +02:00
|
|
|
SUB_FILES= mikutter.desktop
|
|
|
|
SUB_LIST= RUBY_SITELIBDIR=${RUBY_SITELIBDIR}
|
|
|
|
|
2013-11-25 18:51:17 +01:00
|
|
|
REINPLACE_ARGS= -i ''
|
2011-09-27 13:11:00 +02:00
|
|
|
|
2015-06-13 13:52:31 +02:00
|
|
|
OPTIONS_DEFINE= DOCS NOTIFY
|
2012-06-12 17:10:39 +02:00
|
|
|
NOTIFY_DESC= notify-send support
|
2011-09-27 13:11:00 +02:00
|
|
|
|
2012-06-12 17:10:39 +02:00
|
|
|
OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
|
2011-09-27 13:11:00 +02:00
|
|
|
|
2015-05-17 08:30:28 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2014-12-23 15:34:59 +01:00
|
|
|
|
2014-10-26 18:04:07 +01:00
|
|
|
NOTIFY_RUN_DEPENDS= notify-send:${PORTSDIR}/devel/libnotify
|
2012-06-12 17:10:39 +02:00
|
|
|
|
2011-09-27 13:11:00 +02:00
|
|
|
post-patch:
|
2014-01-09 22:27:56 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|%%RUBY_SITELIBDIR%%|${RUBY_SITELIBDIR}|" \
|
2011-09-27 13:11:00 +02:00
|
|
|
${WRKSRC}/mikutter.rb
|
2013-06-23 14:34:33 +02:00
|
|
|
@${RM} -r ${WRKSRC}/vendor
|
2011-09-27 13:11:00 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-09-29 14:25:20 +02:00
|
|
|
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/mikutter.rb ${STAGEDIR}${PREFIX}/bin/mikutter
|
2013-06-23 14:34:33 +02:00
|
|
|
cd ${INSTALL_WRKSRC} \
|
2013-09-29 14:25:20 +02:00
|
|
|
&& ${COPYTREE_SHARE} core ${STAGEDIR}${RUBY_SITELIBDIR}/mikutter \
|
|
|
|
&& ${COPYTREE_SHARE} plugin ${STAGEDIR}${RUBY_SITELIBDIR}/mikutter
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${SUB_FILES} ${STAGEDIR}${PREFIX}/share/applications/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2011-09-27 13:11:00 +02:00
|
|
|
|
2013-11-25 18:51:17 +01:00
|
|
|
x-generate-plist: stage
|
2011-09-27 13:11:00 +02:00
|
|
|
${ECHO} bin/mikutter > pkg-plist.new
|
2013-11-25 18:51:17 +01:00
|
|
|
${FIND} ${STAGEDIR}${RUBY_SITELIBDIR}/mikutter -type f | ${SORT} | ${SED} -e 's,${STAGEDIR}${RUBY_SITELIBDIR},%%RUBY_SITELIBDIR%%,' >> pkg-plist.new
|
2011-09-27 13:11:00 +02:00
|
|
|
${ECHO} share/applications/mikutter.desktop >> pkg-plist.new
|
|
|
|
|
2015-05-17 08:30:28 +02:00
|
|
|
.include <bsd.port.mk>
|