diff --git a/devel/perltidy/Makefile b/devel/perltidy/Makefile index 352d007cdafe..58c4e4a6dd38 100644 --- a/devel/perltidy/Makefile +++ b/devel/perltidy/Makefile @@ -7,31 +7,19 @@ # PORTNAME= perltidy -PORTVERSION= 20011231 +PORTVERSION= 20020225 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= Perl-Tidy-${PORTVERSION} EXTRACT_SUFX= .tgz -MAINTAINER= ijliao@FreeBSD.org +MAINTAINER= ports@FreeBSD.org -USE_PERL5= yes -NO_BUILD= yes +PERL_CONFIGURE= yes -MAN1= perltidy.1 perl2web.1 - -post-patch: - @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g ; \ - s|%%MANPREFIX%%|${MANPREFIX}|g" ${WRKSRC}/Makefile - -.if !defined(NOPORTDOCS) -post-install: - @${MKDIR} ${DOCSDIR} -.for file in BUGS ChangeLog perl2web perltidy tutorial -.for ext in html txt - ${INSTALL_DATA} ${WRKSRC}/docs/${file}.${ext} ${DOCSDIR} -.endfor -.endfor -.endif +MAN1= perltidy.1 +MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +MAN3= Perl::Tidy.3 .include diff --git a/devel/perltidy/distinfo b/devel/perltidy/distinfo index 72810359b793..85a2a68d448b 100644 --- a/devel/perltidy/distinfo +++ b/devel/perltidy/distinfo @@ -1 +1 @@ -MD5 (perltidy-20011231.tgz) = c1e938df46602de5e224a3d9952e983e +MD5 (Perl-Tidy-20020225.tgz) = 8771ac9a588b5dea49d234b7306cf952 diff --git a/devel/perltidy/files/patch-Makefile b/devel/perltidy/files/patch-Makefile deleted file mode 100644 index 38f1e4cf6ced..000000000000 --- a/devel/perltidy/files/patch-Makefile +++ /dev/null @@ -1,19 +0,0 @@ ---- Makefile.orig Fri Mar 30 02:32:59 2001 -+++ Makefile Fri Mar 30 02:34:11 2001 -@@ -2,14 +2,14 @@ - - # 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. - # (Man pages can be found on the web at http://perltidy.sourceforge.net) - # - # Note: The value of MANDIR varies a lot, so be sure to check this. --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-plist b/devel/perltidy/pkg-plist index 4225d1412d34..360a61ce0312 100644 --- a/devel/perltidy/pkg-plist +++ b/devel/perltidy/pkg-plist @@ -1,12 +1,6 @@ bin/perltidy -%%PORTDOCS%%share/doc/perltidy/BUGS.html -%%PORTDOCS%%share/doc/perltidy/BUGS.txt -%%PORTDOCS%%share/doc/perltidy/ChangeLog.html -%%PORTDOCS%%share/doc/perltidy/ChangeLog.txt -%%PORTDOCS%%share/doc/perltidy/perl2web.html -%%PORTDOCS%%share/doc/perltidy/perl2web.txt -%%PORTDOCS%%share/doc/perltidy/perltidy.html -%%PORTDOCS%%share/doc/perltidy/perltidy.txt -%%PORTDOCS%%share/doc/perltidy/tutorial.html -%%PORTDOCS%%share/doc/perltidy/tutorial.txt -%%PORTDOCS%%@dirrm share/doc/perltidy +lib/perl5/site_perl/%%PERL_VER%%/Perl/Tidy.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Perl/Tidy/.packlist +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Perl 2>/dev/null || true +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Perl/Tidy +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Perl 2>/dev/null || true