From d158e99d339876e2ee8cd317b5dbb3be376999e3 Mon Sep 17 00:00:00 2001 From: "Chris D. Faulhaber" Date: Tue, 29 Feb 2000 02:27:02 +0000 Subject: [PATCH] Upgrade shells/perlsh to new version (perlsh 0.007). 1) Update pkg/PLIST. 2) Change to depend on perlsh's install mechanism. 3) New patch (patch-aa) fixes PREFIX problem. 4) Account for broken TCP/IP on MASTER_SITES. 5) General Makefile cleanups. 6) Addition of perlsh to perl5 virtual category. 7) Use PKGNAME to match port's name. 8) Remove unnecessary perl substitution. PR: 17031 Submitted by: Maintainer --- shells/perlsh/Makefile | 28 +++++++++--------- shells/perlsh/distinfo | 2 +- shells/perlsh/files/man3 | 19 ++++++++++++ shells/perlsh/files/patch-aa | 10 +++++++ shells/perlsh/pkg-descr | 2 +- shells/perlsh/pkg-plist | 56 ++++++++++++++++++++++++++++++------ shells/psh/Makefile | 28 +++++++++--------- shells/psh/distinfo | 2 +- shells/psh/files/man3 | 19 ++++++++++++ shells/psh/files/patch-aa | 10 +++++++ shells/psh/pkg-descr | 2 +- shells/psh/pkg-plist | 56 ++++++++++++++++++++++++++++++------ 12 files changed, 182 insertions(+), 52 deletions(-) create mode 100644 shells/perlsh/files/man3 create mode 100644 shells/perlsh/files/patch-aa create mode 100644 shells/psh/files/man3 create mode 100644 shells/psh/files/patch-aa diff --git a/shells/perlsh/Makefile b/shells/perlsh/Makefile index fd310560a7e0..b59a8f2077a8 100644 --- a/shells/perlsh/Makefile +++ b/shells/perlsh/Makefile @@ -1,32 +1,30 @@ # New ports collection makefile for: perlsh -# Version required: 0.004pre2 +# Version required: 0.007 # Date created: 11 Dec 1999 # Whom: Will Andrews # # $FreeBSD$ # -DISTNAME= psh-0.004pre2 -CATEGORIES= shells +DISTNAME= psh-${VERSION} +PKGNAME= perlsh-${VERSION} +CATEGORIES= shells perl5 MASTER_SITES= http://www.focusresearch.com/gregor/psh/ MAINTAINER= andrews@technologist.com +VERSION= 0.007 +USE_PERL5= yes +FETCH_BEFORE_ARGS+= -t +MAKE_ENV+= PPREFIX="${PREFIX}" +MAN1= psh.1 +MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +.include "${.CURDIR}/files/man3" + do-build: @(cd ${WRKSRC} && ${PERL} Makefile.PL && ${MAKE}) -post-build: - @${PERL} -pi -e "s/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g" ${WRKSRC}/psh - -do-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/perlsh -.for DOC in CHANGES MANIFEST README TODO psh.NEWS pshrc test.pl psh.pod - @${INSTALL_DATA} ${WRKSRC}/${DOC} ${PREFIX}/share/perlsh -.endfor -.endif - @${INSTALL_SCRIPT} ${WRKSRC}/psh ${PREFIX}/bin - post-install: @${ECHO} "Updating /etc/shells" @${CP} /etc/shells /etc/shells.bak diff --git a/shells/perlsh/distinfo b/shells/perlsh/distinfo index 75c2db0f9e8a..64afe5342cf8 100644 --- a/shells/perlsh/distinfo +++ b/shells/perlsh/distinfo @@ -1 +1 @@ -MD5 (psh-0.004pre2.tar.gz) = 9b8f0ef1bd3708cb8fa4101ab4d6c1b4 +MD5 (psh-0.007.tar.gz) = caae93083d1cf5724b9e7d5864ba1d2c diff --git a/shells/perlsh/files/man3 b/shells/perlsh/files/man3 new file mode 100644 index 000000000000..72352696c2a6 --- /dev/null +++ b/shells/perlsh/files/man3 @@ -0,0 +1,19 @@ +MAN3= \ + Psh::OS::Unix.3 \ + Psh::Locale::French.3 \ + Psh::Locale::Spanish.3 \ + Psh::Joblist.3 \ + Psh::Locale::German.3 \ + Psh::Locale::Base.3 \ + Psh::Completion.3 \ + Psh::PerlEval.3 \ + Psh::Job.3 \ + Psh::Util.3 \ + Psh::OS::Win.3 \ + Psh::Locale::Italian.3 \ + Psh::OS.3 \ + Psh::OS::Mac.3 \ + Psh::Locale::Default.3 \ + Psh::Builtins.3 \ + Psh::Parser.3 \ + Psh::Locale::Portuguese.3 diff --git a/shells/perlsh/files/patch-aa b/shells/perlsh/files/patch-aa new file mode 100644 index 000000000000..365334e4e1eb --- /dev/null +++ b/shells/perlsh/files/patch-aa @@ -0,0 +1,10 @@ +--- Makefile.PL Mon Dec 27 06:11:05 1999 ++++ Makefile.PL.new Sun Feb 27 22:34:55 2000 +@@ -17,6 +17,7 @@ + + WriteMakefile ( + NAME => 'psh', ++ PREFIX => '${PPREFIX}', + VERSION_FROM => 'psh', + AUTHOR => 'Gregor N. Purdy (gregor@focusresearch.com)', + ABSTRACT => 'Perl Shell', diff --git a/shells/perlsh/pkg-descr b/shells/perlsh/pkg-descr index f0e2a2dfd58c..0025c8a8c1c0 100644 --- a/shells/perlsh/pkg-descr +++ b/shells/perlsh/pkg-descr @@ -1,4 +1,4 @@ Perl Shell is a new shell that combines the power of bash and several other shells with the power of perl programming. -WWW: http://www.focusresearch.com/gregor/psh/index.html +WWW: http://www.focusresearch.com/gregor/psh/ diff --git a/shells/perlsh/pkg-plist b/shells/perlsh/pkg-plist index ac3a1eb131e4..01d5d21d0578 100644 --- a/shells/perlsh/pkg-plist +++ b/shells/perlsh/pkg-plist @@ -1,10 +1,48 @@ bin/psh -share/perlsh/CHANGES -share/perlsh/MANIFEST -share/perlsh/README -share/perlsh/TODO -share/perlsh/psh.NEWS -share/perlsh/pshrc -share/perlsh/test.pl -share/perlsh/psh.pod -@dirrm share/perlsh +lib/perl5/site_perl/%%PERL_VER%%/Psh.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/OS/Unix.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/OS/Win.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/OS/Mac.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Joblist.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Fallback/Ls.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Fallback/Env.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Readline.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Bg.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Symbols.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Fg.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Jobs.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Which.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Builtin.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Exit.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Help.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Kill.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Source.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Strategy.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Completion.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Base.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Italian.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Default.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/French.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Spanish.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/German.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Portuguese.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/PerlEval.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Perlfunc.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Fallback_builtin.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Auto_resume.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Auto_cd.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Perlscript.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/OS.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Job.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Util.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Prompt.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Parser.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/psh/.packlist +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/psh +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Fallback +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/OS +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh diff --git a/shells/psh/Makefile b/shells/psh/Makefile index fd310560a7e0..b59a8f2077a8 100644 --- a/shells/psh/Makefile +++ b/shells/psh/Makefile @@ -1,32 +1,30 @@ # New ports collection makefile for: perlsh -# Version required: 0.004pre2 +# Version required: 0.007 # Date created: 11 Dec 1999 # Whom: Will Andrews # # $FreeBSD$ # -DISTNAME= psh-0.004pre2 -CATEGORIES= shells +DISTNAME= psh-${VERSION} +PKGNAME= perlsh-${VERSION} +CATEGORIES= shells perl5 MASTER_SITES= http://www.focusresearch.com/gregor/psh/ MAINTAINER= andrews@technologist.com +VERSION= 0.007 +USE_PERL5= yes +FETCH_BEFORE_ARGS+= -t +MAKE_ENV+= PPREFIX="${PREFIX}" +MAN1= psh.1 +MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +.include "${.CURDIR}/files/man3" + do-build: @(cd ${WRKSRC} && ${PERL} Makefile.PL && ${MAKE}) -post-build: - @${PERL} -pi -e "s/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g" ${WRKSRC}/psh - -do-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/perlsh -.for DOC in CHANGES MANIFEST README TODO psh.NEWS pshrc test.pl psh.pod - @${INSTALL_DATA} ${WRKSRC}/${DOC} ${PREFIX}/share/perlsh -.endfor -.endif - @${INSTALL_SCRIPT} ${WRKSRC}/psh ${PREFIX}/bin - post-install: @${ECHO} "Updating /etc/shells" @${CP} /etc/shells /etc/shells.bak diff --git a/shells/psh/distinfo b/shells/psh/distinfo index 75c2db0f9e8a..64afe5342cf8 100644 --- a/shells/psh/distinfo +++ b/shells/psh/distinfo @@ -1 +1 @@ -MD5 (psh-0.004pre2.tar.gz) = 9b8f0ef1bd3708cb8fa4101ab4d6c1b4 +MD5 (psh-0.007.tar.gz) = caae93083d1cf5724b9e7d5864ba1d2c diff --git a/shells/psh/files/man3 b/shells/psh/files/man3 new file mode 100644 index 000000000000..72352696c2a6 --- /dev/null +++ b/shells/psh/files/man3 @@ -0,0 +1,19 @@ +MAN3= \ + Psh::OS::Unix.3 \ + Psh::Locale::French.3 \ + Psh::Locale::Spanish.3 \ + Psh::Joblist.3 \ + Psh::Locale::German.3 \ + Psh::Locale::Base.3 \ + Psh::Completion.3 \ + Psh::PerlEval.3 \ + Psh::Job.3 \ + Psh::Util.3 \ + Psh::OS::Win.3 \ + Psh::Locale::Italian.3 \ + Psh::OS.3 \ + Psh::OS::Mac.3 \ + Psh::Locale::Default.3 \ + Psh::Builtins.3 \ + Psh::Parser.3 \ + Psh::Locale::Portuguese.3 diff --git a/shells/psh/files/patch-aa b/shells/psh/files/patch-aa new file mode 100644 index 000000000000..365334e4e1eb --- /dev/null +++ b/shells/psh/files/patch-aa @@ -0,0 +1,10 @@ +--- Makefile.PL Mon Dec 27 06:11:05 1999 ++++ Makefile.PL.new Sun Feb 27 22:34:55 2000 +@@ -17,6 +17,7 @@ + + WriteMakefile ( + NAME => 'psh', ++ PREFIX => '${PPREFIX}', + VERSION_FROM => 'psh', + AUTHOR => 'Gregor N. Purdy (gregor@focusresearch.com)', + ABSTRACT => 'Perl Shell', diff --git a/shells/psh/pkg-descr b/shells/psh/pkg-descr index f0e2a2dfd58c..0025c8a8c1c0 100644 --- a/shells/psh/pkg-descr +++ b/shells/psh/pkg-descr @@ -1,4 +1,4 @@ Perl Shell is a new shell that combines the power of bash and several other shells with the power of perl programming. -WWW: http://www.focusresearch.com/gregor/psh/index.html +WWW: http://www.focusresearch.com/gregor/psh/ diff --git a/shells/psh/pkg-plist b/shells/psh/pkg-plist index ac3a1eb131e4..01d5d21d0578 100644 --- a/shells/psh/pkg-plist +++ b/shells/psh/pkg-plist @@ -1,10 +1,48 @@ bin/psh -share/perlsh/CHANGES -share/perlsh/MANIFEST -share/perlsh/README -share/perlsh/TODO -share/perlsh/psh.NEWS -share/perlsh/pshrc -share/perlsh/test.pl -share/perlsh/psh.pod -@dirrm share/perlsh +lib/perl5/site_perl/%%PERL_VER%%/Psh.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/OS/Unix.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/OS/Win.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/OS/Mac.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Joblist.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Fallback/Ls.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Fallback/Env.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Readline.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Bg.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Symbols.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Fg.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Jobs.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Which.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Builtin.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Exit.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Help.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Kill.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Source.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Strategy.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Completion.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Base.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Italian.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Default.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/French.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Spanish.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/German.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale/Portuguese.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/PerlEval.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Perlfunc.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Fallback_builtin.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Auto_resume.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Auto_cd.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy/Perlscript.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/OS.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Job.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Util.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Prompt.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins.pm +lib/perl5/site_perl/%%PERL_VER%%/Psh/Parser.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/psh/.packlist +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/psh +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins/Fallback +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/Builtins +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/Locale +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/OS +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh/Strategy +@dirrm lib/perl5/site_perl/%%PERL_VER%%/Psh