diff options
author | tsutsui <tsutsui@pkgsrc.org> | 2016-02-27 14:30:58 +0000 |
---|---|---|
committer | tsutsui <tsutsui@pkgsrc.org> | 2016-02-27 14:30:58 +0000 |
commit | 7c2125f8e0f0fc6403071318feb02d20ecc024a0 (patch) | |
tree | bfbedd87520cdf7ff3263f7e174a39504757d336 /net | |
parent | c3471e9434df563e8d4b8ab52988c7a2c9050a6d (diff) | |
download | pkgsrc-7c2125f8e0f0fc6403071318feb02d20ecc024a0.tar.gz |
Import sayaka-3.2.0 as net/sayaka.
Sayaka is a light-weight terminal specific twitter client which
supports userstream and sixel graphics etc.
There are two variants (PHP based version and and Vala based version)
in the sayaka distribution and this package uses the newer Vala based one.
Diffstat (limited to 'net')
-rw-r--r-- | net/sayaka/DESCR | 4 | ||||
-rw-r--r-- | net/sayaka/Makefile | 41 | ||||
-rw-r--r-- | net/sayaka/PLIST | 5 | ||||
-rw-r--r-- | net/sayaka/distinfo | 7 | ||||
-rw-r--r-- | net/sayaka/patches/patch-vala_sayaka.vala | 15 |
5 files changed, 72 insertions, 0 deletions
diff --git a/net/sayaka/DESCR b/net/sayaka/DESCR new file mode 100644 index 00000000000..c3cb1e18e2d --- /dev/null +++ b/net/sayaka/DESCR @@ -0,0 +1,4 @@ +Sayaka is a light-weight terminal specific twitter client which +supports userstream and sixel graphics etc. +There are two variants (PHP based version and and Vala based version) +in the sayaka distribution and this package uses the newer Vala based one. diff --git a/net/sayaka/Makefile b/net/sayaka/Makefile new file mode 100644 index 00000000000..15a1d1c3506 --- /dev/null +++ b/net/sayaka/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1 2016/02/27 14:30:58 tsutsui Exp $ + +DISTNAME= sayaka-3.2.0 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_GITHUB:=isaki68k/} +GITHUB_PROJECT= ${DISTNAME:S/-${PKGVERSION_NOREV}//} +GITHUB_TAG= ${PKGVERSION_NOREV} + +MAINTAINER= tsutsui@NetBSD.org +HOMEPAGE= ${MASTER_SITES}${GITHUB_PROJECT} +COMMENT= Terminal specific Twitter client +LICENSE= modified-bsd + +DEPENDS+= glib-networking-[0-9]*:../../net/glib-networking + +USE_TOOLS= pax + +INSTALLATION_DIRS+= bin share/sayaka + +.include "../../mk/bsd.prefs.mk" + +SUBST_CLASSES+= prefix +SUBST_MESSAGE.prefix= Fixing ${PREFIX} +SUBST_STAGE.prefix= pre-configure +SUBST_FILES.prefix= vala/sayaka.vala +SUBST_SED.prefix= -e 's,@PREFIX@,${PREFIX},g' + +do-build: + cd ${WRKSRC}/vala && ${MAKE} vala-make2 && ${MAKE} sayaka + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/vala/sayaka ${DESTDIR}${PREFIX}/bin + cd ${WRKSRC} && pax -rwpp -s '/.*\.orig//' \ + *.png ${DESTDIR}${PREFIX}/share/sayaka + +BUILDLINK_DEPMETHOD.vala= build +BUILDLINK_API_DEPENDS.vala+= vala>=0.28.0 +.include "../../lang/vala/buildlink3.mk" +.include "../../devel/glib2/buildlink3.mk" +.include "../../graphics/gdk-pixbuf2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/sayaka/PLIST b/net/sayaka/PLIST new file mode 100644 index 00000000000..9e06ec95356 --- /dev/null +++ b/net/sayaka/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1 2016/02/27 14:30:58 tsutsui Exp $ +bin/sayaka +share/sayaka/colormap16.png +share/sayaka/colormap8.png +share/sayaka/colormapx68k16.png diff --git a/net/sayaka/distinfo b/net/sayaka/distinfo new file mode 100644 index 00000000000..9a5b9044d99 --- /dev/null +++ b/net/sayaka/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/02/27 14:30:58 tsutsui Exp $ + +SHA1 (sayaka-3.2.0.tar.gz) = 010cf54c52390da25ffcfbd6dbbd90d01232d878 +RMD160 (sayaka-3.2.0.tar.gz) = 44989c936ab9a7371472c3d5376eb07e0e04f0ad +SHA512 (sayaka-3.2.0.tar.gz) = 064164b4149ac02d716b24253427c086383f772c1d6c4d3b189878146f2f70868874ad4eecb6290d24b0f1e091bdcab2f7f10f87f89a88f2d37c206a023dd4f6 +Size (sayaka-3.2.0.tar.gz) = 91518 bytes +SHA1 (patch-vala_sayaka.vala) = 32e40ade29ed326e739eae7d25cb78723ee750b9 diff --git a/net/sayaka/patches/patch-vala_sayaka.vala b/net/sayaka/patches/patch-vala_sayaka.vala new file mode 100644 index 00000000000..abc59b8c297 --- /dev/null +++ b/net/sayaka/patches/patch-vala_sayaka.vala @@ -0,0 +1,15 @@ +$NetBSD: patch-vala_sayaka.vala,v 1.1 2016/02/27 14:30:58 tsutsui Exp $ + +- use colormap files installed into pkgsrc dir + +--- vala/sayaka.vala.orig 2016-02-24 12:58:04.000000000 +0000 ++++ vala/sayaka.vala +@@ -176,7 +176,7 @@ public class SayakaMain + cachedir = basedir + "cache"; + tokenfile = basedir + "token.json"; + ngwordfile = basedir + "ngword.json"; +- colormapdir = basedir; ++ colormapdir = "@PREFIX@/share/sayaka"; + + address_family = SocketFamily.INVALID; // UNSPEC がないので代用 + color_mode = 256; |