2014-01-14 09:25:17 +01:00
|
|
|
# $NetBSD: Makefile,v 1.75 2014/01/14 08:25:17 obache Exp $
|
2011-04-05 13:47:16 +02:00
|
|
|
#
|
|
|
|
|
2014-01-14 09:25:17 +01:00
|
|
|
DISTNAME= mikutter.0.2.2.1476
|
2011-04-05 13:47:16 +02:00
|
|
|
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/./-/}
|
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://mikutter.hachune.net/bin/
|
|
|
|
|
|
|
|
MAINTAINER= obache@NetBSD.org
|
|
|
|
HOMEPAGE= http://mikutter.hachune.net/
|
2013-05-15 13:24:14 +02:00
|
|
|
COMMENT= Simple, powerful, and moeful twitter client
|
2012-12-17 18:44:20 +01:00
|
|
|
LICENSE= gnu-gpl-v3 AND cc-by-sa-v3.0
|
2011-04-05 13:47:16 +02:00
|
|
|
|
2013-08-05 14:46:52 +02:00
|
|
|
RUBY_VERSION_SUPPORTED= 193 200
|
2012-03-02 07:34:35 +01:00
|
|
|
|
2011-04-05 13:47:16 +02:00
|
|
|
.include "../../lang/ruby/rubyversion.mk"
|
|
|
|
|
|
|
|
DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
|
2011-05-29 08:54:59 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-hmac>=0.4.0:../../security/ruby-hmac
|
2013-05-15 13:24:14 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-gnome2-gtk>=1.2.5:../../x11/ruby-gnome2-gtk
|
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-rcairo>=1.10.0:../../graphics/ruby-rcairo
|
2013-01-10 12:20:46 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-oauth>=0.4.7:../../security/ruby-oauth
|
2011-04-05 13:47:16 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-memoize>=1.3.1:../../devel/ruby-memoize
|
2011-06-12 14:41:15 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-bsearch>=1.5:../../devel/ruby-bsearch
|
2013-05-15 13:24:14 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-addressable-[0-9]*:../../net/ruby-addressable
|
2013-01-05 08:46:04 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-typed-array-[0-9]*:../../misc/ruby-typed-array
|
2013-06-23 03:09:43 +02:00
|
|
|
#DEPENDS+= ${RUBY_PKGPREFIX}-test-unit-[0-9]*:../../devel/ruby-test-unit
|
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
|
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
|
|
|
|
|
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"
|