Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 02:08:09 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177170: [PATCH] graphics/linux-adobesvg: Convert to OptionsNG
Message-ID:  <20130321010813.60BD7698@hub.freebsd.org>
Resent-Message-ID: <201303210110.r2L1A0Z1041061@freefall.freebsd.org>

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

>Number:         177170
>Category:       ports
>Synopsis:       [PATCH] graphics/linux-adobesvg: Convert to OptionsNG
>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:   Thu Mar 21 01:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10
>Description:

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- linux-adobesvg-3.01.x88.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/linux-adobesvg/Makefile ./Makefile
--- /usr/ports/graphics/linux-adobesvg/Makefile	2013-03-18 23:43:03.000000000 +0100
+++ ./Makefile	2013-03-21 02:05:07.000000000 +0100
@@ -5,8 +5,7 @@
 DISTVERSION=	3.01x88
 CATEGORIES=	graphics www linux
 MASTER_SITES=	http://download.adobe.com/pub/adobe/magic/svgviewer/linux/3.x/${DISTVERSION}/en/
-DISTNAME=	adobesvg-${DISTVERSION:C|x.*$||}
-DISTFILES=	adobesvg-${DISTVERSION}-linux-i386${EXTRACT_SUFX}
+DISTNAME=	adobesvg-${DISTVERSION}-linux-i386
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	The Adobe SVG browser plugin (Linux version)
@@ -14,10 +13,13 @@
 ONLY_FOR_ARCHS=	i386 amd64
 USE_LINUX=	yes
 USE_LINUX_APPS=	xorglibs
+USE_LDCONFIG=	yes
 
 RESTRICTED=	Redistribution prohibited
 NO_BUILD=	yes
 
+WRKSRC=		${WRKDIR}/adobesvg-${PORTVERSION:S/.x88//}
+
 LIBDIR=		${PREFIX}/lib/linux-adobesvg
 SHLIBS=		ACE AGM BIB CoolType NPSVG3 SVGCore
 SHLIB_FILES=	${SHLIBS:S|^|lib|:S|$|.so|}
@@ -26,10 +28,13 @@
 PLIST_DIRS=	${LIBDIR:S|^${PREFIX}/||}
 PORTDOCS=	LICENSE.txt ReadMe.html SVGHelp.html
 
+.include <bsd.port.options.mk>
+
 do-install:
 	${MKDIR} ${LIBDIR}
 	${INSTALL_PROGRAM} ${SHLIB_FILES:S|^|${WRKSRC}/|} ${LIBDIR}
-.if !defined(NOPORTDOCS)
+
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
--- linux-adobesvg-3.01.x88.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?20130321010813.60BD7698>