aboutsummaryrefslogtreecommitdiff
path: root/devel/perltidy
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-03-04 12:36:33 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-03-04 12:36:33 +0000
commitc5691fd6407b2d8f3a140fb95756c5da4e625083 (patch)
treeae5d45d3c344e744b10649c081eb8edfed5a7f22 /devel/perltidy
parent677222bab9424107c63fac4a7a42c9e8b1f302c4 (diff)
downloadports-c5691fd6407b2d8f3a140fb95756c5da4e625083.tar.gz
ports-c5691fd6407b2d8f3a140fb95756c5da4e625083.zip
re-import perltidy
Notes
Notes: svn path=/head/; revision=39031
Diffstat (limited to 'devel/perltidy')
-rw-r--r--devel/perltidy/Makefile35
-rw-r--r--devel/perltidy/distinfo1
-rw-r--r--devel/perltidy/files/patch-Makefile20
-rw-r--r--devel/perltidy/pkg-comment1
-rw-r--r--devel/perltidy/pkg-descr5
-rw-r--r--devel/perltidy/pkg-plist8
6 files changed, 70 insertions, 0 deletions
diff --git a/devel/perltidy/Makefile b/devel/perltidy/Makefile
new file mode 100644
index 000000000000..b7e690d46691
--- /dev/null
+++ b/devel/perltidy/Makefile
@@ -0,0 +1,35 @@
+# ex:ts=8
+# New ports collection makefile for: perltidy
+# Date created: Mar 4, 2001
+# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= perltidy
+PORTVERSION= 20010304
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ijliao@FreeBSD.org
+
+USE_PERL5= yes
+NO_BUILD= yes
+
+MAN1= perltidy.1
+
+post-patch:
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%MANPREFIX%%|${MANPREFIX}|g" ${WRKSRC}/Makefile
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/perltidy
+.for ext in html pod txt
+ ${CP} ${WRKSRC}/docs/*.${ext} ${PREFIX}/share/doc/perltidy/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/perltidy/distinfo b/devel/perltidy/distinfo
new file mode 100644
index 000000000000..ec684662e7c3
--- /dev/null
+++ b/devel/perltidy/distinfo
@@ -0,0 +1 @@
+MD5 (perltidy-20010304.tgz) = 047e74dfba19bbd44c2792e7625e34ac
diff --git a/devel/perltidy/files/patch-Makefile b/devel/perltidy/files/patch-Makefile
new file mode 100644
index 000000000000..104a9f41a0ef
--- /dev/null
+++ b/devel/perltidy/files/patch-Makefile
@@ -0,0 +1,20 @@
+--- Makefile.orig Sun Mar 4 19:47:45 2001
++++ Makefile Sun Mar 4 19:49:36 2001
+@@ -2,7 +2,7 @@
+
+ # Step 1: edit BINDIR to reflect where you want to put perltidy
+ # This is fairly standard:
+-BINDIR = /usr/local/bin
++BINDIR = %%PREFIX%%/bin
+
+ # Step 2: edit MANDIR to reflect where you want to put the man page, perltidy.1
+ # or comment out MANDIR to skip installing a man page.
+@@ -10,7 +10,7 @@
+ # Hint: if directory usr/local/man/man1 does not exist,
+ # you might find the man path by entering the command
+ # perl '-V:install.*' and looking for the value of 'installman1dir'
+-MANDIR = /usr/local/man/man1
++MANDIR = %%MANPREFIX%%/man/man1
+
+ # Step 3: Then become superuser (if necessary) and issue the command
+ # make install
diff --git a/devel/perltidy/pkg-comment b/devel/perltidy/pkg-comment
new file mode 100644
index 000000000000..51fb2971081b
--- /dev/null
+++ b/devel/perltidy/pkg-comment
@@ -0,0 +1 @@
+Indents and reformats Perl scripts to make them easier to read
diff --git a/devel/perltidy/pkg-descr b/devel/perltidy/pkg-descr
new file mode 100644
index 000000000000..1ee44ff02b86
--- /dev/null
+++ b/devel/perltidy/pkg-descr
@@ -0,0 +1,5 @@
+Perltidy reads a Perl script and writes an indented, reformatted
+script. The default formatting closely follows the recommendations
+in perlstyle(1).
+
+WWW: http://perltidy.sourceforge.net/
diff --git a/devel/perltidy/pkg-plist b/devel/perltidy/pkg-plist
new file mode 100644
index 000000000000..b7618d3a03e7
--- /dev/null
+++ b/devel/perltidy/pkg-plist
@@ -0,0 +1,8 @@
+bin/perltidy
+%%PORTDOCS%%share/doc/perltidy/perltidy.html
+%%PORTDOCS%%share/doc/perltidy/perltidy.pod
+%%PORTDOCS%%share/doc/perltidy/perltidy.txt
+%%PORTDOCS%%share/doc/perltidy/tutorial.html
+%%PORTDOCS%%share/doc/perltidy/tutorial.pod
+%%PORTDOCS%%share/doc/perltidy/tutorial.txt
+%%PORTDOCS%%@dirrm share/doc/perltidy