ports/177323: [PATCH] graphics/hppsmtools: Convert to OptionsNG
nemysis
nemysis at gmx.ch
Sat Mar 23 23:00:00 UTC 2013
>Number: 177323
>Category: ports
>Synopsis: [PATCH] graphics/hppsmtools: 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 23:00: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
- Shorten header
- Add license
Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- hppsmtools-1.1,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/hppsmtools/Makefile ./Makefile
--- /usr/ports/graphics/hppsmtools/Makefile 2013-01-14 17:57:07.000000000 +0100
+++ ./Makefile 2013-03-23 23:54:33.000000000 +0100
@@ -1,9 +1,5 @@
-# New ports collection makefile for: hppsmtools
-# Date created: 2 September 1999
-# Whom: Anders Nordby <anders at fix.no>
-#
+# Created by: Anders Nordby <anders at fix.no>
# $FreeBSD: head/graphics/hppsmtools/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
PORTNAME= hppsmtools
PORTVERSION= 1.1
@@ -14,7 +10,9 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Tool for HP PhotoSmart C5340A & Konica Q-EZ digital cameras
-PORTDOCS= README
+LICENSE= GPLv2
+
+PORTDOCS= README changes.txt
PLIST_FILES= bin/psmdel bin/psmdir bin/psmget bin/psmsho
post-patch:
@@ -23,13 +21,15 @@
@${REINPLACE_CMD} -e '/typedef unsigned char/d' ${WRKSRC}/exif.h
@${REINPLACE_CMD} -e '/<malloc.h>/d' ${WRKSRC}/psm*.c
+.include <bsd.port.options.mk>
+
do-install:
.for file in psmdel psmdir psmget psmsho
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
-.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>
--- hppsmtools-1.1,1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list