Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2017 14:26:40 +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: r434812 - in head/devel/beautifyphp: . files
Message-ID:  <201702251426.v1PEQecm080510@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



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