aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-01-19 18:31:05 +0800
committeredwin <edwin@FreeBSD.org>2005-01-19 18:31:05 +0800
commitf0a2686e26b3641573bafecd94a8d8a5b3aa4aae (patch)
tree0060fcca5f60a1a9004e6e5eae03c6ae5c528b6a
parent151c57712926ccf22c080959e7dfd4c4561c6a22 (diff)
downloadfreebsd-ports-gnome-f0a2686e26b3641573bafecd94a8d8a5b3aa4aae.tar.gz
freebsd-ports-gnome-f0a2686e26b3641573bafecd94a8d8a5b3aa4aae.tar.zst
freebsd-ports-gnome-f0a2686e26b3641573bafecd94a8d8a5b3aa4aae.zip
New port: devel/pear-PHP_Beautifier PEAR beautifier for PHP
This program reformat and beautify PHP source code files automatically. The program is Open Source and distributed under the terms of PHP Licence. It is written in PHP 5 and has a command line tool. PR: ports/76196 Submitted by: Antônio Carlos Venâncio Júnior <antonio@php.net>
-rw-r--r--devel/Makefile1
-rw-r--r--devel/pear-PHP_Beautifier/Makefile58
-rw-r--r--devel/pear-PHP_Beautifier/distinfo2
-rw-r--r--devel/pear-PHP_Beautifier/pkg-descr6
4 files changed, 67 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index ffe7c9affc4e..e891fc51601e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1120,6 +1120,7 @@
SUBDIR += pear-PEAR
SUBDIR += pear-PHPUnit
SUBDIR += pear-PHPUnit2
+ SUBDIR += pear-PHP_Beautifier
SUBDIR += pear-PHP_Compat
SUBDIR += pear-Pager
SUBDIR += pear-Structures_DataGrid
diff --git a/devel/pear-PHP_Beautifier/Makefile b/devel/pear-PHP_Beautifier/Makefile
new file mode 100644
index 000000000000..2bdea7cc528d
--- /dev/null
+++ b/devel/pear-PHP_Beautifier/Makefile
@@ -0,0 +1,58 @@
+# Ports collection makefile for: pear-PHP_Beautifier
+# Date created: 13 January 2005
+# Whom: Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= PHP_Beautifier
+PORTVERSION= 0.1.0
+CATEGORIES= devel www pear
+
+MAINTAINER= antonio@php.net
+COMMENT= PEAR beautifier for PHP
+
+BUILD_DEPENDS= ${PEARDIR}/Log.php:${PORTSDIR}/sysutils/pear-Log
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+USE_PHP= yes
+USE_REINPLACE= yes
+DEFAULT_PHP_VER=5
+
+CATEGORY= PHP
+FILES= Beautifier.php Beautifier/Filter.php \
+ Beautifier/Decorator.php Beautifier/Batch.php \
+ Beautifier/Common.php Beautifier/Exception.php \
+ Beautifier/StreamWrapper.php Beautifier/Tokenizer.php \
+ Beautifier/Filter/ArrayNested.filter.php \
+ Beautifier/Filter/Default.filter.php \
+ Beautifier/Filter/ListClassFunction.filter.php \
+ Beautifier/Filter/Pear.filter.php \
+ Beautifier/Filter/IndentStyles.filter.php \
+ Beautifier/Batch/Output.php \
+ Beautifier/Batch/Output/Directory.php \
+ Beautifier/Batch/Output/DirectoryBz2.php \
+ Beautifier/Batch/Output/DirectoryGz.php \
+ Beautifier/Batch/Output/DirectoryTar.php \
+ Beautifier/Batch/Output/Files.php \
+ Beautifier/Batch/Output/FilesBz2.php \
+ Beautifier/Batch/Output/FilesGz.php \
+ Beautifier/Batch/Output/FilesTar.php \
+ Beautifier/StreamWrapper/Tarz.php
+EXAMPLES= run_me.php example_main.php example_pear.php example_array.php \
+ example_comments.php example_html.php
+TESTS= Beautifier.phpt Beautifier_Common.phpt Beautifier_Bugs.phpt \
+ Beautifier_StreamWrapper.phpt
+DATA= licenses/apache.txt licenses/bsd.txt licenses/lgpl.txt \
+ licenses/php.txt
+_DATADIR= .
+SCRIPTFILES= php_beautifier
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${SED} 's|"@php_bin@"|@php_bin@|g' \
+ ${WRKSRC}/scripts/${SCRIPTFILES} > ${WRKSRC}/pear-${SCRIPTFILES}
+
+.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
+.include <bsd.port.post.mk>
diff --git a/devel/pear-PHP_Beautifier/distinfo b/devel/pear-PHP_Beautifier/distinfo
new file mode 100644
index 000000000000..a391a7715e53
--- /dev/null
+++ b/devel/pear-PHP_Beautifier/distinfo
@@ -0,0 +1,2 @@
+MD5 (PEAR/PHP_Beautifier-0.1.0.tgz) = f4d51a6b964cc31bf908b8b8fc072246
+SIZE (PEAR/PHP_Beautifier-0.1.0.tgz) = 38047
diff --git a/devel/pear-PHP_Beautifier/pkg-descr b/devel/pear-PHP_Beautifier/pkg-descr
new file mode 100644
index 000000000000..7191b424940b
--- /dev/null
+++ b/devel/pear-PHP_Beautifier/pkg-descr
@@ -0,0 +1,6 @@
+This program reformat and beautify PHP source code files automatically.
+
+The program is Open Source and distributed under the terms of PHP Licence. It
+is written in PHP 5 and has a command line tool.
+
+WWW: http://pear.php.net/package/PHP_Beautifier/