Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  7 Mar 2014 15:50:42 +0400 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        dhn@FreeBSD.org
Subject:   ports/187347: [PATCH] net-im/mcabber: support staging
Message-ID:  <20140307115042.7987A31F44@hades.panopticon>
Resent-Message-ID: <201403071200.s27C00ct047396@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187347
>Category:       ports
>Synopsis:       [PATCH] net-im/mcabber: support staging
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 07 12:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260807: Fri Jan 17 13:14:28 MSK
>Description:
- Support staging
- Use new LIB_DEPENDS syntax

Port maintainer (dhn@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 1.00.2014.02.18 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- mcabber-0.10.2.patch begins here ---
diff -ruN /usr/ports/net-im/mcabber/Makefile ./Makefile
--- /usr/ports/net-im/mcabber/Makefile	2013-12-18 01:58:08.000000000 +0400
+++ ./Makefile	2014-03-07 03:15:02.775881302 +0400
@@ -9,7 +9,7 @@
 MAINTAINER=	dhn@FreeBSD.org
 COMMENT=	Small Jabber console client
 
-LIB_DEPENDS=	loudmouth:${PORTSDIR}/net-im/loudmouth
+LIB_DEPENDS=	libloudmouth-1.so:${PORTSDIR}/net-im/loudmouth
 
 LICENSE=	GPLv2
 
@@ -22,48 +22,24 @@
 USE_LDCONFIG=	yes
 USE_GNOME=	glib20
 
-MAN1=		mcabber.1
-
 OPTIONS_DEFINE=	GPGME OTR
 OPTIONS_RADIO=	SPELL
 OPTIONS_RADIO_SPELL=	ASPELL ENCHANT
+OPTIONS_SUB=	yes
+
 GPGME_DESC=	Use security/gpgme for PGP support
 OTR_DESC=	Off-the-record messaging support
 ENCHANT_DESC=	Spell checking via enchant
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGPGME}
-LIB_DEPENDS+=	libgpgme.so:${PORTSDIR}/security/gpgme
-CONFIGURE_ARGS+=--enable-gpgme
-.else
-CONFIGURE_ARGS+=--disable-gpgme
-.endif
-
-.if ${PORT_OPTIONS:MASPELL}
-LIB_DEPENDS+=	aspell.16:${PORTSDIR}/textproc/aspell
-CONFIGURE_ARGS+=--enable-aspell
-.else
-CONFIGURE_ARGS+=--disable-aspell
-.endif
-
-.if ${PORT_OPTIONS:MENCHANT}
-LIB_DEPENDS+=	enchant.1:${PORTSDIR}/textproc/enchant
-CONFIGURE_ARGS+=--enable-enchant
-.else
-CONFIGURE_ARGS+=--disable-enchant
-.endif
-
-.if ${PORT_OPTIONS:MOTR}
-LIB_DEPENDS+=	otr.4:${PORTSDIR}/security/libotr3 \
-		gcrypt:${PORTSDIR}/security/libgcrypt
-CONFIGURE_ARGS+=--enable-otr
-PLIST_SUB+=	OTR=""
-.else
-CONFIGURE_ARGS+=--disable-otr
-PLIST_SUB+=	OTR="@comment "
-.endif
+GPGME_LIB_DEPENDS=	libgpgme.so:${PORTSDIR}/security/gpgme
+GPGME_CONFIGURE_ENABLE=	gpgme
+ASPELL_LIB_DEPENDS=	libaspell.so:${PORTSDIR}/textproc/aspell
+ASPELL_CONFIGURE_ENABLE=aspell
+ENCHANT_LIB_DEPENDS=	libenchant.so:${PORTSDIR}/textproc/enchant
+ENCHANT_CONFIGURE_ENABLE=enchant
+OTR_LIB_DEPENDS=	libotr.so.4:${PORTSDIR}/security/libotr3 \
+			libgcrypt.so:${PORTSDIR}/security/libgcrypt
+OTR_CONFIGURE_ENABLE=	otr
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|$$"$${datadir}"|"$${datadir}"|;s|-O2||'\
@@ -72,9 +48,9 @@
 		${WRKSRC}/Makefile.*
 
 post-install:
-	@${INSTALL} -d ${PREFIX}/share/applications/ ${EXAMPLESDIR}/
-	@${INSTALL} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications/
-	@${CP} -R ${WRKSRC}/contrib ${DATADIR}/
-	${INSTALL_DATA} ${WRKSRC}/mcabberrc.example ${EXAMPLESDIR}/mcabberrc
+	@${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/
+	@${INSTALL} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
+	@${CP} -R ${WRKSRC}/contrib ${STAGEDIR}${DATADIR}/
+	${INSTALL_DATA} ${WRKSRC}/mcabberrc.example ${STAGEDIR}${EXAMPLESDIR}/mcabberrc
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/net-im/mcabber/pkg-plist ./pkg-plist
--- /usr/ports/net-im/mcabber/pkg-plist	2014-01-22 19:16:56.000000000 +0400
+++ ./pkg-plist	2014-03-07 14:26:11.050106953 +0400
@@ -39,6 +39,7 @@
 lib/mcabber/liburlregex.so
 lib/mcabber/libfifo.so
 libdata/pkgconfig/mcabber.pc
+man/man1/mcabber.1.gz
 share/applications/mcabber.desktop
 %%EXAMPLESDIR%%/mcabberrc
 %%DATADIR%%/help/en/hlp.txt
--- mcabber-0.10.2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140307115042.7987A31F44>