diff options
| author | Anton Berezin <tobez@FreeBSD.org> | 2005-02-02 09:34:05 +0000 |
|---|---|---|
| committer | Anton Berezin <tobez@FreeBSD.org> | 2005-02-02 09:34:05 +0000 |
| commit | e2611e24e061b6fd7fdececed33cd8361b900f81 (patch) | |
| tree | 4540b2498bf39c544d72184831ae0e04fdd6680d /lang/perl5.6/files/use.perl | |
| parent | - Update to 0.80 (aka 1.0 beta3) (diff) | |
Update bsd.port.mk's notion of the perl version (to 5.8.6) [1].
Use more correct OSVERSION threshold to distinguish between
base system perl and perl from ports - the right value is 500036 [1].
Also, simplify OSVERSION-related logic in lang/perl5 and lang/perl5.8.
Now it goes as follows:
- for lang/perl5.8, if there is perl in the base system, install
use.perl script, use a helpful pkg-message, and do not automatically
update symlinks;
- for lang/perl5.8, if there is no perl in the base system, do not
install use.perl script, and update symlinks automatically;
- for lang/perl5, always install use.perl;
- for lang/perl5, never update symlinks automatically;
- for lang/perl5, vary produced pkg-message depending on the presence of
the base system perl.
Bump PORTREVISION for both lang/perl5 and lang/perl5.8.
[1] Approved by: portmgr
Diffstat (limited to 'lang/perl5.6/files/use.perl')
| -rw-r--r-- | lang/perl5.6/files/use.perl | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lang/perl5.6/files/use.perl b/lang/perl5.6/files/use.perl index 916f5f288e58..c5c8d71a51c0 100644 --- a/lang/perl5.6/files/use.perl +++ b/lang/perl5.6/files/use.perl @@ -41,16 +41,10 @@ if [ "x$this" = "xuse.perl" ]; then fi else if [ "$2" = "POST-INSTALL" ] ; then - need_remove_links=yes - if [ $osreldate -ge 500036 -a $osreldate -lt 502100 ] ; then - need_create_links=yes - need_cleanup_make_conf=yes - need_cleanup_manpath=yes - need_spam_make_conf=yes - need_spam_manpath=yes - fi need_post_install=yes elif [ "$2" = "POST-DEINSTALL" ] ; then + # XXX this needs a more intelligent handling + # XXX since we would not want to remove perl5.8's links need_remove_links=yes if [ $osreldate -lt 500036 ] ; then need_base_system_perl=yes |
