summaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2020-06-09 08:07:20 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2020-06-09 08:07:20 +0000
commit551385e2a201ba4181781ddd1b83e873b8287088 (patch)
tree61549b7dc7516bfca3367d8c1e38a9df3fabe56e /irc
parentUpdate to version 2.6.2. (diff)
Add srain 1.1.0, modern IRC client written in GTK.
Notes
Notes: svn path=/head/; revision=538297
Diffstat (limited to 'irc')
-rw-r--r--irc/Makefile1
-rw-r--r--irc/srain/Makefile38
-rw-r--r--irc/srain/distinfo3
-rw-r--r--irc/srain/files/patch-src_Makefile11
-rw-r--r--irc/srain/pkg-descr23
-rw-r--r--irc/srain/pkg-plist13
6 files changed, 89 insertions, 0 deletions
diff --git a/irc/Makefile b/irc/Makefile
index 6460623878e1..1afc6eb6c422 100644
--- a/irc/Makefile
+++ b/irc/Makefile
@@ -105,6 +105,7 @@
SUBDIR += simpleirc
SUBDIR += sirc
SUBDIR += smartirc4net
+ SUBDIR += srain
SUBDIR += srvx
SUBDIR += thales
SUBDIR += tircproxy
diff --git a/irc/srain/Makefile b/irc/srain/Makefile
new file mode 100644
index 000000000000..aed02818caf5
--- /dev/null
+++ b/irc/srain/Makefile
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME= srain
+DISTVERSION= 1.1.0
+CATEGORIES= irc
+
+MAINTAINER= ashish@FreeBSD.org
+COMMENT= Modern IRC client written in GTK
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libconfig.so:devel/libconfig \
+ libsecret-1.so:security/libsecret \
+ libsoup-2.4.so:devel/libsoup
+
+USES= gettext-tools gmake gnome pkgconfig ssl
+USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 pango
+
+USE_GITHUB= yes
+GH_ACCOUNT= SrainApp
+GNU_CONFIGURE= yes
+MAKE_FLAGS+= MAKE_PROGRAM=${MAKE_CMD}
+CONFIGURE_ARGS+= --disable-debug
+ALL_TARGET= default
+INSTALLS_ICONS= yes
+
+post-patch:
+ ${REINPLACE_CMD} -e '/^MAKE =/s/make/${MAKE_CMD}/' \
+ ${WRKSRC}/Makefile.in
+
+pre-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME} \
+ ${STAGEDIR}${DATADIR}/themes \
+ ${STAGEDIR}${PREFIX}/share/metainfo \
+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps
+
+.include <bsd.port.mk>
diff --git a/irc/srain/distinfo b/irc/srain/distinfo
new file mode 100644
index 000000000000..93db38e08a95
--- /dev/null
+++ b/irc/srain/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1591214080
+SHA256 (SrainApp-srain-1.1.0_GH0.tar.gz) = cba8bf195933669c36d712c358504a0da271f65e36ff768c3ca7eb4172a54023
+SIZE (SrainApp-srain-1.1.0_GH0.tar.gz) = 941873
diff --git a/irc/srain/files/patch-src_Makefile b/irc/srain/files/patch-src_Makefile
new file mode 100644
index 000000000000..34fcb4826742
--- /dev/null
+++ b/irc/srain/files/patch-src_Makefile
@@ -0,0 +1,11 @@
+--- src/Makefile.orig 2020-06-03 20:39:44 UTC
++++ src/Makefile
+@@ -29,7 +29,7 @@ LIBSSLLIBS = $(shell pkg-config --libs openssl)
+ LIBSECRETFLAGS =$(shell pkg-config --cflags libsecret-1)
+ LIBSECRETLIBS =$(shell pkg-config --libs libsecret-1)
+
+-CFLAGS += -std=gnu99 -O2 -Wall -Iinc -Wno-deprecated-declarations \
++CFLAGS += -std=gnu11 -Wall -Iinc -Wno-deprecated-declarations \
+ $(DEFS) \
+ $(DBGFLAGS) \
+ $(GTK3FLAGS) \
diff --git a/irc/srain/pkg-descr b/irc/srain/pkg-descr
new file mode 100644
index 000000000000..2999a8762e5e
--- /dev/null
+++ b/irc/srain/pkg-descr
@@ -0,0 +1,23 @@
+Srain is a modern IRC client written in GTK.
+
+Features
+
+ o Fully open source
+ o RFC {1459,2812} compatible
+ o Partial IRCv3 support
+ o Multi-platform support (Linux, Windows, macOS and BSD)
+ o Act like modern IM client
+ - Graphical user interface
+ - Convenient connection panel
+ - Interactive channel search
+ - Forward message in one click
+ - URL preview
+ - Desktop notificaion
+ - Special optimization for bridge/relay bot
+ o Act like geek IRC client
+ - Anything can be done via commands
+ - Fine-grained configuration with hot update support
+ - Regex based message render and filter mechanisms
+ - IPC based plugin system (TODO)
+
+WWW: https://srain.im/
diff --git a/irc/srain/pkg-plist b/irc/srain/pkg-plist
new file mode 100644
index 000000000000..3789437835c7
--- /dev/null
+++ b/irc/srain/pkg-plist
@@ -0,0 +1,13 @@
+bin/srain
+%%ETCDIR%%/builtin.cfg
+share/applications/im.srain.Srain.desktop
+share/icons/hicolor/128x128/apps/im.srain.Srain.png
+share/locale/nl/LC_MESSAGES/srain.mo
+share/locale/ru/LC_MESSAGES/srain.mo
+share/locale/zh_CN/LC_MESSAGES/srain.mo
+share/metainfo/im.srain.Srain.metainfo.xml
+%%DATADIR%%/themes/bubble.css
+%%DATADIR%%/themes/default-bubble-dark.css
+%%DATADIR%%/themes/default-bubble.css
+%%DATADIR%%/themes/default-min.css
+%%DATADIR%%/themes/reset.css