Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2012 23:12:09 GMT
From:      Chris Petrik <c.petrik.sosa@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173815: [PATCH] archievers/xarchive optionsng
Message-ID:  <201211212312.qALNC9iX061914@red.freebsd.org>
Resent-Message-ID: <201211212320.qALNK1Ll044961@freefall.freebsd.org>

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

>Number:         173815
>Category:       ports
>Synopsis:       [PATCH] archievers/xarchive 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:   Wed Nov 21 23:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Chris Petrik
>Release:        
>Organization:
na
>Environment:
>Description:
Options NG Changes
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: xarchive/Makefile
===================================================================
--- xarchive/Makefile	(revision 305486)
+++ xarchive/Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	xarchive
-# Date created:				09 November 2005
-# Whom:					Mark Kane <mark@mkproductions.org>
-#
+# Created by: Mark Kane <mark@mkproductions.org>
 # $FreeBSD$
-#
 
 PORTNAME=	xarchive
 PORTVERSION=	0.2.8.6
@@ -22,43 +18,45 @@
 GNU_CONFIGURE=	yes
 USE_GNOME=	gtk20
 
-OPTIONS=	7ZIP "Support for 7zip archives" off \
-		ARJ "Support for ARJ archives" off \
-		ACE "Support for ACE archives" off \
-		DEB "Support for DEB archives" off \
-		RAR "Support for RAR archives" off \
-		RPM "Support for RPM archives" off \
-		ZIP "Support for ZIP archives" off
+OPTIONS_DEFINE=	7ZIP ARJ ACE DEB RAR RPM ZIP
 
+7ZIP_DESC=Support for 7zip archives
+ARJ_DESC=Support for ARJ archives
+ACE_DESC=Support for ACE archives
+DEB_DESC=Support for DEB archives
+RAR_DESC=Support for RAR archives
+RPM_DESC=Support for RPM archives
+ZIP_DESC=Support for ZIP archives
+
 .include <bsd.port.pre.mk>
 
-.if defined (WITH_7ZIP)
+.if ${PORT_OPTIONS:M7ZIP}
 RUN_DEPENDS+=	7z:${PORTSDIR}/archivers/p7zip
 .endif
 
-.if defined (WITH_ARJ)
+.if ${PORT_OPTIONS:MARJ}
 RUN_DEPENDS+=	arj:${PORTSDIR}/archivers/arj
 .endif
 
-.if defined (WITH_ACE)
+.if ${PORT_OPTIONS:MACE}
 RUN_DEPENDS+=	unace:${PORTSDIR}/archivers/unace
 .endif
 
-.if defined (WITH_DEB)
+.if ${PORT_OPTIONS:MDEB}
 RUN_DEPENDS+=	dpkg-deb:${PORTSDIR}/archivers/dpkg
 .endif
 
-.if defined (WITH_RAR)
+.if ${PORT_OPTIONS:MRAR}
 RUN_DEPENDS+=	rar:${PORTSDIR}/archivers/rar \
 		unrar:${PORTSDIR}/archivers/unrar
 .endif
 
-.if defined (WITH_RPM)
+.if ${PORT_OPTIONS:MRPM}
 RUN_DEPENDS+=	rpm2cpio:${PORTSDIR}/archivers/rpm2cpio \
 		rpm:${PORTSDIR}/archivers/rpm
 .endif
 
-.if defined (WITH_ZIP)
+.if ${PORT_OPTIONS:MZIP}
 RUN_DEPENDS+=	zip:${PORTSDIR}/archivers/zip \
 		unzip:${PORTSDIR}/archivers/unzip
 .endif


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



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