diff options
Diffstat (limited to 'dev-lang/perl/files/eblits/pkg_setup-v50220001.eblit')
-rw-r--r-- | dev-lang/perl/files/eblits/pkg_setup-v50220001.eblit | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/dev-lang/perl/files/eblits/pkg_setup-v50220001.eblit b/dev-lang/perl/files/eblits/pkg_setup-v50220001.eblit deleted file mode 100644 index e46ffc2ae573..000000000000 --- a/dev-lang/perl/files/eblits/pkg_setup-v50220001.eblit +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -eblit-perl-pkg_setup() { - case ${CHOST} in - *-freebsd*) osname="freebsd" ;; - *-dragonfly*) osname="dragonfly" ;; - *-netbsd*) osname="netbsd" ;; - *-openbsd*) osname="openbsd" ;; - *-darwin*) osname="darwin" ;; - *-interix*) osname="interix" ;; - *-aix*) osname="aix" ;; - *) osname="linux" ;; - esac - - myarch="${CHOST%%-*}-${osname}" - if use debug ; then - myarch+="-debug" - fi - if use ithreads ; then - mythreading="-multi" - myarch+="-thread" - fi - - LIBPERL="libperl$(get_libname ${MY_PV} )" - PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}" - ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}" - SITE_LIB="/usr/local/$(get_libdir)/perl5/${MY_PV}" - SITE_ARCH="/usr/local/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}" - VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}" - VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}" - - if use ithreads ; then - echo "" - ewarn "THREADS WARNING:" - ewarn "PLEASE NOTE: You are compiling ${MY_P} with" - ewarn "interpreter-level threading enabled." - ewarn "Threading is not supported by all applications " - ewarn "that compile against perl. You use threading at " - ewarn "your own discretion. " - fi - check_rebuild - dual_scripts -} - -check_rebuild() { - if has_version "<dev-lang/perl-${SHORT_PV}" ; then - echo "" - ewarn "UPDATE THE PERL MODULES:" - ewarn "After updating dev-lang/perl the installed Perl modules" - ewarn "have to be re-installed. In most cases, this is done automatically" - ewarn "by the package manager, but subsequent steps are still recommended" - ewarn "to ensure system consistency." - ewarn - ewarn "You should start with a depclean to remove any unused perl dependencies" - ewarn "that may confuse portage in future. Regular depcleans are also encouraged" - ewarn "as part of your regular update cycle, as that will keep perl upgrades working." - ewarn "Recommended: emerge --depclean -va" - ewarn - ewarn "You should then call perl-cleaner to clean up any old files and trigger any" - ewarn "remaining rebuilds portage may have missed." - ewarn "Use: perl-cleaner --all" - elif has_version dev-lang/perl ; then - # doesnot work - #if ! has_version dev-lang/perl[ithreads=,debug=] ; then - #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then - if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \ - ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \ - ( use debug && ! has_version dev-lang/perl[debug] ) || \ - ( ! use debug && has_version dev-lang/perl[debug] ) ; then - echo "" - ewarn "TOGGLED USE-FLAGS WARNING:" - ewarn "You changed one of the use-flags ithreads or debug." - ewarn "You must rebuild all perl-modules installed." - ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl" - fi - fi -} - |