svn commit: r434812 - in head/devel/beautifyphp: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Feb 25 14:26:41 UTC 2017
Author: amdmi3
Date: Sat Feb 25 14:26:40 2017
New Revision: 434812
URL: https://svnweb.freebsd.org/changeset/ports/434812
Log:
- Add LICENSE
- Fix shebangs
- Add NO_ARCH
- Regenerate patches
- Fix pkg-descr
Modified:
head/devel/beautifyphp/Makefile
head/devel/beautifyphp/files/patch-beautify_php
head/devel/beautifyphp/pkg-descr
Modified: head/devel/beautifyphp/Makefile
==============================================================================
--- head/devel/beautifyphp/Makefile Sat Feb 25 14:10:08 2017 (r434811)
+++ head/devel/beautifyphp/Makefile Sat Feb 25 14:26:40 2017 (r434812)
@@ -3,6 +3,7 @@
PORTNAME= beautifyphp
PORTVERSION= 0.5.0
+PORTREVISION= 1
CATEGORIES= devel www pear
MASTER_SITES= SF
DISTNAME= beautify_php_${PORTVERSION}
@@ -10,17 +11,23 @@ DISTNAME= beautify_php_${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= PEAR beautifier for PHP4
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
RUN_DEPENDS= ${LOCALBASE}/share/pear/System.php:devel/pear
+USES= shebangfix
+SHEBANG_FILES= beautify_php
NO_BUILD= yes
+NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_FILES= bin/beautify_php share/${PORTNAME}/beautify_php.php \
+PLIST_FILES= bin/beautify_php \
+ share/${PORTNAME}/beautify_php.php \
share/pear/beautify_php.class.inc
post-patch:
- @${REINPLACE_CMD} 's,/usr/bin/php,${LOCALBASE}/bin/php,g' ${WRKSRC}/beautify_php
- @${FIND} ${WRKSRC} -name "*.bak" -or -name "*.orig" -delete
+ @${REINPLACE_CMD} 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/beautify_php
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/beautify_php ${STAGEDIR}${PREFIX}/bin
Modified: head/devel/beautifyphp/files/patch-beautify_php
==============================================================================
--- head/devel/beautifyphp/files/patch-beautify_php Sat Feb 25 14:10:08 2017 (r434811)
+++ head/devel/beautifyphp/files/patch-beautify_php Sat Feb 25 14:26:40 2017 (r434812)
@@ -1,5 +1,5 @@
---- beautify_php.orig Thu Aug 4 02:28:56 2005
-+++ beautify_php Thu Aug 4 02:29:09 2005
+--- beautify_php.orig 2003-05-07 19:56:23 UTC
++++ beautify_php
@@ -3,6 +3,7 @@
/**
* Console script to use Beautify PHP from the command line
Modified: head/devel/beautifyphp/pkg-descr
==============================================================================
--- head/devel/beautifyphp/pkg-descr Sat Feb 25 14:10:08 2017 (r434811)
+++ head/devel/beautifyphp/pkg-descr Sat Feb 25 14:26:40 2017 (r434812)
@@ -1,7 +1,5 @@
Beautify PHP
-WWW: http://www.bierkandt.org/beautify/index.php
-What it does:
This program tries to reformat and beautify PHP source code files automatically.
The program is Open Source and distributed under the terms of GNU GPL.
It is written in PHP and has a web frontend.
@@ -22,3 +20,5 @@ Basic features:
be executed anymore, it is only useful for printout.)
- turn off and on beautifying by inserting "// NO_BEAUTIFY" or "// BEAUTIFY"
in source code
+
+WWW: http://www.bierkandt.org/beautify/index.php
More information about the svn-ports-all
mailing list