1 # $NetBSD: Makefile,v 1.42 2012/03/24 03:01:54 obache Exp $
4 DISTNAME= mikutter.0.1.0.723
5 PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/./-/}
8 MASTER_SITES= http://mikutter.hachune.net/bin/
10 MAINTAINER= obache@NetBSD.org
11 HOMEPAGE= http://mikutter.hachune.net/
12 COMMENT= Simply, powerfully, and moefully twitter client
15 PKG_DESTDIR_SUPPORT= user-destdir
17 RUBY_VERSION_SUPPORTED= 192 193
19 .include "../../lang/ruby/rubyversion.mk"
21 DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
22 DEPENDS+= ${RUBY_PKGPREFIX}-hmac>=0.4.0:../../security/ruby-hmac
23 DEPENDS+= ${RUBY_PKGPREFIX}-gnome2-gtk>=1.0.0:../../x11/ruby-gnome2-gtk
25 #DEPENDS+= ${RUBY_PKGPREFIX}-oauth>=0.3.6:../../security/ruby-oauth
26 # need included escape.rb
27 #DEPENDS+= ${RUBY_PKGPREFIX}-escape-[0-9]*:../../textproc/ruby-escape
28 DEPENDS+= ${RUBY_PKGPREFIX}-memoize>=1.3.1:../../devel/ruby-memoize
29 DEPENDS+= ${RUBY_PKGPREFIX}-bsearch>=1.5:../../devel/ruby-bsearch
30 DEPENDS+= ${RUBY_PKGPREFIX}-httpclient-[0-9]*:../../www/ruby-httpclient
31 DEPENDS+= ${RUBY_PKGPREFIX}-addressable>=2.2.6nb1:../../net/ruby-addressable
33 DEPENDS+= libnotify-[0-9]*:../../sysutils/libnotify
36 WRKSRC= ${WRKDIR}/mikutter
40 REPLACE_RUBY= mikutter.rb
41 RUBY_ENCODING_ARG= -Ku
42 REPLACE_RUBY_DIRS= core
43 .include "../../lang/ruby/replace.mk"
45 INSTALLATION_DIRS+= bin share/doc/mikutter share/applications share/mikutter
48 cd ${WRKSRC}/core/lib && \
49 ${RM} -rf json* hmac*.rb memoize.rb ruby-bsearch-* addressable && \
50 ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/desktop.in > ${WRKDIR}/desktop
51 ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/mikutter.sh.in > ${WRKDIR}/mikutter.sh
54 ${INSTALL_SCRIPT} ${WRKSRC}/mikutter.rb ${DESTDIR}${PREFIX}/share/mikutter
55 cd ${WRKSRC} && pax -rwpp -s '/.*\.orig//' core plugin ${DESTDIR}${PREFIX}/share/mikutter
56 ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/mikutter
57 ${INSTALL_SCRIPT} ${WRKDIR}/mikutter.sh ${DESTDIR}${PREFIX}/bin/mikutter
58 ${INSTALL_DATA} ${WRKDIR}/desktop ${DESTDIR}${PREFIX}/share/applications/mikutter.desktop
60 .include "../../lang/ruby/json.mk"
61 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
62 .include "../../mk/bsd.pkg.mk"