Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jul 2017 20:50:08 +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: r444900 - head/devel/phpbt
Message-ID:  <201707022050.v62Ko8OI096802@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Jul  2 20:50:08 2017
New Revision: 444900
URL: https://svnweb.freebsd.org/changeset/ports/444900

Log:
  - Optionize gnats support (and python requirement)

Modified:
  head/devel/phpbt/Makefile
  head/devel/phpbt/pkg-plist

Modified: head/devel/phpbt/Makefile
==============================================================================
--- head/devel/phpbt/Makefile	Sun Jul  2 17:36:15 2017	(r444899)
+++ head/devel/phpbt/Makefile	Sun Jul  2 20:50:08 2017	(r444900)
@@ -3,7 +3,7 @@
 
 PORTNAME=	phpbt
 PORTVERSION=	1.0.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	SF
 
@@ -19,7 +19,6 @@ RUN_DEPENDS=	${LOCALBASE}/share/pear/DB.php:databases/
 USE_PHP=	ctype pcre posix session tokenizer xml zlib
 .endif
 
-USES=		shebangfix
 SHEBANG_FILES=	contrib/gnats-to-phpbt.py
 NO_BUILD=	yes
 NO_ARCH=	yes
@@ -28,8 +27,18 @@ PLIST_SUB=	PHPBT=${PHPBT} WWWOWN="${WWWOWN}" WWWGRP="$
 SUB_FILES=	pkg-message
 SUB_LIST=	PHPBT=${PHPBT}
 
+OPTIONS_DEFINE=	GNATS
+OPTIONS_DEFAULT=GNATS
+OPTIONS_SUB=	yes
+
+GNATS_DESC=	Install script to convert entries from GNATS
+GNATS_USES=	python:run shebangfix
+
+post-extract-GNATS-off:
+	@${RM} ${WRKSRC}/contrib/gnats-to-phpbt.py
+
 do-install:
-	-${MKDIR} ${STAGEDIR}${PREFIX}/${PHPBT}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${PHPBT}
 	@(cd ${WRKSRC} && ${CP} -R * ${STAGEDIR}${PREFIX}/${PHPBT})
 
 .include <bsd.port.mk>

Modified: head/devel/phpbt/pkg-plist
==============================================================================
--- head/devel/phpbt/pkg-plist	Sun Jul  2 17:36:15 2017	(r444899)
+++ head/devel/phpbt/pkg-plist	Sun Jul  2 20:50:08 2017	(r444900)
@@ -22,7 +22,7 @@
 %%PHPBT%%/config-dist.php
 %%PHPBT%%/config.php
 %%PHPBT%%/contrib/.htaccess
-%%PHPBT%%/contrib/gnats-to-phpbt.py
+%%GNATS%%%%PHPBT%%/contrib/gnats-to-phpbt.py
 %%PHPBT%%/docs/html/adminguide.html
 %%PHPBT%%/docs/html/bugdetail.html
 %%PHPBT%%/docs/html/bugsearch.html



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