summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-03-30 09:11:53 +0000
committernia <nia@pkgsrc.org>2020-03-30 09:11:53 +0000
commit278e3e96e87cbc1f88903d82a01383ff0f9f4086 (patch)
tree97458b0ee1eafbd022e8db13aa253a0ee0398ce2 /chat
parent347b43b0a2bc1834c586ae36cc9f8b9a8fb7e368 (diff)
downloadpkgsrc-278e3e96e87cbc1f88903d82a01383ff0f9f4086.tar.gz
chat: Import srain.
Srain is a modern IRC client written in GTK. Features ======== - Fully open source - RFC {1459,2812} compatible - Partial IRCv3 support - Multi-platform support - 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 - 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)
Diffstat (limited to 'chat')
-rw-r--r--chat/Makefile3
-rw-r--r--chat/srain/DESCR22
-rw-r--r--chat/srain/Makefile43
-rw-r--r--chat/srain/PLIST14
-rw-r--r--chat/srain/distinfo7
-rw-r--r--chat/srain/patches/patch-data_Makefile15
6 files changed, 103 insertions, 1 deletions
diff --git a/chat/Makefile b/chat/Makefile
index 32604e0a128..f218abf9ad2 100644
--- a/chat/Makefile
+++ b/chat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.244 2020/03/13 11:57:37 nia Exp $
+# $NetBSD: Makefile,v 1.245 2020/03/30 09:11:53 nia Exp $
#
COMMENT= Communication programs
@@ -115,6 +115,7 @@ SUBDIR+= silc-server
SUBDIR+= sirc
SUBDIR+= skypeweb-purple
SUBDIR+= spectrum
+SUBDIR+= srain
SUBDIR+= swift
SUBDIR+= telegram-purple
SUBDIR+= telepathy-farstream
diff --git a/chat/srain/DESCR b/chat/srain/DESCR
new file mode 100644
index 00000000000..120eda314a7
--- /dev/null
+++ b/chat/srain/DESCR
@@ -0,0 +1,22 @@
+Srain is a modern IRC client written in GTK.
+
+Features
+========
+
+- Fully open source
+- RFC {1459,2812} compatible
+- Partial IRCv3 support
+- Multi-platform support
+- 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
+- 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)
diff --git a/chat/srain/Makefile b/chat/srain/Makefile
new file mode 100644
index 00000000000..992201596ed
--- /dev/null
+++ b/chat/srain/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2020/03/30 09:11:53 nia Exp $
+
+DISTNAME= srain-1.0.1
+CATEGORIES= chat
+MASTER_SITES= ${MASTER_SITE_GITHUB:=SrainApp/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://srain.im/
+COMMENT= Modern IRC client written in GTK
+LICENSE= gnu-gpl-v3
+
+HAS_CONFIGURE= yes
+
+USE_TOOLS+= pkg-config gmake
+USE_TOOLS+= msgfmt msgmerge xgettext
+
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --disable-debug
+
+BUILD_TARGET= default
+
+MAKE_FLAGS+= MAKE=${GMAKE:Q}
+MAKE_FLAGS+= INSTALL=${INSTALL:Q}
+
+AUTO_MKDIRS= yes
+
+OWN_DIRS+= ${PKG_SYSCONFDIR}/srain
+
+CONF_FILES+= share/examples/srain/builtin.cfg \
+ ${PKG_SYSCONFDIR}/srain/builtin.cfg
+
+# XXX xgettext: unknown option -- package-name=Srain
+_TOOLS_USE_PKGSRC.xgettext= yes
+
+.include "../../devel/libconfig/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../net/libsoup/buildlink3.mk"
+.include "../../security/libsecret/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/chat/srain/PLIST b/chat/srain/PLIST
new file mode 100644
index 00000000000..e78bea542f3
--- /dev/null
+++ b/chat/srain/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2020/03/30 09:11:53 nia Exp $
+bin/srain
+share/applications/im.srain.Srain.desktop
+share/examples/srain/builtin.cfg
+share/icons/hicolor/scalable/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.appdata.xml
+share/srain/themes/bubble.css
+share/srain/themes/default-bubble-dark.css
+share/srain/themes/default-bubble.css
+share/srain/themes/default-min.css
+share/srain/themes/reset.css
diff --git a/chat/srain/distinfo b/chat/srain/distinfo
new file mode 100644
index 00000000000..9c7931147fe
--- /dev/null
+++ b/chat/srain/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/03/30 09:11:53 nia Exp $
+
+SHA1 (srain-1.0.1.tar.gz) = 8b1b4628e0a404defe74f1656f9877e047f652a4
+RMD160 (srain-1.0.1.tar.gz) = 21c2eccaeffc4edc5191ea1c3e9702bb486e434b
+SHA512 (srain-1.0.1.tar.gz) = e6a878f804b8188affb088dd113aab7fc28c03ff1c46c28f9dabe6559d0a4d182f91a10a9d56e021bbee294bb4048ffc5e8209d3661fba0e6cdf37d4bf30280e
+Size (srain-1.0.1.tar.gz) = 938233 bytes
+SHA1 (patch-data_Makefile) = 9330228df6a9648c332417a2658417a8ed445499
diff --git a/chat/srain/patches/patch-data_Makefile b/chat/srain/patches/patch-data_Makefile
new file mode 100644
index 00000000000..93fd30669c2
--- /dev/null
+++ b/chat/srain/patches/patch-data_Makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-data_Makefile,v 1.1 2020/03/30 09:11:53 nia Exp $
+
+Install config files to examples.
+
+--- data/Makefile.orig 2019-10-07 15:01:52.000000000 +0000
++++ data/Makefile
+@@ -21,7 +21,7 @@ $(RES): srain.gresource.xml $(GLADES) $(
+
+ .PHONY: config
+ config: builtin.cfg
+- $(INSTALL) -Dm644 "$<" "$(DESTDIR)$(PACKAGE_CONFIG_DIR)/$(PACKAGE)/$<"
++ $(INSTALL) -Dm644 "$<" "$(DESTDIR)$(PREFIX)/share/examples/srain/$<"
+
+ .PHONY: icons
+ icons: icons/scalable/srain.png