Hello ports@,
Here is an update for profanity to release 0.7.0, including OMEMO
support. It builds, passes the tests and runs fine on amd64.
While there:
* Change HOMEPAGE to GitHub's site, as it's updated more frequently (old
HOMEPAGE still shows 0.6.0 as latest version, despite 0.7.0 being
released more than a month ago) and the repo description points to it.
* Change the port to GH_*.
* Add a master site, as the release tarball is different from the source
tarball.
* Enable OMEMO support by default. Thought about making a flavor but OTR
is already enabled by default, so followed that route.
* Remove the deletion of #include "ui/stub_ui.h" from test files. Tests
build and run fine with it. That line comes from first import, which
points to release 0.4.7. Even there, I couldn't find the reasaon
behind "there is no stub_ui.h", as it was present in the repo. Didn't
check the release tarball tho.
* Synchronize feature list with the one in the site.
* Tried to remove AUTO{CONF,MAKE}_VERSION but built failed with:
Running autoconf-2.13 in /home/cvs/ports/pobj/profanity-0.7.0/profanity-0.7.0
fgrep: configure.in: No such file or directory
autoconf: configure.in: No such file or directory
Also tried setting CONFIGURE_STYLE to gnu, which runs configure just
fine but then fails building:
WARNING: 'aclocal-1.16' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<https://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<https://www.gnu.org/software/autoconf>
<https://www.gnu.org/software/m4/>
<https://www.perl.org/>
Should I just stick with those versions? Is something desirable to
try to avoid depending much in versions? If not, any advice about
what to try out to get rid of it?
This is my first time sending a mail to ports@, so any feedback is more
than welcome. :)
Big thanks to Solene, both for documenting and for personally helping
with this before hitting the list.
Cheers,
-Lucas
Index: net/profanity/Makefile
===================================================================
RCS file: /cvs/ports/net/profanity/Makefile,v
retrieving revision 1.10
diff -u -p -u -p -r1.10 Makefile
--- net/profanity/Makefile 12 Jul 2019 20:48:44 -0000 1.10
+++ net/profanity/Makefile 3 Sep 2019 00:55:46 -0000
@@ -1,22 +1,25 @@
# $OpenBSD: Makefile,v 1.10 2019/07/12 20:48:44 sthen Exp $
COMMENT = console based XMPP client
-DISTNAME = profanity-0.6.0
CATEGORIES = net
-REVISION = 0
-HOMEPAGE = http://www.profanity.im/
+GH_ACCOUNT = profanity-im
+GH_PROJECT = profanity
+GH_TAGNAME = 0.7.0
+
+HOMEPAGE = https://profanity-im.github.io/
MAINTAINER = Rafael Sadowski <[email protected]>
# GPLv3+
PERMIT_PACKAGE = Yes
-MASTER_SITES = http://www.profanity.im/
+# Release tarballs are different from source code tarballs.
+MASTER_SITES = https://profanity-im.github.io/
WANTLIB += assuan c crypto curl curses ereadline expat ffi gcrypt
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gpg-error
WANTLIB += gpgme iconv intl m mesode nghttp2 otr pcre pthread
-WANTLIB += ${MODPY_WANTLIB} ssl util z
+WANTLIB += ${MODPY_WANTLIB} signal-protocol-c ssl util z
MODULES += lang/python
@@ -29,6 +32,7 @@ LIB_DEPENDS += devel/glib2 \
devel/readline \
net/curl \
net/libmesode \
+ net/libsignal-protocol-c \
security/gpgme \
security/libotr
@@ -44,6 +48,7 @@ CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}
CONFIGURE_ARGS += --with-xscreensaver=no \
--enable-icons=no \
--enable-plugins=yes \
+ --enable-omemo=yes \
--enable-otr=yes
MAKE_FLAGS = CC="${CC}" \
@@ -54,10 +59,7 @@ AUTOMAKE_VERSION = 1.11
SEPARATE_BUILD = Yes
-# there is no stub_ui.h and is not needed
post-patch:
- find ${WRKSRC} -type f -name "*.c" \
- -exec sed -i '/stub\_ui.h/d' "{}" \;
sed -i s,${TRUEPREFIX},${LOCALBASE}, ${WRKSRC}/configure.ac
post-install:
Index: net/profanity/distinfo
===================================================================
RCS file: /cvs/ports/net/profanity/distinfo,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 distinfo
--- net/profanity/distinfo 3 Mar 2019 19:40:04 -0000 1.4
+++ net/profanity/distinfo 3 Sep 2019 00:55:46 -0000
@@ -1,2 +1,2 @@
-SHA256 (profanity-0.6.0.tar.gz) = 8bJ3O3nrKUKXaG85E+lInCDv+uXjozXIlW2xj27i9mA=
-SIZE (profanity-0.6.0.tar.gz) = 741812
+SHA256 (profanity-0.7.0.tar.gz) = 8euZvgFoPUG4kbD5l/TIc8m7h7C2uEALf8y45VPVFLs=
+SIZE (profanity-0.7.0.tar.gz) = 789373
Index: net/profanity/pkg/DESCR
===================================================================
RCS file: /cvs/ports/net/profanity/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 DESCR
--- net/profanity/pkg/DESCR 25 Apr 2016 17:46:38 -0000 1.1.1.1
+++ net/profanity/pkg/DESCR 3 Sep 2019 00:55:46 -0000
@@ -3,14 +3,10 @@ libstrophe, inspired by irssi.
Features:
-* Supports XMPP chat services.
-* Command driven user interface.
-* Customizable functionality and user interface.
-* OTR (Off The Record) message encryption.
-* Chat room support.
-* Roster management.
-* Flexible resource and priority settings.
-* Desktop notifications.
-* Unicode support.
-* Integrated DuckDuckGo searching.
-* Send tiny URLs.
+* Supports XMPP chat services
+* MUC chat room support
+* OTR, PGP and OMEMO message encryption
+* Roster management
+* Flexible resource and priority settings
+* Desktop notifications
+* Plugins in Python and C