svn commit: r357552 - head/sysutils/uif2iso

Barbara Guida bar at FreeBSD.org
Thu Jun 12 00:55:08 UTC 2014


Author: bar
Date: Thu Jun 12 00:55:07 2014
New Revision: 357552
URL: http://svnweb.freebsd.org/changeset/ports/357552
QAT: https://qat.redports.org/buildarchive/r357552/

Log:
  - Support STAGEDIR
  - Add LICENSE
  
  Approved by:	 portmgr blanket

Added:
  head/sysutils/uif2iso/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/uif2iso/Makefile

Modified: head/sysutils/uif2iso/Makefile
==============================================================================
--- head/sysutils/uif2iso/Makefile	Thu Jun 12 00:16:59 2014	(r357551)
+++ head/sysutils/uif2iso/Makefile	Thu Jun 12 00:55:07 2014	(r357552)
@@ -3,6 +3,7 @@
 
 PORTNAME=	uif2iso
 PORTVERSION=	0.1.7c
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://aluigi.altervista.org/mytoolz/
 DISTNAME=	${PORTNAME}
@@ -10,22 +11,28 @@ DISTNAME=	${PORTNAME}
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Convert MagicISO UIF files to ISO9660
 
+LICENSE=	GPLv2
+
 USES=		zip
+
 WRKSRC=		${WRKDIR}/src
 
-PLIST_FILES=	bin/uif2iso
-PORTDOCS=	README uif2iso.txt
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
 
-NO_STAGE=	yes
 post-patch:
-	@${REINPLACE_CMD} 's|exit(1)|exit(0)|' ${WRKSRC}/uif2iso.c
-	@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} 's|exit(1)|exit(0)|' \
+		${WRKSRC}/uif2iso.c
+	@${REINPLACE_CMD} 's|/usr/local|${STAGEDIR}${PREFIX}|; \
+		s|$$(DESTDIR)||' \
+		${WRKSRC}/Makefile
 
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for docs in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKDIR}/${docs} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for doc in README uif2iso.txt
+	${INSTALL_DATA} ${WRKDIR}/${doc} ${STAGEDIR}${DOCSDIR}
 .endfor
 .endif
 

Added: head/sysutils/uif2iso/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/uif2iso/pkg-plist	Thu Jun 12 00:55:07 2014	(r357552)
@@ -0,0 +1,4 @@
+bin/uif2iso
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/uif2iso.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%


More information about the svn-ports-head mailing list