Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jun 2014 13:02:44 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356777 - head/www/encode-explorer
Message-ID:  <201406061302.s56D2iqL025784@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Fri Jun  6 13:02:44 2014
New Revision: 356777
URL: http://svnweb.freebsd.org/changeset/ports/356777
QAT: https://qat.redports.org/buildarchive/r356777/

Log:
  - Stage support
  
  PR:		190045

Modified:
  head/www/encode-explorer/Makefile

Modified: head/www/encode-explorer/Makefile
==============================================================================
--- head/www/encode-explorer/Makefile	Fri Jun  6 13:02:18 2014	(r356776)
+++ head/www/encode-explorer/Makefile	Fri Jun  6 13:02:44 2014	(r356777)
@@ -13,18 +13,16 @@ COMMENT=	A PHP script to browse, create 
 
 USE_PHP=	yes
 WANT_PHP_WEB=	yes
-
 USES=		zip
 NO_BUILD=	yes
 
-OPTIONS_DEFINE=	EXPERIMENTAL
+OPTIONS_DEFINE=	EXPERIMENTAL DOCS
 EXPERIMENTAL_DESC=	Experimental features
 
 WRKSRC=		${WRKDIR}/${DISTNAME}
 WWWDIR=		${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MEXPERIMENTAL}
@@ -32,13 +30,11 @@ EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-
 .endif
 
 do-install:
-	${MKDIR} ${WWWDIR}
-	${INSTALL} ${WRKSRC}/index.php ${WWWDIR}
+	${MKDIR} ${STAGEDIR}${WWWDIR}
+	${INSTALL} ${WRKSRC}/index.php ${STAGEDIR}${WWWDIR}
 
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${CP} ${WRKSRC}/README.txt ${DOCSDIR}
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${CP} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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