From ad9647fb0433b711cf94ae68c6202050dd64fd25 Mon Sep 17 00:00:00 2001 From: bsiegert Date: Sun, 18 Nov 2018 12:06:23 +0000 Subject: Port mcabber to enchant2, bump revision. --- chat/mcabber/Makefile | 3 ++- chat/mcabber/distinfo | 3 ++- chat/mcabber/options.mk | 4 +-- chat/mcabber/patches/patch-configure | 50 ++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 chat/mcabber/patches/patch-configure (limited to 'chat') diff --git a/chat/mcabber/Makefile b/chat/mcabber/Makefile index 519fbe8acec..482c0955f1d 100644 --- a/chat/mcabber/Makefile +++ b/chat/mcabber/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.10 2017/09/09 14:19:25 leot Exp $ +# $NetBSD: Makefile,v 1.11 2018/11/18 12:06:23 bsiegert Exp $ DISTNAME= mcabber-1.1.0 +PKGREVISION= 1 CATEGORIES= chat MASTER_SITES= http://www.lilotux.net/~mikael/mcabber/files/ EXTRACT_SUFX= .tar.bz2 diff --git a/chat/mcabber/distinfo b/chat/mcabber/distinfo index a741db24c53..f29566cf149 100644 --- a/chat/mcabber/distinfo +++ b/chat/mcabber/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.5 2017/09/09 14:19:25 leot Exp $ +$NetBSD: distinfo,v 1.6 2018/11/18 12:06:23 bsiegert Exp $ SHA1 (mcabber-1.1.0.tar.bz2) = 3530831e99007356142325e0e5cdffe4d4885c15 RMD160 (mcabber-1.1.0.tar.bz2) = ba23cf7541b62f4d8b913416c2a7fabf3406a0b8 SHA512 (mcabber-1.1.0.tar.bz2) = d12546e9fe9da94b6107f4d38d4083bee74e2702f7f2225e26be291230c6fe1319f60a3204da669dc00b14d69822425bf8214ebb723c3c4a7a33b1247a03093f Size (mcabber-1.1.0.tar.bz2) = 608975 bytes SHA1 (patch-aa) = 2abb198ee8433d2e7552236242f8fdc92e72979d +SHA1 (patch-configure) = 7c328a067243e881aeb8eea445a8400c479349a5 diff --git a/chat/mcabber/options.mk b/chat/mcabber/options.mk index b31dcb22265..c306e6c6ffc 100644 --- a/chat/mcabber/options.mk +++ b/chat/mcabber/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1 2014/01/10 09:50:42 wiz Exp $ +# $NetBSD: options.mk,v 1.2 2018/11/18 12:06:23 bsiegert Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.mcabber PKG_SUPPORTED_OPTIONS= aspell enchant gpgme otr ssl @@ -23,7 +23,7 @@ CONFIGURE_ARGS+= --enable-aspell .endif .if !empty(PKG_OPTIONS:Menchant) -.include "../../textproc/enchant/buildlink3.mk" +.include "../../textproc/enchant2/buildlink3.mk" CONFIGURE_ARGS+= --enable-enchant .endif diff --git a/chat/mcabber/patches/patch-configure b/chat/mcabber/patches/patch-configure new file mode 100644 index 00000000000..dd11a984d7c --- /dev/null +++ b/chat/mcabber/patches/patch-configure @@ -0,0 +1,50 @@ +$NetBSD: patch-configure,v 1.3 2018/11/18 12:06:23 bsiegert Exp $ + +Enchant2 support. + +--- configure.orig 2017-06-04 21:13:23.000000000 +0000 ++++ configure +@@ -16361,12 +16361,12 @@ if test -n "$ENCHANT_CFLAGS"; then + pkg_cv_ENCHANT_CFLAGS="$ENCHANT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "enchant") 2>&5 ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant-2\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "enchant-2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then +- pkg_cv_ENCHANT_CFLAGS=`$PKG_CONFIG --cflags "enchant" 2>/dev/null` ++ pkg_cv_ENCHANT_CFLAGS=`$PKG_CONFIG --cflags "enchant-2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes + else + pkg_failed=yes +@@ -16378,12 +16378,12 @@ if test -n "$ENCHANT_LIBS"; then + pkg_cv_ENCHANT_LIBS="$ENCHANT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "enchant") 2>&5 ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant-2\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "enchant-2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then +- pkg_cv_ENCHANT_LIBS=`$PKG_CONFIG --libs "enchant" 2>/dev/null` ++ pkg_cv_ENCHANT_LIBS=`$PKG_CONFIG --libs "enchant-2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes + else + pkg_failed=yes +@@ -16404,9 +16404,9 @@ else + _pkg_short_errors_supported=no + fi + if test $_pkg_short_errors_supported = yes; then +- ENCHANT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "enchant" 2>&1` ++ ENCHANT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "enchant-2" 2>&1` + else +- ENCHANT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "enchant" 2>&1` ++ ENCHANT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "enchant-2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ENCHANT_PKG_ERRORS" >&5 -- cgit v1.2.3