diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-06-16 07:39:30 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-06-16 07:39:30 +0800 |
commit | ec5d42f28833f2443e10edd58a963ccc32373e7e (patch) | |
tree | 575635d99b1b0ff7316136152f6d997956b5ce99 | |
parent | e293f114f9f1499a44b61785ffb24c1f41705b71 (diff) | |
download | freebsd-ports-graphics-ec5d42f28833f2443e10edd58a963ccc32373e7e.tar.gz freebsd-ports-graphics-ec5d42f28833f2443e10edd58a963ccc32373e7e.tar.zst freebsd-ports-graphics-ec5d42f28833f2443e10edd58a963ccc32373e7e.zip |
Command-line twitter client for sixel supported terminal.
WWW: https://github.com/isaki68k/sayaka
PR: 200867
Submitted by: sue@iwmt.org
-rw-r--r-- | net-im/Makefile | 1 | ||||
-rw-r--r-- | net-im/sayaka/Makefile | 47 | ||||
-rw-r--r-- | net-im/sayaka/distinfo | 2 | ||||
-rw-r--r-- | net-im/sayaka/files/patch-sayaka.sh | 30 | ||||
-rw-r--r-- | net-im/sayaka/pkg-descr | 3 |
5 files changed, 83 insertions, 0 deletions
diff --git a/net-im/Makefile b/net-im/Makefile index 261520b8d8b..41945c4bff9 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -146,6 +146,7 @@ SUBDIR += rubygem-lita SUBDIR += rubygem-termtter SUBDIR += rubygem-tinder + SUBDIR += sayaka SUBDIR += sendxmpp SUBDIR += sigram SUBDIR += skype diff --git a/net-im/sayaka/Makefile b/net-im/sayaka/Makefile new file mode 100644 index 00000000000..75ede0d48c1 --- /dev/null +++ b/net-im/sayaka/Makefile @@ -0,0 +1,47 @@ +# $FreeBSD$ + +PORTNAME= sayaka +PORTVERSION= 3.0.9 +CATEGORIES= net-im + +MAINTAINER= sue@iwmt.org +COMMENT= Command-line twitter client for SIXEL-supported terminal + +LICENSE= BSD2CLAUSE + +RUN_DEPENDS= curl:${PORTSDIR}/ftp/curl \ + img2sixel:${PORTSDIR}/graphics/libsixel + +USE_GITHUB= yes +GH_ACCOUNT= isaki68k + +PLIST_FILES= bin/sayaka + +USE_PHP= curl filter hash json mbstring pcntl pdo pdo_sqlite sqlite3 +WANT_PHP_CLI= yes + +PORTDOCS= README.md +PORTDATA= OAuth.php \ + TwistOAuth.php \ + colormap16.png \ + colormap8.png \ + config.php \ + sayaka.php \ + subr.php \ + twitteroauth.php + +NO_BUILD= yes + +post-patch: + @${REINPLACE_CMD} -e 's|@@DATADIR@@|${DATADIR}|g' ${WRKSRC}/sayaka.sh + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/sayaka.sh ${STAGEDIR}${PREFIX}/bin/sayaka + ${MKDIR} ${STAGEDIR}${DATADIR} +.for f in ${PORTDATA} + ${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DATADIR} +.endfor + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/net-im/sayaka/distinfo b/net-im/sayaka/distinfo new file mode 100644 index 00000000000..b89eaf120ef --- /dev/null +++ b/net-im/sayaka/distinfo @@ -0,0 +1,2 @@ +SHA256 (isaki68k-sayaka-3.0.9_GH0.tar.gz) = 0b5673b1e8e28a884c0efe1f6e09bfc2a715f20cba592dad93b5f4bae8ca9865 +SIZE (isaki68k-sayaka-3.0.9_GH0.tar.gz) = 40350 diff --git a/net-im/sayaka/files/patch-sayaka.sh b/net-im/sayaka/files/patch-sayaka.sh new file mode 100644 index 00000000000..cfe7c536c4c --- /dev/null +++ b/net-im/sayaka/files/patch-sayaka.sh @@ -0,0 +1,30 @@ +--- sayaka.sh.orig 2015-06-14 09:43:42 UTC ++++ sayaka.sh +@@ -27,9 +27,26 @@ + # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + # SUCH DAMAGE. + +-SAYAKA_HOME=${HOME}/.sayaka ++: ${SAYAKA_HOME:=${HOME}/.sayaka} + #SAYAKA_HOME=. + ++DATADIR=@@DATADIR@@ ++ ++die() { ++ echo "$@" ++ exit 1 ++} ++ ++mklinks() { ++ mkdir $SAYAKA_HOME || die "Can't create ${SAYAKA_HOME}." ++ cd $SAYAKA_HOME ++ for f in ${DATADIR}/*.php ${DATADIR}/*.png; do ++ ln -s $f . ++ done ++} ++ ++[ -d $SAYAKA_HOME ] || mklinks ++ + cd $SAYAKA_HOME + + cmd=$1 diff --git a/net-im/sayaka/pkg-descr b/net-im/sayaka/pkg-descr new file mode 100644 index 00000000000..5e6edc73184 --- /dev/null +++ b/net-im/sayaka/pkg-descr @@ -0,0 +1,3 @@ +Command-line twitter client for sixel supported terminal. + +WWW: https://github.com/isaki68k/sayaka |