summaryrefslogtreecommitdiff
path: root/lang/perl5.10/files/use.perl
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2009-03-28 20:45:10 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2009-03-28 20:45:10 +0000
commit1a9ef9fa6754e0c0f087f4e7a76e65029a75941c (patch)
treee0596dfc5254e65a6f3de0b5eb6d25f4ad08a7d0 /lang/perl5.10/files/use.perl
parentUpdate to 20081128. Changes include: (diff)
Introduce Perl 5.10.0
Notes
Notes: svn path=/head/; revision=231213
Diffstat (limited to 'lang/perl5.10/files/use.perl')
-rw-r--r--lang/perl5.10/files/use.perl47
1 files changed, 13 insertions, 34 deletions
diff --git a/lang/perl5.10/files/use.perl b/lang/perl5.10/files/use.perl
index 55b7f51ed148..a75ac2641a65 100644
--- a/lang/perl5.10/files/use.perl
+++ b/lang/perl5.10/files/use.perl
@@ -17,41 +17,20 @@ else
osreldate=${OSVERSION}
fi
-if [ "x$this" = "xuse.perl" ]; then
- PKG_PREFIX="%%PREFIX%%"
- if [ "$1" = "port" ] ; then
- need_remove_links=yes
- need_create_links=yes
- need_cleanup_make_conf=yes
- need_cleanup_manpath=yes
- need_spam_make_conf=yes
- need_spam_manpath=yes
- elif [ "$1" = "system" ] ; then
- need_remove_links=yes
- need_cleanup_make_conf=yes
- need_cleanup_manpath=yes
- else
- echo "Usage:
- ${0##*/} port -> /usr/bin/perl is the perl5 port
- ${0##*/} system -> /usr/bin/perl is the system perl"
- exit 2;
- fi
+if [ "$2" = "POST-INSTALL" ] ; then
+ need_remove_links=yes
+ need_create_links=yes
+ need_cleanup_make_conf=yes
+ need_cleanup_manpath=yes
+ need_spam_make_conf=yes
+ need_spam_manpath=yes
+ need_post_install=yes
+elif [ "$2" = "POST-DEINSTALL" ] ; then
+ need_remove_links=yes
+ need_cleanup_make_conf=yes
+ need_cleanup_manpath=yes
else
- if [ "$2" = "POST-INSTALL" ] ; then
- need_remove_links=yes
- need_create_links=yes
- need_cleanup_make_conf=yes
- need_cleanup_manpath=yes
- need_spam_make_conf=yes
- need_spam_manpath=yes
- need_post_install=yes
- elif [ "$2" = "POST-DEINSTALL" ] ; then
- need_remove_links=yes
- need_cleanup_make_conf=yes
- need_cleanup_manpath=yes
- else
- exit 0;
- fi
+ exit 0;
fi
special_link_list="