Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 2016 23:20:01 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408326 - head/graphics/pstoepsi
Message-ID:  <201602062320.u16NK1G6020178@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Feb  6 23:20:00 2016
New Revision: 408326
URL: https://svnweb.freebsd.org/changeset/ports/408326

Log:
  - Add NO_ARCH
  - Silence patching
  - Switch to options helpers

Modified:
  head/graphics/pstoepsi/Makefile
  head/graphics/pstoepsi/pkg-plist

Modified: head/graphics/pstoepsi/Makefile
==============================================================================
--- head/graphics/pstoepsi/Makefile	Sat Feb  6 23:19:50 2016	(r408325)
+++ head/graphics/pstoepsi/Makefile	Sat Feb  6 23:20:00 2016	(r408326)
@@ -17,10 +17,13 @@ RUN_DEPENDS=	pbmtoepsi:${PORTSDIR}/graph
 
 USES=		ghostscript:run
 NO_WRKSUBDIR=	yes
+NO_ARCH=	yes
+
+OPTIONS_DEFINE=	DOCS
 
 pre-patch:
-	${CP} ${DISTDIR}/${DIST_SUBDIR}/pstoepsi ${WRKSRC}/pstoepsi.prefix
-	${CP} ${DISTDIR}/${DIST_SUBDIR}/README.this-site ${WRKSRC}
+	@${CP} ${DISTDIR}/${DIST_SUBDIR}/pstoepsi ${WRKSRC}/pstoepsi.prefix
+	@${CP} ${DISTDIR}/${DIST_SUBDIR}/README.this-site ${WRKSRC}
 
 do-build:
 	${SED} -e "s+%%PREFIX%%+${PREFIX}+g" ${WRKSRC}/pstoepsi.prefix > \
@@ -29,6 +32,8 @@ do-build:
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/pstoepsi ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README.this-site.gz ${STAGEDIR}${DOCSDIR}
 

Modified: head/graphics/pstoepsi/pkg-plist
==============================================================================
--- head/graphics/pstoepsi/pkg-plist	Sat Feb  6 23:19:50 2016	(r408325)
+++ head/graphics/pstoepsi/pkg-plist	Sat Feb  6 23:20:00 2016	(r408326)
@@ -1,2 +1,2 @@
 bin/pstoepsi
-share/doc/pstoepsi/README.this-site.gz
+%%PORTDOCS%%%%DOCSDIR%%/README.this-site.gz



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