Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2013 23:31:45 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        johnjen@reynoldsnet.org
Subject:   ports/177322: [PATCH] graphics/imageindex: Convert to OptionsNG
Message-ID:  <20130323223154.E22FACD4@hub.freebsd.org>
Resent-Message-ID: <201303232240.r2NMe07F063515@freefall.freebsd.org>

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

>Number:         177322
>Category:       ports
>Synopsis:       [PATCH] graphics/imageindex: 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:   Sat Mar 23 22:40: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:

- Shorten header
- Convert to OptionsNG

Port maintainer (johnjen@reynoldsnet.org) is cc'd.

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

--- imageindex-1.1_5.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/imageindex/Makefile ./Makefile
--- /usr/ports/graphics/imageindex/Makefile	2013-01-14 17:57:01.000000000 +0100
+++ ./Makefile	2013-03-23 23:09:14.000000000 +0100
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	imageindex
-# Date created:				Sat Sep  7 15:53:33 MST 2002
-# Whom:					John Reynolds <johnjen@reynoldsnet.org>
-#
+# Created by: John Reynolds <johnjen@reynoldsnet.org>
 # $FreeBSD: head/graphics/imageindex/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	imageindex
 PORTVERSION=	1.1
@@ -13,13 +9,12 @@
 		http://www.reynoldsnet.org/imageindex/release/
 
 MAINTAINER=	johnjen@reynoldsnet.org
-COMMENT=	A digital photo gallery tool
+COMMENT=	Digital photo gallery tool
 
-RUN_DEPENDS=	\
-	${LOCALBASE}/bin/Magick-config:${PORTSDIR}/graphics/ImageMagick \
-	${LOCALBASE}/bin/wrjpgcom:${PORTSDIR}/graphics/jpeg \
-	${LOCALBASE}/bin/mplayer:${PORTSDIR}/multimedia/mplayer \
-	p5-Image-Info>=0:${PORTSDIR}/graphics/p5-Image-Info
+RUN_DEPENDS=	Magick:${PORTSDIR}/graphics/ImageMagick \
+		jpeg:${PORTSDIR}/graphics/jpeg  \
+		mplayer:${PORTSDIR}/multimedia/mplayer \
+		p5-Image-Info>=0:${PORTSDIR}/graphics/p5-Image-Info
 
 USE_PERL5_RUN=	yes
 MAKE_ARGS+=	PERLPATH=${PERL}
@@ -29,13 +24,15 @@
 
 MAN1=	imageindex.1
 
+.include <bsd.port.options.mk>
+
 post-patch:
-	${REINPLACE_CMD} -e 's|share/man|man| ;' ${WRKSRC}/Makefile
+	${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/Makefile
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
--- imageindex-1.1_5.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?20130323223154.E22FACD4>