| @@ -1,59 +1,59 @@ | | | @@ -1,59 +1,59 @@ |
1 | # $NetBSD: Makefile,v 1.60 2013/02/05 11:57:03 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.61 2013/02/22 13:17:54 obache Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= mikutter.0.2.1.1127 | | 4 | DISTNAME= mikutter.0.2.1.1130 |
5 | PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/./-/} | | 5 | PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/./-/} |
6 | CATEGORIES= net | | 6 | CATEGORIES= net |
7 | MASTER_SITES= http://mikutter.hachune.net/bin/ | | 7 | MASTER_SITES= http://mikutter.hachune.net/bin/ |
8 | | | 8 | |
9 | MAINTAINER= obache@NetBSD.org | | 9 | MAINTAINER= obache@NetBSD.org |
10 | HOMEPAGE= http://mikutter.hachune.net/ | | 10 | HOMEPAGE= http://mikutter.hachune.net/ |
11 | COMMENT= Simple, powerful, and moeful twitter client | | 11 | COMMENT= Simple, powerful, and moeful twitter client |
12 | LICENSE= gnu-gpl-v3 AND cc-by-sa-v3.0 | | 12 | LICENSE= gnu-gpl-v3 AND cc-by-sa-v3.0 |
13 | | | 13 | |
14 | RUBY_VERSION_SUPPORTED= 193 | | 14 | RUBY_VERSION_SUPPORTED= 193 |
15 | | | 15 | |
16 | .include "../../lang/ruby/rubyversion.mk" | | 16 | .include "../../lang/ruby/rubyversion.mk" |
17 | | | 17 | |
18 | DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils | | 18 | DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils |
19 | DEPENDS+= ${RUBY_PKGPREFIX}-hmac>=0.4.0:../../security/ruby-hmac | | 19 | DEPENDS+= ${RUBY_PKGPREFIX}-hmac>=0.4.0:../../security/ruby-hmac |
20 | DEPENDS+= ${RUBY_PKGPREFIX}-gnome2-gtk>=1.0.0:../../x11/ruby-gnome2-gtk | | 20 | DEPENDS+= ${RUBY_PKGPREFIX}-gnome2-gtk>=1.0.0:../../x11/ruby-gnome2-gtk |
21 | DEPENDS+= ${RUBY_PKGPREFIX}-oauth>=0.4.7:../../security/ruby-oauth | | 21 | DEPENDS+= ${RUBY_PKGPREFIX}-oauth>=0.4.7:../../security/ruby-oauth |
22 | DEPENDS+= ${RUBY_PKGPREFIX}-memoize>=1.3.1:../../devel/ruby-memoize | | 22 | DEPENDS+= ${RUBY_PKGPREFIX}-memoize>=1.3.1:../../devel/ruby-memoize |
23 | DEPENDS+= ${RUBY_PKGPREFIX}-bsearch>=1.5:../../devel/ruby-bsearch | | 23 | DEPENDS+= ${RUBY_PKGPREFIX}-bsearch>=1.5:../../devel/ruby-bsearch |
24 | DEPENDS+= ${RUBY_PKGPREFIX}-httpclient-[0-9]*:../../www/ruby-httpclient | | 24 | DEPENDS+= ${RUBY_PKGPREFIX}-httpclient-[0-9]*:../../www/ruby-httpclient |
25 | DEPENDS+= ${RUBY_PKGPREFIX}-addressable>=2.2.6nb1:../../net/ruby-addressable | | 25 | DEPENDS+= ${RUBY_PKGPREFIX}-addressable>=2.2.6nb1:../../net/ruby-addressable |
26 | DEPENDS+= ${RUBY_PKGPREFIX}-typed-array-[0-9]*:../../misc/ruby-typed-array | | 26 | DEPENDS+= ${RUBY_PKGPREFIX}-typed-array-[0-9]*:../../misc/ruby-typed-array |
27 | # notify-send | | 27 | # notify-send |
28 | DEPENDS+= libnotify-[0-9]*:../../sysutils/libnotify | | 28 | DEPENDS+= libnotify-[0-9]*:../../sysutils/libnotify |
29 | | | 29 | |
30 | RUBY_JSON_REQD= 1.5.1 | | 30 | RUBY_JSON_REQD= 1.5.1 |
31 | WRKSRC= ${WRKDIR}/mikutter | | 31 | WRKSRC= ${WRKDIR}/mikutter |
32 | USE_LANGUAGES= # none | | 32 | USE_LANGUAGES= # none |
33 | USE_TOOLS+= pax | | 33 | USE_TOOLS+= pax |
34 | | | 34 | |
35 | REPLACE_RUBY= mikutter.rb devel/makechi.rb | | 35 | REPLACE_RUBY= mikutter.rb devel/makechi.rb |
36 | REPLACE_RUBY_DIRS= core | | 36 | REPLACE_RUBY_DIRS= core |
37 | .include "../../lang/ruby/replace.mk" | | 37 | .include "../../lang/ruby/replace.mk" |
38 | | | 38 | |
39 | INSTALLATION_DIRS+= bin share/doc/mikutter share/applications share/mikutter | | 39 | INSTALLATION_DIRS+= bin share/doc/mikutter share/applications share/mikutter |
40 | | | 40 | |
41 | do-build: | | 41 | do-build: |
42 | cd ${WRKSRC}/devel && \ | | 42 | cd ${WRKSRC}/devel && \ |
43 | ${RM} -rf debian | | 43 | ${RM} -rf debian |
44 | cd ${WRKSRC}/core/lib && \ | | 44 | cd ${WRKSRC}/core/lib && \ |
45 | ${RM} -rf addressable json oauth ruby-bsearch-1.5 typed-array | | 45 | ${RM} -rf addressable json oauth ruby-bsearch-1.5 typed-array |
46 | cd ${WRKSRC}/vendor && \ | | 46 | cd ${WRKSRC}/vendor && \ |
47 | ${RM} -rf addressable bsearch* hmac*.rb json* memoize.rb oauth* ruby-bsearch-1.5 typed-array* | | 47 | ${RM} -rf addressable bsearch* hmac*.rb json* memoize.rb oauth* ruby-bsearch-1.5 typed-array* |
48 | ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/desktop.in > ${WRKDIR}/desktop | | 48 | ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/desktop.in > ${WRKDIR}/desktop |
49 | ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/mikutter.sh.in > ${WRKDIR}/mikutter.sh | | 49 | ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/mikutter.sh.in > ${WRKDIR}/mikutter.sh |
50 | | | 50 | |
51 | do-install: | | 51 | do-install: |
52 | ${INSTALL_SCRIPT} ${WRKSRC}/mikutter.rb ${DESTDIR}${PREFIX}/share/mikutter | | 52 | ${INSTALL_SCRIPT} ${WRKSRC}/mikutter.rb ${DESTDIR}${PREFIX}/share/mikutter |
53 | cd ${WRKSRC} && pax -rwpp -s '/.*\.orig//' core devel plugin vendor ${DESTDIR}${PREFIX}/share/mikutter | | 53 | cd ${WRKSRC} && pax -rwpp -s '/.*\.orig//' core devel plugin vendor ${DESTDIR}${PREFIX}/share/mikutter |
54 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/mikutter | | 54 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/mikutter |
55 | ${INSTALL_SCRIPT} ${WRKDIR}/mikutter.sh ${DESTDIR}${PREFIX}/bin/mikutter | | 55 | ${INSTALL_SCRIPT} ${WRKDIR}/mikutter.sh ${DESTDIR}${PREFIX}/bin/mikutter |
56 | ${INSTALL_DATA} ${WRKDIR}/desktop ${DESTDIR}${PREFIX}/share/applications/mikutter.desktop | | 56 | ${INSTALL_DATA} ${WRKDIR}/desktop ${DESTDIR}${PREFIX}/share/applications/mikutter.desktop |
57 | | | 57 | |
58 | .include "../../lang/ruby/json.mk" | | 58 | .include "../../lang/ruby/json.mk" |
59 | .include "../../mk/bsd.pkg.mk" | | 59 | .include "../../mk/bsd.pkg.mk" |