mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Command-line twitter client for sixel supported terminal.
WWW: https://github.com/isaki68k/sayaka PR: 200867 Submitted by: sue@iwmt.org
This commit is contained in:
parent
1d398fd231
commit
09d5bc188f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=389766
@ -146,6 +146,7 @@
|
||||
SUBDIR += rubygem-lita
|
||||
SUBDIR += rubygem-termtter
|
||||
SUBDIR += rubygem-tinder
|
||||
SUBDIR += sayaka
|
||||
SUBDIR += sendxmpp
|
||||
SUBDIR += sigram
|
||||
SUBDIR += skype
|
||||
|
47
net-im/sayaka/Makefile
Normal file
47
net-im/sayaka/Makefile
Normal file
@ -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>
|
2
net-im/sayaka/distinfo
Normal file
2
net-im/sayaka/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (isaki68k-sayaka-3.0.9_GH0.tar.gz) = 0b5673b1e8e28a884c0efe1f6e09bfc2a715f20cba592dad93b5f4bae8ca9865
|
||||
SIZE (isaki68k-sayaka-3.0.9_GH0.tar.gz) = 40350
|
30
net-im/sayaka/files/patch-sayaka.sh
Normal file
30
net-im/sayaka/files/patch-sayaka.sh
Normal file
@ -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
|
3
net-im/sayaka/pkg-descr
Normal file
3
net-im/sayaka/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Command-line twitter client for sixel supported terminal.
|
||||
|
||||
WWW: https://github.com/isaki68k/sayaka
|
Loading…
Reference in New Issue
Block a user