# Copyright 1999-2013 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 "