ports/177298: [PATCH] graphics/import-pictures: Convert to OptionsNG
nemysis
nemysis at gmx.ch
Sat Mar 23 03:40:01 UTC 2013
>Number: 177298
>Category: ports
>Synopsis: [PATCH] graphics/import-pictures: 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 03: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:
- Convert to OptionsNG
- Makefile tweaks
Removed file(s):
- pkg-plist
Port maintainer (freebsd at nagilum.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:
--- import-pictures-1.4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/import-pictures/Makefile ./Makefile
--- /usr/ports/graphics/import-pictures/Makefile 2013-01-14 17:56:59.000000000 +0100
+++ ./Makefile 2013-03-23 04:22:23.000000000 +0100
@@ -1,9 +1,5 @@
-# New ports collection makefile for: import-pictures
-# Date created: 7 May 2008
-# Whom: Alexander Kuehn
-#
+# Created by: Alexander Kuehn
# $FreeBSD: head/graphics/import-pictures/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
PORTNAME= import-pictures
PORTVERSION= 1.4
@@ -13,22 +9,30 @@
MAINTAINER= freebsd at nagilum.org
COMMENT= Utility to copy/move pictures from a directory
-RUN_DEPENDS= p5-Image-ExifTool>=7.0:${PORTSDIR}/graphics/p5-Image-ExifTool \
- p5-TimeDate>=1.10:${PORTSDIR}/devel/p5-TimeDate \
- p5-Time-modules>=2006:${PORTSDIR}/devel/p5-Time-modules
+LICENSE= GPLv2
+
+RUN_DEPENDS= p5-Image-ExifTool>=0:${PORTSDIR}/graphics/p5-Image-ExifTool \
+ p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \
+ p5-Time-modules>=0:${PORTSDIR}/devel/p5-Time-modules
USE_BZIP2= yes
USE_GMAKE= yes
USE_PERL5= yes
-MAN1= import-pictures.1
+PLIST_FILES= bin/${PORTNAME}
+
+MAN1= ${PORTNAME}.1
+
+PORTDOCS= import-pictures.html
+
+.include <bsd.port.options.mk>
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/import-pictures ${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/import-pictures.1 ${MANPREFIX}/man/man1/
-.if !defined(NOPORTDOCS)
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/import-pictures.html ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/graphics/import-pictures/pkg-plist ./pkg-plist
--- /usr/ports/graphics/import-pictures/pkg-plist 2013-01-14 17:56:59.000000000 +0100
+++ ./pkg-plist 1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-bin/import-pictures
-%%PORTDOCS%%%%DOCSDIR%%/import-pictures.html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- import-pictures-1.4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list