2016-02-27 03:30:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.115 2016/02/27 02:30:24 tsutsui Exp $
|
2011-04-05 13:47:16 +02:00
|
|
|
#
|
|
|
|
|
2016-02-27 03:30:24 +01:00
|
|
|
DISTNAME= mikutter.3.3.8
|
2014-06-08 02:55:50 +02:00
|
|
|
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/./-/}
|
2011-04-05 13:47:16 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://mikutter.hachune.net/bin/
|
|
|
|
|
2016-01-24 17:29:23 +01:00
|
|
|
MAINTAINER= tsutsui@NetBSD.org
|
2011-04-05 13:47:16 +02:00
|
|
|
HOMEPAGE= http://mikutter.hachune.net/
|
2013-05-15 13:24:14 +02:00
|
|
|
COMMENT= Simple, powerful, and moeful twitter client
|
2014-05-18 06:28:17 +02:00
|
|
|
LICENSE= mit AND cc-by-sa-v3.0
|
2011-04-05 13:47:16 +02:00
|
|
|
|
|
|
|
.include "../../lang/ruby/rubyversion.mk"
|
|
|
|
|
2016-01-09 20:36:12 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-pluggaloid-[0-9]*:../../net/ruby-pluggaloid
|
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-gnome2-gtk>=3.0.7:../../x11/ruby-gnome2-gtk
|
2014-05-18 06:28:17 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-gettext>=3.0.1:../../devel/ruby-gettext
|
2016-02-27 03:30:24 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-oauth>=0.4<0.5:../../security/ruby-oauth
|
2014-03-11 13:16:39 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-addressable>=2.3:../../net/ruby-addressable
|
2016-01-09 20:36:12 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-memoist-[0-9]*:../../devel/ruby-memoist
|
2014-06-15 11:00:12 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-hmac>=0.4:../../security/ruby-hmac
|
2014-03-11 13:16:39 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-typed-array>=0.1:../../misc/ruby-typed-array
|
2014-05-18 06:28:17 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-delayer-[0-9]*:../../devel/ruby-delayer
|
2016-01-09 20:36:12 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-delayer-deferred-[0-9]*:../../devel/ruby-delayer-deferred
|
2014-12-30 09:05:17 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-nokogiri-[0-9]*:../../textproc/ruby-nokogiri
|
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-httpclient-[0-9]*:../../www/ruby-httpclient
|
2014-11-18 12:25:08 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-moneta>=0.7:../../databases/ruby-moneta
|
2016-01-09 20:36:12 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-twitter-text-[0-9]*:../../net/ruby-twitter-text
|
2011-04-05 13:47:16 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/mikutter
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
USE_TOOLS+= pax
|
|
|
|
|
2012-12-17 18:44:20 +01:00
|
|
|
REPLACE_RUBY= mikutter.rb devel/makechi.rb
|
2011-04-05 13:47:16 +02:00
|
|
|
REPLACE_RUBY_DIRS= core
|
|
|
|
.include "../../lang/ruby/replace.mk"
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= bin share/doc/mikutter share/applications share/mikutter
|
|
|
|
|
|
|
|
do-build:
|
2012-12-17 18:44:20 +01:00
|
|
|
cd ${WRKSRC}/devel && \
|
|
|
|
${RM} -rf debian
|
2013-05-15 13:24:14 +02:00
|
|
|
${RM} -rf ${WRKSRC}/vendor
|
2011-04-05 13:47:16 +02:00
|
|
|
${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/desktop.in > ${WRKDIR}/desktop
|
|
|
|
${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/mikutter.sh.in > ${WRKDIR}/mikutter.sh
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mikutter.rb ${DESTDIR}${PREFIX}/share/mikutter
|
2014-03-11 13:16:39 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Gemfile ${DESTDIR}${PREFIX}/share/mikutter
|
2013-05-15 13:24:14 +02:00
|
|
|
cd ${WRKSRC} && pax -rwpp -s '/.*\.orig//' core devel plugin ${DESTDIR}${PREFIX}/share/mikutter
|
2011-04-05 13:47:16 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/mikutter
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mikutter.sh ${DESTDIR}${PREFIX}/bin/mikutter
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/desktop ${DESTDIR}${PREFIX}/share/applications/mikutter.desktop
|
|
|
|
|
2014-03-15 09:17:29 +01:00
|
|
|
RUBY_JSON_TYPE= pure
|
|
|
|
RUBY_JSON_REQD= 1.8
|
2011-11-23 06:29:52 +01:00
|
|
|
.include "../../lang/ruby/json.mk"
|
2011-04-05 13:47:16 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|