From 759703f8c39e29a5e5c57777e2107b4faa261ba6 Mon Sep 17 00:00:00 2001 From: Nick Owens Date: Tue, 23 Feb 2016 11:10:14 -0800 Subject: [PATCH] eclass: sync some smaller or unused changes from upstream --- .../portage-stable/eclass/alternatives.eclass | 2 +- .../portage-stable/eclass/ant-tasks.eclass | 17 +- .../portage-stable/eclass/apache-2.eclass | 17 +- .../eclass/apache-module.eclass | 2 +- .../portage-stable/eclass/aspell-dict.eclass | 2 +- .../eclass/autotools-multilib.eclass | 3 +- .../eclass/autotools-utils.eclass | 3 +- .../portage-stable/eclass/base.eclass | 19 +- .../eclass/bash-completion-r1.eclass | 12 +- .../eclass/bash-completion.eclass | 101 -- .../portage-stable/eclass/bsdmk.eclass | 2 +- .../portage-stable/eclass/bzr.eclass | 2 +- .../portage-stable/eclass/cannadic.eclass | 2 +- .../portage-stable/eclass/cdrom.eclass | 2 +- .../portage-stable/eclass/chromium.eclass | 10 +- .../portage-stable/eclass/clutter.eclass | 72 -- .../eclass/cmake-multilib.eclass | 4 +- .../eclass/common-lisp-3.eclass | 2 +- .../eclass/common-lisp-common-2.eclass | 2 +- .../eclass/common-lisp-common-3.eclass | 4 +- .../eclass/common-lisp-common.eclass | 2 +- .../portage-stable/eclass/common-lisp.eclass | 2 +- .../portage-stable/eclass/confutils.eclass | 2 +- .../portage-stable/eclass/cron.eclass | 6 +- .../portage-stable/eclass/cuda.eclass | 20 +- .../portage-stable/eclass/cvs.eclass | 6 +- .../portage-stable/eclass/darcs.eclass | 6 +- .../portage-stable/eclass/db-use.eclass | 2 +- .../portage-stable/eclass/db.eclass | 14 +- .../eclass/depend.apache.eclass | 2 +- .../portage-stable/eclass/depend.php.eclass | 342 +----- .../portage-stable/eclass/distutils.eclass | 5 +- .../portage-stable/eclass/dotnet.eclass | 143 +++ .../portage-stable/eclass/elisp-common.eclass | 4 +- .../portage-stable/eclass/embassy.eclass | 92 -- .../portage-stable/eclass/emboss-r1.eclass | 11 +- .../eclass/emul-linux-x86.eclass | 96 -- .../eclass/enlightenment.eclass | 2 +- .../portage-stable/eclass/fcaps.eclass | 5 +- .../portage-stable/eclass/fdo-mime.eclass | 2 +- .../portage-stable/eclass/findlib.eclass | 2 +- .../portage-stable/eclass/fixheadtails.eclass | 2 +- .../eclass/font-ebdftopcf.eclass | 2 +- .../portage-stable/eclass/font.eclass | 2 +- .../portage-stable/eclass/fortran-2.eclass | 95 +- .../portage-stable/eclass/fox.eclass | 2 +- .../portage-stable/eclass/freebsd.eclass | 2 +- .../portage-stable/eclass/freedict.eclass | 2 +- .../portage-stable/eclass/games-mods.eclass | 5 +- .../portage-stable/eclass/games.eclass | 17 +- .../portage-stable/eclass/gdesklets.eclass | 6 +- .../portage-stable/eclass/ghc-package.eclass | 38 +- .../eclass/gkrellm-plugin.eclass | 2 +- .../portage-stable/eclass/gnat.eclass | 2 +- .../portage-stable/eclass/gnatbuild.eclass | 4 +- .../portage-stable/eclass/gnome-games.eclass | 6 +- .../eclass/gnome-python-common-r1.eclass | 6 +- .../portage-stable/eclass/gnome.org.eclass | 4 +- .../portage-stable/eclass/gnome2-utils.eclass | 85 +- .../portage-stable/eclass/gnome2.eclass | 74 +- .../portage-stable/eclass/gnuconfig.eclass | 2 +- .../portage-stable/eclass/gnustep-2.eclass | 2 +- .../portage-stable/eclass/gnustep-base.eclass | 4 +- .../portage-stable/eclass/go-mono.eclass | 5 +- .../portage-stable/eclass/gpe.eclass | 2 +- .../eclass/gst-plugins-bad.eclass | 2 +- .../eclass/gst-plugins-base.eclass | 2 +- .../eclass/gst-plugins-good.eclass | 2 +- .../eclass/gst-plugins-ugly.eclass | 2 +- .../eclass/gst-plugins10.eclass | 6 +- .../portage-stable/eclass/gstreamer.eclass | 14 +- .../eclass/gtk-sharp-module.eclass | 31 +- .../eclass/haskell-cabal.eclass | 55 +- .../portage-stable/eclass/horde.eclass | 2 +- .../portage-stable/eclass/intel-sdp.eclass | 52 +- .../portage-stable/eclass/java-ant-2.eclass | 29 +- .../portage-stable/eclass/java-mvn-src.eclass | 63 +- .../portage-stable/eclass/java-osgi.eclass | 130 +- .../portage-stable/eclass/java-pkg-2.eclass | 11 +- .../eclass/java-pkg-opt-2.eclass | 16 +- .../eclass/java-pkg-simple.eclass | 166 +-- .../portage-stable/eclass/java-utils-2.eclass | 311 +++-- .../eclass/java-virtuals-2.eclass | 2 +- .../portage-stable/eclass/java-vm-2.eclass | 11 +- .../portage-stable/eclass/kde4-base.eclass | 86 +- .../eclass/kde4-functions.eclass | 34 +- .../eclass/kde4-meta-pkg.eclass | 4 +- .../portage-stable/eclass/kde4-meta.eclass | 14 +- .../eclass/kde5-functions.eclass | 98 +- .../eclass/kde5-meta-pkg.eclass | 23 + .../portage-stable/eclass/kde5.eclass | 159 ++- .../portage-stable/eclass/l10n.eclass | 2 +- .../eclass/latex-package.eclass | 52 +- .../portage-stable/eclass/leechcraft.eclass | 10 +- .../portage-stable/eclass/linux-mod.eclass | 6 +- .../portage-stable/eclass/makeedit.eclass | 2 +- .../portage-stable/eclass/mercurial.eclass | 9 +- .../portage-stable/eclass/mono-env.eclass | 2 +- .../portage-stable/eclass/mono.eclass | 2 +- .../portage-stable/eclass/mozconfig-3.eclass | 2 +- .../eclass/mozconfig-v5.31.eclass | 6 +- .../eclass/mozconfig-v5.34.eclass | 2 +- .../eclass/mozconfig-v5.36.eclass | 4 +- .../eclass/mozconfig-v5.38.eclass | 4 +- ...ig-v4.31.eclass => mozconfig-v6.38.eclass} | 112 +- ...ig-v5.33.eclass => mozconfig-v6.39.eclass} | 62 +- .../eclass/mozconfig-v6.40.eclass | 263 +++++ .../eclass/mozconfig-v6.41.eclass | 263 +++++ .../eclass/mozconfig-v6.42.eclass | 282 +++++ .../eclass/mozconfig-v6.44.eclass | 341 ++++++ .../eclass/mozcoreconf-2.eclass | 2 +- .../eclass/mozcoreconf-v3.eclass | 10 +- .../portage-stable/eclass/mozextension.eclass | 20 +- .../eclass/mozilla-launcher.eclass | 8 +- .../portage-stable/eclass/mozlinguas.eclass | 209 +++- .../portage-stable/eclass/myspell-r2.eclass | 2 +- .../portage-stable/eclass/myspell.eclass | 2 +- .../portage-stable/eclass/mysql-cmake.eclass | 107 +- .../eclass/mysql-multilib-r1.eclass | 1046 +++++++++++++++++ .../eclass/mysql-multilib.eclass | 306 ++++- .../portage-stable/eclass/mysql-v2.eclass | 12 +- .../portage-stable/eclass/mysql_fx.eclass | 2 +- .../eclass/mythtv-plugins.eclass | 129 -- .../portage-stable/eclass/mythtv.eclass | 48 - .../portage-stable/eclass/netsurf.eclass | 2 +- .../portage-stable/eclass/nsplugins.eclass | 2 +- .../eclass/nvidia-driver.eclass | 7 +- .../portage-stable/eclass/oasis.eclass | 11 +- .../portage-stable/eclass/obs-download.eclass | 2 +- .../portage-stable/eclass/obs-service.eclass | 2 +- .../eclass/office-ext-r1.eclass | 4 +- .../portage-stable/eclass/openib.eclass | 2 +- .../portage-stable/eclass/pam.eclass | 7 +- .../portage-stable/eclass/pax-utils.eclass | 92 +- .../portage-stable/eclass/perl-app.eclass | 13 +- .../eclass/php-common-r1.eclass | 297 ----- .../eclass/php-ext-base-r1.eclass | 188 --- .../eclass/php-ext-pecl-r2.eclass | 10 +- .../eclass/php-ext-source-r2.eclass | 31 +- .../portage-stable/eclass/php-ezc.eclass | 54 - .../portage-stable/eclass/php-lib-r1.eclass | 6 +- .../eclass/php-pear-lib-r1.eclass | 7 +- .../portage-stable/eclass/php-pear-r1.eclass | 26 +- .../portage-stable/eclass/phpconfutils.eclass | 2 +- .../portage-stable/eclass/portability.eclass | 2 +- .../portage-stable/eclass/prefix.eclass | 2 +- .../eclass/python-utils-r1.eclass | 4 +- .../portage-stable/eclass/qmail.eclass | 28 +- .../eclass/readme.gentoo-r1.eclass | 109 ++ .../eclass/readme.gentoo.eclass | 21 +- .../portage-stable/eclass/rpm.eclass | 4 +- .../portage-stable/eclass/ruby-fakegem.eclass | 35 +- .../eclass/ruby-ng-gnome2.eclass | 2 +- .../portage-stable/eclass/ruby-ng.eclass | 27 +- .../portage-stable/eclass/ruby-single.eclass | 19 +- .../portage-stable/eclass/ruby-utils.eclass | 8 +- .../portage-stable/eclass/s6.eclass | 4 +- .../portage-stable/eclass/savedconfig.eclass | 2 +- .../portage-stable/eclass/scsh.eclass | 2 +- .../portage-stable/eclass/sgml-catalog.eclass | 2 +- .../portage-stable/eclass/ssl-cert.eclass | 2 +- .../portage-stable/eclass/stardict.eclass | 2 +- .../portage-stable/eclass/subversion.eclass | 4 +- .../portage-stable/eclass/sword-module.eclass | 2 +- .../tests/autotools_eaclocal_amflags.sh | 2 +- .../eclass/tests/distutils-r1.sh | 2 +- .../eclass/tests/eutils_eshopts.sh | 3 + .../eclass/tests/eutils_estack.sh | 2 +- .../eclass/tests/eutils_evar.sh | 2 +- .../eclass/tests/eutils_path_exists.sh | 2 +- .../eclass/tests/flag-o-matic.sh | 2 +- .../portage-stable/eclass/tests/git-r3.sh | 2 +- .../eclass/tests/git-r3_GIT_DIR.sh | 2 +- .../eclass/tests/git-r3_subrepos.sh | 2 +- .../tests/linux-info_get_running_version.sh | 2 +- .../eclass/tests/multiprocessing.sh | 2 +- .../tests/multiprocessing_makeopts_jobs.sh | 2 +- .../tests/multiprocessing_makeopts_loadavg.sh | 36 + .../eclass/tests/python-utils-r1.sh | 48 +- .../eclass/tests/savedconfig.sh | 2 +- .../eclass/tests/scons-utils.sh | 23 +- .../eclass/tests/tests-common.sh | 2 +- .../eclass/tests/toolchain-funcs.sh | 2 +- .../portage-stable/eclass/tests/toolchain.sh | 2 +- .../tests/versionator_version_compare.sh | 2 +- .../eclass/texlive-common.eclass | 4 +- .../eclass/texlive-module.eclass | 16 +- .../eclass/toolchain-funcs.eclass | 5 +- .../portage-stable/eclass/twisted-r1.eclass | 4 +- .../portage-stable/eclass/udev.eclass | 4 +- .../portage-stable/eclass/unpacker.eclass | 4 +- .../portage-stable/eclass/user.eclass | 2 +- .../portage-stable/eclass/vcs-snapshot.eclass | 16 +- .../portage-stable/eclass/vdr-plugin-2.eclass | 2 +- .../portage-stable/eclass/versionator.eclass | 2 +- .../portage-stable/eclass/vim-doc.eclass | 2 +- .../portage-stable/eclass/vim-plugin.eclass | 4 +- .../portage-stable/eclass/vim-spell.eclass | 4 +- .../eclass/vmware-bundle.eclass | 2 +- .../portage-stable/eclass/waf-utils.eclass | 8 +- .../portage-stable/eclass/webapp.eclass | 22 +- .../portage-stable/eclass/x-modular.eclass | 2 +- .../eclass/xemacs-elisp-common.eclass | 2 +- .../portage-stable/eclass/xemacs-elisp.eclass | 2 +- .../eclass/xemacs-packages.eclass | 2 +- .../portage-stable/eclass/xfconf.eclass | 2 +- .../portage-stable/eclass/xorg-2.eclass | 6 +- 207 files changed, 4688 insertions(+), 2690 deletions(-) delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/bash-completion.eclass delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/clutter.eclass create mode 100644 sdk_container/src/third_party/portage-stable/eclass/dotnet.eclass delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/embassy.eclass delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/emul-linux-x86.eclass create mode 100644 sdk_container/src/third_party/portage-stable/eclass/kde5-meta-pkg.eclass rename sdk_container/src/third_party/portage-stable/eclass/{mozconfig-v4.31.eclass => mozconfig-v6.38.eclass} (61%) rename sdk_container/src/third_party/portage-stable/eclass/{mozconfig-v5.33.eclass => mozconfig-v6.39.eclass} (80%) create mode 100644 sdk_container/src/third_party/portage-stable/eclass/mozconfig-v6.40.eclass create mode 100644 sdk_container/src/third_party/portage-stable/eclass/mozconfig-v6.41.eclass create mode 100644 sdk_container/src/third_party/portage-stable/eclass/mozconfig-v6.42.eclass create mode 100644 sdk_container/src/third_party/portage-stable/eclass/mozconfig-v6.44.eclass create mode 100644 sdk_container/src/third_party/portage-stable/eclass/mysql-multilib-r1.eclass delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/mythtv-plugins.eclass delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/mythtv.eclass delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/php-common-r1.eclass delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/php-ext-base-r1.eclass delete mode 100644 sdk_container/src/third_party/portage-stable/eclass/php-ezc.eclass create mode 100644 sdk_container/src/third_party/portage-stable/eclass/readme.gentoo-r1.eclass create mode 100755 sdk_container/src/third_party/portage-stable/eclass/tests/multiprocessing_makeopts_loadavg.sh diff --git a/sdk_container/src/third_party/portage-stable/eclass/alternatives.eclass b/sdk_container/src/third_party/portage-stable/eclass/alternatives.eclass index a7d6a1b1db..62633dc63e 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/alternatives.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/alternatives.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/alternatives.eclass,v 1.18 2013/09/21 01:03:42 ottxor Exp $ +# $Id$ # @ECLASS: alternatives.eclass # @AUTHOR: diff --git a/sdk_container/src/third_party/portage-stable/eclass/ant-tasks.eclass b/sdk_container/src/third_party/portage-stable/eclass/ant-tasks.eclass index 2887ea83ff..91d3193a2f 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/ant-tasks.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/ant-tasks.eclass @@ -1,9 +1,6 @@ -# Eclass for building dev-java/ant-* packages -# # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# Author Vlastimil Babka -# $Header: /var/cvsroot/gentoo-x86/eclass/ant-tasks.eclass,v 1.17 2015/04/28 20:35:40 chewi Exp $ +# $Id$ # @ECLASS: ant-tasks.eclass # @MAINTAINER: @@ -63,12 +60,12 @@ ANT_TASK_PV="${PV}" if [[ ${PV} == *beta2* ]]; then MY_PV=${PV/_beta2/beta} UPSTREAM_PREFIX="http://people.apache.org/dist/ant/v1.7.1beta2/src" - GENTOO_PREFIX="http://dev.gentoo.org/~caster/distfiles" + GENTOO_PREFIX="https://dev.gentoo.org/~caster/distfiles" ANT_TASK_PV=$(get_version_component_range 1-3) elif [[ ${PV} == *_rc* ]]; then MY_PV=${PV/_rc/RC} - UPSTREAM_PREFIX="http://dev.gentoo.org/~caster/distfiles" - GENTOO_PREFIX="http://dev.gentoo.org/~caster/distfiles" + UPSTREAM_PREFIX="https://dev.gentoo.org/~caster/distfiles" + GENTOO_PREFIX="https://dev.gentoo.org/~caster/distfiles" ANT_TASK_PV=$(get_version_component_range 1-3) else # default for final releases @@ -76,13 +73,13 @@ else UPSTREAM_PREFIX="mirror://apache/ant/source" case ${PV} in 1.9.*) - GENTOO_PREFIX="http://dev.gentoo.org/~tomwij/files/dist" + GENTOO_PREFIX="https://dev.gentoo.org/~tomwij/files/dist" ;; 1.8.4) - GENTOO_PREFIX="http://dev.gentoo.org/~sera/distfiles" + GENTOO_PREFIX="https://dev.gentoo.org/~sera/distfiles" ;; *) - GENTOO_PREFIX="http://dev.gentoo.org/~caster/distfiles" + GENTOO_PREFIX="https://dev.gentoo.org/~caster/distfiles" ;; esac fi diff --git a/sdk_container/src/third_party/portage-stable/eclass/apache-2.eclass b/sdk_container/src/third_party/portage-stable/eclass/apache-2.eclass index 9d8a485436..e07693da2b 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/apache-2.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/apache-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.41 2015/06/07 19:22:36 pacho Exp $ +# $Id$ # @ECLASS: apache-2.eclass # @MAINTAINER: @@ -16,8 +16,8 @@ inherit autotools eutils flag-o-matic multilib ssl-cert user toolchain-funcs ver && die "Do not use this eclass with anything else than www-servers/apache ebuilds!" case ${EAPI:-0} in - 0|1|2|3) - die "This eclass requires >=EAPI-4" + 0|1|2|3|4) + die "This eclass requires >=EAPI-5" ;; esac @@ -71,7 +71,7 @@ esac [[ -n "$GENTOO_PATCH_A" ]] || GENTOO_PATCH_A="${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2" SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2 - http://dev.gentoo.org/~${GENTOO_DEVELOPER}/dist/apache/${GENTOO_PATCH_A}" + https://dev.gentoo.org/~${GENTOO_DEVELOPER}/dist/apache/${GENTOO_PATCH_A}" # @VARIABLE: IUSE_MPMS_FORK # @DESCRIPTION: @@ -89,7 +89,7 @@ SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2 # built-in modules IUSE_MPMS="${IUSE_MPMS_FORK} ${IUSE_MPMS_THREAD}" -IUSE="${IUSE} debug doc ldap selinux ssl static suexec threads" +IUSE="${IUSE} debug doc ldap libressl selinux ssl static suexec threads" for module in ${IUSE_MODULES} ; do IUSE="${IUSE} apache2_modules_${module}" @@ -106,7 +106,10 @@ DEPEND="dev-lang/perl apache2_modules_deflate? ( sys-libs/zlib ) apache2_modules_mime? ( app-misc/mime-types ) ldap? ( =net-nds/openldap-2* ) - ssl? ( >=dev-libs/openssl-0.9.8m ) + ssl? ( + !libressl? ( >=dev-libs/openssl-1.0.2:0= ) + libressl? ( dev-libs/libressl:= ) + ) !=www-servers/apache-1*" RDEPEND+=" ${DEPEND} selinux? ( sec-policy/selinux-apache )" @@ -365,7 +368,7 @@ check_upgrade() { eerror "(${EROOT}etc/apache2/apache2-builtin-mods) exists on your" eerror "system." eerror - eerror "Please read http://www.gentoo.org/doc/en/apache-upgrading.xml" + eerror "Please read https://wiki.gentoo.org/wiki/Project:Apache/Upgrading" eerror "for detailed information how to convert this file to the new" eerror "APACHE2_MODULES USE_EXPAND variable." eerror diff --git a/sdk_container/src/third_party/portage-stable/eclass/apache-module.eclass b/sdk_container/src/third_party/portage-stable/eclass/apache-module.eclass index b0e82e7651..16fbddd792 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/apache-module.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/apache-module.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.26 2013/06/22 00:06:53 vapier Exp $ +# $Id$ # @ECLASS: apache-module.eclass # @MAINTAINER: diff --git a/sdk_container/src/third_party/portage-stable/eclass/aspell-dict.eclass b/sdk_container/src/third_party/portage-stable/eclass/aspell-dict.eclass index da6afc8c8b..6207f6a15f 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/aspell-dict.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/aspell-dict.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/aspell-dict.eclass,v 1.44 2014/01/05 11:39:48 pacho Exp $ +# $Id$ # @ECLASS: aspell-dict.eclass # @MAINTAINER: diff --git a/sdk_container/src/third_party/portage-stable/eclass/autotools-multilib.eclass b/sdk_container/src/third_party/portage-stable/eclass/autotools-multilib.eclass index fadcdc90db..0141bc6a86 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/autotools-multilib.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/autotools-multilib.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-multilib.eclass,v 1.23 2014/05/02 16:16:37 mgorny Exp $ +# $Id$ # @ECLASS: autotools-multilib.eclass # @MAINTAINER: @@ -21,6 +21,7 @@ # EAPI=4 is required for meaningful MULTILIB_USEDEP. case ${EAPI:-0} in + 6) die "${ECLASS}.eclass is banned in EAPI ${EAPI}";; 4|5) ;; *) die "EAPI=${EAPI} is not supported" ;; esac diff --git a/sdk_container/src/third_party/portage-stable/eclass/autotools-utils.eclass b/sdk_container/src/third_party/portage-stable/eclass/autotools-utils.eclass index 89b7a9b55f..b850cf7af1 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/autotools-utils.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/autotools-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.75 2015/06/07 12:55:46 mgorny Exp $ +# $Id$ # @ECLASS: autotools-utils.eclass # @MAINTAINER: @@ -89,6 +89,7 @@ # Keep variable names synced with cmake-utils and the other way around! case ${EAPI:-0} in + 6) die "${ECLASS}.eclass is banned in EAPI ${EAPI}";; 2|3|4|5) ;; *) die "EAPI=${EAPI} is not supported" ;; esac diff --git a/sdk_container/src/third_party/portage-stable/eclass/base.eclass b/sdk_container/src/third_party/portage-stable/eclass/base.eclass index 9e963869d5..5ddbb39277 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/base.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/base.eclass @@ -1,6 +1,22 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.59 2014/07/11 08:21:58 ulm Exp $ +# $Id$ + +# DEPRECATED +# This eclass has been deprecated and must not be used by any new +# ebuilds or eclasses. Replacements for particular phase functions +# in EAPI 2+: +# +# base_src_unpack() - default (or unpacker_src_unpack if unpacker.eclass +# was inherited) +# base_src_prepare() - inherit eutils, inline: +# epatch "${PATCHES[@]}" # if PATCHES defined as array +# epatch ${PATCHES} # if PATCHES defined as string +# epatch_user +# base_src_configure() - default +# base_src_compile() - default +# base_src_install() - default +# base_src_install_docs() - einstalldocs from eutils.eclass # @ECLASS: base.eclass # @MAINTAINER: @@ -18,6 +34,7 @@ inherit eutils BASE_EXPF="src_unpack src_compile src_install" case "${EAPI:-0}" in + 6) die "${ECLASS}.eclass is banned in EAPI ${EAPI}";; 2|3|4|5) BASE_EXPF+=" src_prepare src_configure" ;; *) ;; esac diff --git a/sdk_container/src/third_party/portage-stable/eclass/bash-completion-r1.eclass b/sdk_container/src/third_party/portage-stable/eclass/bash-completion-r1.eclass index db16e27c19..e5809f8882 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/bash-completion-r1.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/bash-completion-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion-r1.eclass,v 1.14 2014/09/02 15:28:05 mgorny Exp $ +# $Id$ # @ECLASS: bash-completion-r1.eclass # @MAINTAINER: @@ -26,7 +26,7 @@ inherit toolchain-funcs case ${EAPI:-0} in - 0|1|2|3|4|5) ;; + 0|1|2|3|4|5|6) ;; *) die "EAPI ${EAPI} unsupported (yet)." esac @@ -41,12 +41,13 @@ _bash-completion-r1_get_bashdir() { debug-print-function ${FUNCNAME} "${@}" if $(tc-getPKG_CONFIG) --exists bash-completion &>/dev/null; then - local path="$($(tc-getPKG_CONFIG) --variable=$1 bash-completion)" + local path + path=$($(tc-getPKG_CONFIG) --variable="${1}" bash-completion) || die # we need to return unprefixed, so strip from what pkg-config returns # to us, bug #477692 echo "${path#${EPREFIX}}" else - echo $2 + echo "${2}" fi } @@ -129,6 +130,7 @@ bashcomp_alias() { shift for f; do - dosym "${base}" "$(_bash-completion-r1_get_bashcompdir)/${f}" + dosym "${base}" "$(_bash-completion-r1_get_bashcompdir)/${f}" \ + || return done } diff --git a/sdk_container/src/third_party/portage-stable/eclass/bash-completion.eclass b/sdk_container/src/third_party/portage-stable/eclass/bash-completion.eclass deleted file mode 100644 index b74f95ef6d..0000000000 --- a/sdk_container/src/third_party/portage-stable/eclass/bash-completion.eclass +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.29 2013/07/05 17:39:10 ulm Exp $ - -# DEPRECATED -# This eclass has been superseded by bash-completion-r1 eclass. -# Please modify your ebuilds to use that one instead. - -# @ECLASS: bash-completion.eclass -# @MAINTAINER: -# shell-tools@gentoo.org. -# @AUTHOR: -# Original author: Aaron Walker -# @BLURB: An Interface for installing contributed bash-completion scripts -# @DESCRIPTION: -# Simple eclass that provides an interface for installing -# contributed (ie not included in bash-completion proper) -# bash-completion scripts. -# -# Note: this eclass has been deprecated in favor of bash-completion-r1. Please -# use that one instead. - -# @ECLASS-VARIABLE: BASHCOMPLETION_NAME -# @DESCRIPTION: -# Install the completion script with this name (see also dobashcompletion) - -# @ECLASS-VARIABLE: BASHCOMPFILES -# @DESCRIPTION: -# Space delimited list of files to install if dobashcompletion is called without -# arguments. - -inherit eutils - -EXPORT_FUNCTIONS pkg_postinst - -IUSE="bash-completion" - -# Allow eclass to be inherited by eselect without a circular dependency -if [[ ${CATEGORY}/${PN} != app-admin/eselect ]]; then - RDEPEND="bash-completion? ( app-admin/eselect )" -fi -PDEPEND="bash-completion? ( app-shells/bash-completion )" - -# @FUNCTION: dobashcompletion -# @USAGE: [file] [new_file] -# @DESCRIPTION: -# The first argument is the location of the bash-completion script to install, -# and is required if BASHCOMPFILES is not set. The second argument is the name -# the script will be installed as. If BASHCOMPLETION_NAME is set, it overrides -# the second argument. If no second argument is given and BASHCOMPLETION_NAME -# is not set, it will default to ${PN}. -dobashcompletion() { - local f - - eqawarn "bash-completion.eclass has been deprecated." - eqawarn "Please update your ebuilds to use bash-completion-r1 instead." - - if [[ -z ${1} && -z ${BASHCOMPFILES} ]]; then - die "Usage: dobashcompletion [file] [new file]" - fi - - if use bash-completion; then - insinto /usr/share/bash-completion - if [[ -n ${1} ]]; then - [[ -z ${BASHCOMPLETION_NAME} ]] && BASHCOMPLETION_NAME="${2:-${PN}}" - newins "${1}" "${BASHCOMPLETION_NAME}" || die "Failed to install ${1}" - else - set -- ${BASHCOMPFILES} - for f in "$@"; do - if [[ -e ${f} ]]; then - doins "${f}" || die "Failed to install ${f}" - fi - done - fi - fi -} - -# @FUNCTION: bash-completion_pkg_postinst -# @DESCRIPTION: -# The bash-completion pkg_postinst function, which is exported -bash-completion_pkg_postinst() { - local f - - if use bash-completion ; then - elog "The following bash-completion scripts have been installed:" - if [[ -n ${BASHCOMPLETION_NAME} ]]; then - elog " ${BASHCOMPLETION_NAME}" - else - set -- ${BASHCOMPFILES} - for f in "$@"; do - elog " $(basename ${f})" - done - fi - elog - elog "To enable command-line completion on a per-user basis run:" - elog " eselect bashcomp enable