Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2014 04:08:48 +0400 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gnome@FreeBSD.org
Subject:   ports/189876: [PATCH] net/gnet2: switch to USES=libtool
Message-ID:  <20140517000848.D511E1FE6F@hades.panopticon>
Resent-Message-ID: <201405170010.s4H0A2mI015256@freefall.freebsd.org>

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

>Number:         189876
>Category:       ports
>Synopsis:       [PATCH] net/gnet2: switch to USES=libtool
>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:   Sat May 17 00:10:01 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:
- 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@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@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 ---

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



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