Import net/srain, a modern IRC client written in GTK.

Improvements from sthen@, cwen@
ok cwen@

Srain is a modern IRC client written in GTK.

Features:
* RFC {1459,2812} compatible
* Partial IRCv3 support
* Multi-platform support
* Interactive channel search
* URL previews
* Desktop notifications
* Regex-based message rendering and filtering
This commit is contained in:
bcallah 2020-02-16 19:48:24 +00:00
parent 5b6f48f649
commit 2c44e02ec3
5 changed files with 107 additions and 0 deletions

48
net/srain/Makefile Normal file
View File

@ -0,0 +1,48 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/02/16 19:48:24 bcallah Exp $
COMMENT = modern IRC client written in GTK
CATEGORIES = net
GH_ACCOUNT = SrainApp
GH_PROJECT = srain
GH_TAGNAME = 1.0.0rc9999
HOMEPAGE = https://srain.im/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += atk-1.0 c cairo cairo-gobject config crypto gdk-3 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gtk-3 harfbuzz intl pango-1.0
WANTLIB += pangocairo-1.0 secret-1 soup-2.4 ssl
# C11
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
BUILD_DEPENDS = devel/gettext,-tools
LIB_DEPENDS = devel/libconfig \
devel/libsoup \
x11/gnome/libsecret \
x11/gtk+3
RUN_DEPENDS = devel/desktop-file-utils \
x11/gnome/keyring \
x11/gtk+3,-guic
CONFIGURE_STYLE = simple
CONFIGURE_ARGS = --disable-debug \
--sysconfdir="${SYSCONFDIR}"
USE_GMAKE = Yes
ALL_TARGET = default
MAKE_FLAGS = MAKE="${MAKE_PROGRAM}"
FAKE_FLAGS = INSTALL="${INSTALL}" \
SYSCONFDIR="${PREFIX}/share/examples"
NO_TEST = Yes
.include <bsd.port.mk>

2
net/srain/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (srain-1.0.0rc9999.tar.gz) = wGNEZ2/xQF8JFaB2gg7Mw8rMaPTfScRza0MowPZzCKc=
SIZE (srain-1.0.0rc9999.tar.gz) = 1015541

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-src_Makefile,v 1.1.1.1 2020/02/16 19:48:24 bcallah Exp $
Don't hardcode CC or -O2.
This is actually C11 according to clang.
Index: src/Makefile
--- src/Makefile.orig
+++ src/Makefile
@@ -3,7 +3,7 @@
# Complie C source codes and output object files to $(BUILD_DIR), then links
# them together to get a executable $(TARGET).
-CC = gcc
+CC ?= gcc
DEFS = -D PACKAGE='"$(PACKAGE)"' \
-D PACKAGE_NAME='"$(PACKAGE_NAME)"' \
-D PACKAGE_VERSION='"$(PACKAGE_VERSION)"' \
@@ -27,7 +27,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) \

10
net/srain/pkg/DESCR Normal file
View File

@ -0,0 +1,10 @@
Srain is a modern IRC client written in GTK.
Features:
* RFC {1459,2812} compatible
* Partial IRCv3 support
* Multi-platform support
* Interactive channel search
* URL previews
* Desktop notifications
* Regex-based message rendering and filtering

21
net/srain/pkg/PLIST Normal file
View File

@ -0,0 +1,21 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/02/16 19:48:24 bcallah Exp $
@bin bin/srain
share/applications/im.srain.Srain.desktop
share/examples/srain/
@sample ${SYSCONFDIR}/srain/
share/examples/srain/builtin.cfg
@sample ${SYSCONFDIR}/srain/builtin.cfg
share/icons/hicolor/scalable/apps/im.srain.Srain.png
share/locale/ru/LC_MESSAGES/srain.mo
share/locale/zh_CN/LC_MESSAGES/srain.mo
share/metainfo/
share/metainfo/im.srain.Srain.appdata.xml
share/srain/
share/srain/themes/
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
@tag update-desktop-database
@tag gtk-update-icon-cache %D/share/icons/hicolor