aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2014-05-09 03:39:33 +0800
committerthierry <thierry@FreeBSD.org>2014-05-09 03:39:33 +0800
commitce9fc9cac9cbec2c97038b367d170dc1b0224e66 (patch)
tree3fe4680eb131330d6b65c26197e5beca8096bb5e /net-im
parentb931c6beee965c55dd9ff47203fc8b6dede13b86 (diff)
downloadfreebsd-ports-gnome-ce9fc9cac9cbec2c97038b367d170dc1b0224e66.tar.gz
freebsd-ports-gnome-ce9fc9cac9cbec2c97038b367d170dc1b0224e66.tar.zst
freebsd-ports-gnome-ce9fc9cac9cbec2c97038b367d170dc1b0224e66.zip
Adding toxic, the CLI front-end for Tox.
Diffstat (limited to 'net-im')
-rw-r--r--net-im/Makefile1
-rw-r--r--net-im/toxic/Makefile36
-rw-r--r--net-im/toxic/distinfo2
-rw-r--r--net-im/toxic/files/patch-src_main.c11
-rw-r--r--net-im/toxic/files/pkg-message.in14
-rw-r--r--net-im/toxic/pkg-descr6
-rw-r--r--net-im/toxic/pkg-plist5
7 files changed, 75 insertions, 0 deletions
diff --git a/net-im/Makefile b/net-im/Makefile
index 5591c16ed4a2..a664d4c7abb5 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -166,6 +166,7 @@
SUBDIR += tkabber-plugins
SUBDIR += tkabbur
SUBDIR += tox
+ SUBDIR += toxic
SUBDIR += ttytter
SUBDIR += turpial
SUBDIR += twirssi
diff --git a/net-im/toxic/Makefile b/net-im/toxic/Makefile
new file mode 100644
index 000000000000..fa0a79f75427
--- /dev/null
+++ b/net-im/toxic/Makefile
@@ -0,0 +1,36 @@
+# Created by: Thierry Thomas <thierry@pompo.net>
+# $FreeBSD$
+
+PORTNAME= toxic
+PORTVERSION= 0.3.3.140508
+CATEGORIES= net-im
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= A console client for Tox
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox
+RUN_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox
+
+USE_GITHUB= yes
+GH_ACCOUNT= tox
+GH_TAGNAME= ${GH_COMMIT}
+GH_COMMIT= af09961
+
+WRKSRC= ${WRKDIR}/Tox-${PORTNAME}-${GH_COMMIT}
+SUB_FILES= pkg-message
+
+USES= ncurses:port pkgconfig
+USE_AUTOTOOLS= autoconf aclocal
+
+run-autotools:
+ cd ${CONFIGURE_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${AUTORECONF} -if
+
+post-install:
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/misc/toxic.conf ${STAGEDIR}${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net-im/toxic/distinfo b/net-im/toxic/distinfo
new file mode 100644
index 000000000000..f4c13b76bc13
--- /dev/null
+++ b/net-im/toxic/distinfo
@@ -0,0 +1,2 @@
+SHA256 (toxic-0.3.3.140508.tar.gz) = 2196aeac8f0e938d3214df627ae8606378ebdcf3d00fb47c5b8a2535d8d8b5b5
+SIZE (toxic-0.3.3.140508.tar.gz) = 76206
diff --git a/net-im/toxic/files/patch-src_main.c b/net-im/toxic/files/patch-src_main.c
new file mode 100644
index 000000000000..4ce711037f82
--- /dev/null
+++ b/net-im/toxic/files/patch-src_main.c
@@ -0,0 +1,11 @@
+--- src/main.c.orig 2014-04-20 22:43:14.000000000 +0200
++++ src/main.c 2014-04-21 12:44:27.000000000 +0200
+@@ -169,6 +169,8 @@
+
+ #ifdef __linux__
+ tox_set_name(m, (uint8_t *) "Cool guy", strlen("Cool guy"));
++#elif defined(__FreeBSD__)
++ tox_set_name(m, (uint8_t *) "Very cool guy", strlen("Very cool guy"));
+ #elif defined(_WIN32)
+ tox_set_name(m, (uint8_t *) "I should install GNU/Linux", strlen("I should install GNU/Linux"));
+ #elif defined(__APPLE__)
diff --git a/net-im/toxic/files/pkg-message.in b/net-im/toxic/files/pkg-message.in
new file mode 100644
index 000000000000..d22a4177879a
--- /dev/null
+++ b/net-im/toxic/files/pkg-message.in
@@ -0,0 +1,14 @@
+===============================================================================
+
++ toxic is set for IPv6 by default; if you have no IPv6 connectivity, try
+ toxic -4
+
++ if your screen is unreadable, try to set
+ colour_theme:1;
+ in your ~/.config/tox/toxic.conf
+
+ (more parameters available - see %%EXAMPLESDIR%%/toxic.conf )
+
+ or try to define another TERM, e.g.:
+ TERM=vt100 toxic
+===============================================================================
diff --git a/net-im/toxic/pkg-descr b/net-im/toxic/pkg-descr
new file mode 100644
index 000000000000..df61c5343562
--- /dev/null
+++ b/net-im/toxic/pkg-descr
@@ -0,0 +1,6 @@
+Toxic, sometimes referred to as Tox/Toxic or the purged Core/Toxic, is the
+reference CLI front-end written for the Tox core.
+
+It uses the ncurses library.
+
+WWW: http://tox.im/
diff --git a/net-im/toxic/pkg-plist b/net-im/toxic/pkg-plist
new file mode 100644
index 000000000000..0a417f0fbce7
--- /dev/null
+++ b/net-im/toxic/pkg-plist
@@ -0,0 +1,5 @@
+bin/toxic
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/toxic.conf
+%%DATADIR%%/DHTnodes
+@dirrm %%DATADIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%