1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 eblit-perl-pkg_setup() {
7 *-freebsd*) osname="freebsd" ;;
8 *-dragonfly*) osname="dragonfly" ;;
9 *-netbsd*) osname="netbsd" ;;
10 *-openbsd*) osname="openbsd" ;;
11 *-darwin*) osname="darwin" ;;
12 *-interix*) osname="interix" ;;
13 *-aix*) osname="aix" ;;
17 myarch="${CHOST%%-*}-${osname}"
21 if use ithreads ; then
26 LIBPERL="libperl$(get_libname ${MY_PV} )"
27 PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
28 ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
29 SITE_LIB="/usr/local/$(get_libdir)/perl5/${MY_PV}"
30 SITE_ARCH="/usr/local/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
31 VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
32 VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
34 if use ithreads ; then
36 ewarn "THREADS WARNING:"
37 ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
38 ewarn "interpreter-level threading enabled."
39 ewarn "Threading is not supported by all applications "
40 ewarn "that compile against perl. You use threading at "
41 ewarn "your own discretion. "
48 if has_version "<dev-lang/perl-${SHORT_PV}" ; then
50 ewarn "UPDATE THE PERL MODULES:"
51 ewarn "After updating dev-lang/perl the installed Perl modules will"
52 ewarn "have to be re-installed. In most cases, this is done automatically"
53 ewarn "by the package manager, but you should still call perl-cleaner to"
54 ewarn "make sure your system is consistent."
55 ewarn "Use: perl-cleaner --all"
56 elif has_version dev-lang/perl ; then
58 #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
59 #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
60 if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
61 ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
62 ( use debug && ! has_version dev-lang/perl[debug] ) || \
63 ( ! use debug && has_version dev-lang/perl[debug] ) ; then
65 ewarn "TOGGLED USE-FLAGS WARNING:"
66 ewarn "You changed one of the use-flags ithreads or debug."
67 ewarn "You must rebuild all perl-modules installed."
68 ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"