Update profanity to 0.7.0

This update includes OMEMO support

Initial diff from Lucas <lucas AT sexy DOT is> (thanks!) with AUTOMAKE_VERSION
tweaks by sthen@ (thanks!).

OK kn@
This commit is contained in:
rsadowski 2019-09-13 09:04:05 +00:00
parent 0da3047a19
commit a0e863c54b
4 changed files with 48 additions and 32 deletions

View File

@ -1,34 +1,31 @@
# $OpenBSD: Makefile,v 1.10 2019/07/12 20:48:44 sthen Exp $
# $OpenBSD: Makefile,v 1.11 2019/09/13 09:04:05 rsadowski Exp $
COMMENT = console based XMPP client
DISTNAME = profanity-0.6.0
DISTNAME = profanity-0.7.0
CATEGORIES = net
REVISION = 0
HOMEPAGE = http://www.profanity.im/
HOMEPAGE = https://profanity-im.github.io/
MAINTAINER = Rafael Sadowski <rsadowski@openbsd.org>
# GPLv3+
PERMIT_PACKAGE = Yes
MASTER_SITES = http://www.profanity.im/
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 += signal-protocol-c ssl util z ${MODPY_WANTLIB}
MODULES += lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
BUILD_DEPENDS +=${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
LIB_DEPENDS += devel/glib2 \
devel/readline \
net/curl \
net/libmesode \
net/libsignal-protocol-c \
security/gpgme \
security/libotr
@ -36,7 +33,9 @@ LIB_DEPENDS += devel/glib2 \
# Check must be present at build time for tests to work.
BUILD_DEPENDS += devel/cmocka
CONFIGURE_STYLE = autoconf
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.69
SEPARATE_BUILD = Yes
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
@ -44,21 +43,14 @@ CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
CONFIGURE_ARGS += --with-xscreensaver=no \
--enable-icons=no \
--enable-plugins=yes \
--enable-omemo=yes \
--enable-otr=yes
MAKE_FLAGS = CC="${CC}" \
CFLAGS="${CFLAGS}"
AUTOCONF_VERSION = 2.69
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
${SUBST_CMD} ${WRKSRC}/configure.ac
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/profanity/

View File

@ -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

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-configure_ac,v 1.4 2019/09/13 09:04:05 rsadowski Exp $
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -80,7 +80,7 @@ elif test "x$enable_python_plugins" != xno; then
AC_MSG_NOTICE([Symlinking Python.framework to $PYTHON_FRAMEWORK])
rm -f Python.framework
ln -s $PYTHON_FRAMEWORK Python.framework ])
- AC_CHECK_PROG(PYTHON_CONFIG_EXISTS, python-config, yes, no)
+ AC_CHECK_PROG(PYTHON_CONFIG_EXISTS, python${MODPY_VERSION}-config, yes, no)
if test "$PYTHON_CONFIG_EXISTS" == "yes"; then
AX_PYTHON_DEVEL
AM_CONDITIONAL([BUILD_PYTHON_API], [true])
@@ -188,10 +188,10 @@ AS_IF([test "x$PLATFORM" = xosx],
[AC_MSG_ERROR([libreadline is required for profanity])])],
[test "x$PLATFORM" = xopenbsd],
- [AC_CHECK_FILE([/usr/local/include/ereadline],
+ [AC_CHECK_FILE([${LOCALBASE}/include/ereadline],
[LIBS="-lereadline $LIBS"
- AM_CPPFLAGS="-I/usr/local/include/ereadline $AM_CPPFLAGS"
- AM_LDFLAGS="-L/usr/local/lib $AM_LDFLAGS"
+ AM_CPPFLAGS="-I${LOCALBASE}/include/ereadline $AM_CPPFLAGS"
+ AM_LDFLAGS="-L${LOCALBASE}/lib $AM_LDFLAGS"
AC_SUBST(AM_LDFLAGS)])],
[AC_CHECK_LIB([readline], [main], [],

View File

@ -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