1 # $NetBSD: Makefile,v 1.64 2013/03/30 09:45:52 obache Exp $
4 DISTNAME
= mikutter
.0.2.1.1142
5 PKGNAME
= ${RUBY_PKGPREFIX}-${DISTNAME
:S
/.
/-/}
7 MASTER_SITES
= http
://mikutter.hachune.net
/bin
/
9 MAINTAINER
= obache@NetBSD.org
10 HOMEPAGE
= http
://mikutter.hachune.net
/
11 COMMENT
= Simply
, powerfully
, and moefully twitter client
12 LICENSE
= gnu-gpl-v3 AND cc-by-sa-v3.0
14 RUBY_VERSION_SUPPORTED
= 193
16 .
include "../../lang/ruby/rubyversion.mk"
18 DEPENDS
+= xdg-utils-
[0-9]*:..
/..
/misc
/xdg-utils
19 DEPENDS
+= ${RUBY_PKGPREFIX}-hmac
>=0.4.0:..
/..
/security
/ruby-hmac
20 DEPENDS
+= ${RUBY_PKGPREFIX}-gnome2-gtk
>=1.0.0:..
/..
/x11
/ruby-gnome2-gtk
21 DEPENDS
+= ${RUBY_PKGPREFIX}-oauth
>=0.4.7:..
/..
/security
/ruby-oauth
22 DEPENDS
+= ${RUBY_PKGPREFIX}-memoize
>=1.3.1:..
/..
/devel
/ruby-memoize
23 DEPENDS
+= ${RUBY_PKGPREFIX}-bsearch
>=1.5:..
/..
/devel
/ruby-bsearch
24 DEPENDS
+= ${RUBY_PKGPREFIX}-httpclient-
[0-9]*:..
/..
/www
/ruby-httpclient
25 DEPENDS
+= ${RUBY_PKGPREFIX}-addressable
>=2.2.6nb1
:..
/..
/net
/ruby-addressable
26 DEPENDS
+= ${RUBY_PKGPREFIX}-typed-array-
[0-9]*:..
/..
/misc
/ruby-typed-array
28 DEPENDS
+= libnotify-
[0-9]*:..
/..
/sysutils
/libnotify
31 WRKSRC
= ${WRKDIR}/mikutter
35 REPLACE_RUBY
= mikutter.rb devel
/makechi.rb
36 REPLACE_RUBY_DIRS
= core
37 .
include "../../lang/ruby/replace.mk"
39 INSTALLATION_DIRS
+= bin share
/doc
/mikutter share
/applications share
/mikutter
42 cd
${WRKSRC}/devel
&& \
44 cd
${WRKSRC}/core
/lib
&& \
45 ${RM} -rf addressable json oauth ruby-bsearch-1.5 typed-array
46 cd
${WRKSRC}/vendor
&& \
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
49 ${SED} -e
's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/mikutter.sh.in
> ${WRKDIR}/mikutter.sh
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
54 ${INSTALL_DATA} ${WRKSRC}/README
${DESTDIR}${PREFIX}/share
/doc
/mikutter
55 ${INSTALL_SCRIPT} ${WRKDIR}/mikutter.sh
${DESTDIR}${PREFIX}/bin
/mikutter
56 ${INSTALL_DATA} ${WRKDIR}/desktop
${DESTDIR}${PREFIX}/share
/applications
/mikutter.desktop
58 .
include "../../lang/ruby/json.mk"
59 .
include "../../mk/bsd.pkg.mk"