[PATCH] net/gnet2: switch to USES=libtool
Dmitry Marakasov
amdmi3 at amdmi3.ru
Sat May 17 00:08:51 UTC 2014
>Submitter-Id: current-users
>Originator: Dmitry Marakasov
>Organization:
>Confidential: no
>Synopsis: [PATCH] net/gnet2: switch to USES=libtool
>Severity: non-critical
>Priority: low
>Category: ports
>Class: change-request
>Release: FreeBSD 10.0-RELEASE amd64
>Environment:
System: FreeBSD hades.panopticon 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260807: Fri Jan 17 13:14:28 MSK
>Description:
- Switch to USES=libtool
- Remove USE=gnomehack (deprecated by USES=pathfix)
- Properly support DOCS option
- Strip library
All dependent ports confirmed to build fine.
ATTN: Please do not commit this directly but reassign it to me, as it needs to be committed with net-mgmt/gsnmp switch to libtool (see previous PR)
Port maintainer (gnome at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 1.02 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:
--- gnet2-2.0.8.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 354272)
+++ Makefile (working copy)
@@ -3,7 +3,7 @@
PORTNAME= gnet
PORTVERSION= 2.0.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= GNOME
PKGNAMESUFFIX= 2
@@ -11,13 +11,16 @@
MAINTAINER= gnome at FreeBSD.org
COMMENT= A simple network library built upon Glib-2
-USES= pkgconfig pathfix
-USE_AUTOTOOLS= libtool
-USE_GNOME= gnomehack glib20
+USES= pkgconfig libtool pathfix
+USE_GNOME= glib20
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+= --with-html-dir=${DOCSDIR}
.else
CONFIGURE_ARGS+= --without-html-dir
@@ -27,4 +30,7 @@
@${REINPLACE_CMD} -e 's|GNET_INTERFACE_AGE=0|GNET_INTERFACE_AGE=8|g' \
${WRKSRC}/configure
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgnet-2.0.so
+
.include <bsd.port.mk>
Index: pkg-plist
===================================================================
--- pkg-plist (revision 354272)
+++ pkg-plist (working copy)
@@ -17,9 +17,9 @@
include/gnet-2.0/uri.h
lib/gnet-2.0/include/gnetconfig.h
lib/libgnet-2.0.a
-lib/libgnet-2.0.la
lib/libgnet-2.0.so
lib/libgnet-2.0.so.0
+lib/libgnet-2.0.so.0.0.8
libdata/pkgconfig/gnet-2.0.pc
share/aclocal/gnet-2.0.m4
%%PORTDOCS%%%%DOCSDIR%%/gnet/gnet-base64.html
--- gnet2-2.0.8.patch ends here ---
More information about the freebsd-gnome
mailing list