commit: 1def0baf7b39421cef041897d5e276f5064a515f Author: Kent Fredric <kentfredric <AT> gmail <DOT> com> AuthorDate: Sat Oct 11 17:13:12 2014 +0000 Commit: Kent Fredric <kentfredric <AT> gmail <DOT> com> CommitDate: Sat Oct 11 17:13:12 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=1def0baf
[eclass] perl-virtual-(2), Remove these eclasses, they are a bad idea. If you still need these, get them out of git and put them in your own overlay and support them yourself. --- eclass/perl-virtual-2.eclass | 139 ------------------------------------------- eclass/perl-virtual.eclass | 46 -------------- 2 files changed, 185 deletions(-) diff --git a/eclass/perl-virtual-2.eclass b/eclass/perl-virtual-2.eclass deleted file mode 100644 index 4bcce30..0000000 --- a/eclass/perl-virtual-2.eclass +++ /dev/null @@ -1,139 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -# -# Original Author: Kent Fredric <[email protected]> -# Purpose: Experimental virtuals for gentoo perl -# Reason: http://wiki.gentoo.org/wiki/Project:Perl/Ongoing_tasks#Updating_the_virtuals - - -# usage: -# -# EAPI=5 -# ON_CPAN=1 -# inherit perl-virtual-2 -# -# EAPI=5 -# ON_CPAN=1 -# PERL_VERSIONS="5.18" -# inherit perl-virtual-2 -# -# EAPI=5 -# PERL_VERSIONS="5.18" -# inherit perl-virtual-2 - - -case "${EAPI:0}" in - 5) - - ;; - *) - die "EAPI=${EAPI} is not supported by perl-virtual-2.eclass"; - ;; -esac - -DESCRIPTION="Virtual for perl-core/${PN#perl-}" -# Note: This has to be blank, repoman doesn't like it. -# But otherwise we'd link to http://wiki.gentoo.org/wiki/Project:Perl/Ongoing_tasks#Updating_the_virtuals -HOMEPAGE="" -SRC_URI="" -LICENSE="" -IUSE="" - -[[ ${ON_CPAN} ]] || ON_CPAN="" -ON_PERL="1" - -[[ ${PERL_VERSIONS} ]] || ON_PERL=""; - -[[ ${ON_CPAN} || ${ON_PERL} ]] || die "One of ON_CPAN or PERL_VERSIONS must be specified for perl-virtual-2.eclass"; - -# CPAN + Perl => -# perl_5_18 ? ( =perl-5.18* , !perl-core/ ) -# perl_5_16 ? ( =perl-5.16* , !perl-core/ ) -# !perl_5_18? ( !perl_5_16? ( -# || ( =perl-5.18* =perl-5.18* =perl-core/ ) -# !<perl-core/...$PV !>perl-core/..$PV -# )) -if [[ ${ON_CPAN} && ${ON_PERL} ]]; then - PL_DEPS=""; - EXCL_DEPS=""; - NEXCL_START=""; - NEXCL_STOP=""; - NPLS=0; - OLDIFS=$IFS; - IFS=" "; - for i in ${PERL_VERSIONS}; do - IUSE="$IUSE perl_${i//./_}" - EXCL_DEPS="$EXCL_DEPS perl_${i//./_}? ( =dev-lang/perl-${i}* !perl-core/${PN#perl-} )" - NEXCL_START="$NEXCL_START !perl_${i//./_}? (" - NEXCL_STOP=") $NEXCL_STOP" - PL_DEPS="$PL_DEPS =dev-lang/perl-${i}*" - NPLS=$(( $NPLS + 1 )); - done - IFS=$OLDIFS; - RDEPEND=" - $EXCL_DEPS - $NEXCL_START - || ( $PL_DEPS ~perl-core/${PN#perl-}-${PV} ) - !<perl-core/${PN#perl-}-${PV} - !>perl-core/${PN#perl-}-${PV}-r999 - $NEXCL_STOP" -fi - -# CPAN + !Perl => -# =perl-core/..$PV -# -if [[ ${ON_CPAN} && ! ${ON_PERL} ]]; then - RDEPEND="~perl-core/${PN#perl-}-${PV}" -fi - -# !CPAN + Perl => -# -# either: -# =perl-5.18 -# !perl-core/.. -# -# or -# -# perl_5_18? ( =perl-5.18* ) -# perl_5_16? ( =perl-5.16* ) -# !perl_5_18? ( !perl_5_16? ( -# || ( =perl-5.18* =perl-5.16* ) -# )) -# !perl-core/ -# -if [[ ! ${ON_CPAN} && ${ON_PERL} ]]; then - PL_DEPS=""; - NPLS=0; - EXCL_DEPS=""; - NEXCL_START=""; - NEXCL_STOP=""; - XIUSE=""; - OLDIFS=$IFS; - IFS=" "; - for i in ${PERL_VERSIONS}; do - XIUSE="$XIUSE perl_${i//./_}" - EXCL_DEPS="$EXCL_DEPS perl_${i//./_}? ( =dev-lang/perl-${i}* )" - NEXCL_START="$NEXCL_START !perl_${i//./_}? (" - NEXCL_STOP=") $NEXCL_STOP" - PL_DEPS="$PL_DEPS =dev-lang/perl-${i}*" - NPLS=$(( $NPLS + 1 )); - done - IFS=$OLDIFS; - if [[ $NPLS > 1 ]]; then - IUSE="$IUSE ${XIUSE}"; - RDEPEND=" - $EXCL_DEPS - $NEXCL_START - || ( $PL_DEPS ) - $NEXCL_STOP - !perl-core/${PN#perl-} - " - else - RDEPEND=" - $PL_DEPS - !perl-core/${PN#perl-} - " - fi -fi diff --git a/eclass/perl-virtual.eclass b/eclass/perl-virtual.eclass deleted file mode 100644 index 9d7e69a..0000000 --- a/eclass/perl-virtual.eclass +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -# @ECLASS: perl-virtual.eclass -# @MAINTAINER: -# [email protected] -# @BLURB: Set up virtuals for perl modules more easily -# @DESCRIPTION: -# The perl-virtual.eclass sets all possible ebuild variables. It uses the -# PM_PROVIDER array to set the any-of-many runtime dependencies. -# @EXAMPLE: -# An ebuild might look like this: -# -# @CODE -# -# PM_PROVIDER+=( "~dev-lang/perl-5.12.3" ) -# PM_PROVIDER+=( "5.10.1" ) -# inherit perl-virtual -# KEYWORDS="~amd64 ~x86" -# IUSE="" -# -# @CODE - -# @ECLASS-VARIABLE: PM_PROVIDER -# @DEFAULT_UNSET -# @DESCRIPTION: -# The array should list the providers to be added to RDEPEND -# with preference from highest to lowest. -# If an element starts with "5", it is considered a ~dev-lang/perl version. -# If PM_PROVIDER is not defined, RDEPEND isn't set. -# ~perl-core/${PN#perl-}-${PV} is added at the end automatically. - -DESCRIPTION="Virtual for ${PN#perl-}" -HOMEPAGE="" -SRC_URI="" - -LICENSE="" -SLOT="0" -IUSE="" - -if [[ $(declare -p PM_PROVIDER 2>&-) != "declare -a PM_PROVIDER="* ]] ; then - RDEPEND="~perl-core/${PN#perl-}-${PV}" -elif [[ ${#PM_PROVIDER[*]} -gt 0 ]] ; then - RDEPEND="|| ( ${PM_PROVIDER[@]/#5/~dev-lang/perl-5} ~perl-core/${PN#perl-}-${PV} )" -fi
