Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2012 06:30:32 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309144 - head/archivers/xarchive
Message-ID:  <201212180630.qBI6UWrs073407@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue Dec 18 06:30:32 2012
New Revision: 309144
URL: http://svnweb.freebsd.org/changeset/ports/309144

Log:
  - Switch to modern two-line Makefile header
  - Use DISTVERSION to reduce hand labor
  - Drop indefinite article from COMMENT line
  - Convert to the new OPTIONS framework
  - Minor cleanups in Makefile and port description

Modified:
  head/archivers/xarchive/Makefile
  head/archivers/xarchive/pkg-descr

Modified: head/archivers/xarchive/Makefile
==============================================================================
--- head/archivers/xarchive/Makefile	Tue Dec 18 04:47:15 2012	(r309143)
+++ head/archivers/xarchive/Makefile	Tue Dec 18 06:30:32 2012	(r309144)
@@ -1,66 +1,63 @@
-# 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
+DISTVERSION=	0.2.8-6
 PORTREVISION=	7
 CATEGORIES=	archivers
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/0.2.8-6
-DISTNAME=	${PORTNAME}-0.2.8-6
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
 
 MAINTAINER=	mark@mkproductions.org
-COMMENT=	A GTK+ front end for archiving tools
+COMMENT=	GTK+ front end for various archiving tools
 
 RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
 
-MAN1=		xarchive.1
-
 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
+MAN1=		${PORTNAME}.1
+
+OPTIONS_DEFINE=	7ZIP ARJ ACE DEB RAR RPM ZIP
+
+7ZIP_DESC=	7zip archive support
+ARJ_DESC=	ARJ archive support
+ACE_DESC=	ACE archive support
+DEB_DESC=	DEB archive support
+RAR_DESC=	RAR archive support
+RPM_DESC=	RPM archive support
+ZIP_DESC=	ZIP archive support
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.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
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/archivers/xarchive/pkg-descr
==============================================================================
--- head/archivers/xarchive/pkg-descr	Tue Dec 18 04:47:15 2012	(r309143)
+++ head/archivers/xarchive/pkg-descr	Tue Dec 18 06:30:32 2012	(r309144)
@@ -5,4 +5,4 @@ It uses external bash shell wrappers to 
 formats, so adding support for new archive types can be easily done by writing
 a wrapper.
 
-WWW: http://xarchive.sourceforge.net
+WWW: http://xarchive.sourceforge.net/



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