From 919456b0027522a51188286a433384f615c3dcf1 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sat, 8 Oct 2016 13:29:06 +0200 Subject: Remove some masked for removal eclasses --- eclass/horde.eclass | 189 ------------------- eclass/java-mvn-src.eclass | 55 ------ eclass/phpconfutils.eclass | 462 --------------------------------------------- 3 files changed, 706 deletions(-) delete mode 100644 eclass/horde.eclass delete mode 100644 eclass/java-mvn-src.eclass delete mode 100644 eclass/phpconfutils.eclass (limited to 'eclass') diff --git a/eclass/horde.eclass b/eclass/horde.eclass deleted file mode 100644 index 3db1a3ad55c3..000000000000 --- a/eclass/horde.eclass +++ /dev/null @@ -1,189 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ -# -# @DEAD -# This eclass is deprecated and no longer used. It will be removed -# in 30 days, #587818 - - -# Help manage the horde project http://www.horde.org/ -# -# Author: Mike Frysinger -# CVS additions by Chris Aniszczyk -# SNAP additions by Jonathan Polansky -# -# This eclass provides generic functions to make the writing of horde -# ebuilds fairly trivial since there are many horde applications and -# they all share the same basic install process. - -# EHORDE_SNAP -# This variable tracks whether the user is using a snapshot version -# -# EHORDE_SNAP_BRANCH -# You set this via the ebuild to whatever branch you wish to grab a -# snapshot of. Typically this is 'HEAD' or 'RELENG'. -# -# EHORDE_CVS -# This variable tracks whether the user is using a cvs version - -inherit webapp eutils -[[ ${PN} != ${PN/-cvs} ]] && inherit cvs - -IUSE="vhosts" - -EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst - -[[ -z ${HORDE_PN} ]] && HORDE_PN="${PN/horde-}" -[[ -z ${HORDE_MAJ} ]] && HORDE_MAJ="" - -EHORDE_CVS="false" -EHORDE_SNAP="false" -if [[ ${PN} != ${PN/-cvs} ]] ; then - EHORDE_CVS="true" - HORDE_PN=${HORDE_PN/-cvs} - - ECVS_SERVER="anoncvs.horde.org:/repository" - ECVS_MODULE="${HORDE_PN}" - ECVS_TOP_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/cvs-src/${PN}" - ECVS_USER="cvsread" - ECVS_PASS="horde" - - SRC_URI="" - S=${WORKDIR}/${HORDE_PN} - -elif [[ ${PN} != ${PN/-snap} ]] ; then - EHORDE_SNAP="true" - EHORDE_SNAP_BRANCH=${EHORDE_SNAP_BRANCH:-HEAD} - SNAP_PV=${PV:0:4}-${PV:4:2}-${PV:6:2} - - HORDE_PN=${HORDE_PN/-snap} - - SRC_URI="http://ftp.horde.org/pub/snaps/${SNAP_PV}/${HORDE_PN}-${EHORDE_SNAP_BRANCH}-${SNAP_PV}.tar.gz" - S=${WORKDIR}/${HORDE_PN} - -else - SRC_URI="http://ftp.horde.org/pub/${HORDE_PN}/${HORDE_PN}${HORDE_MAJ}-${PV/_/-}.tar.gz" - S=${WORKDIR}/${HORDE_PN}${HORDE_MAJ}-${PV/_/-} -fi -HOMEPAGE="http://www.horde.org/${HORDE_PN}" - -LICENSE="LGPL-2" - -# INSTALL_DIR is used by webapp.eclass when USE=-vhosts -INSTALL_DIR="/horde" -[[ ${HORDE_PN} != "horde" && ${HORDE_PN} != "horde-groupware" && ${HORDE_PN} != "horde-webmail" ]] && INSTALL_DIR="${INSTALL_DIR}/${HORDE_PN}" - -HORDE_APPLICATIONS="${HORDE_APPLICATIONS} ." - -horde_pkg_setup() { - webapp_pkg_setup - - if [[ ! -z ${HORDE_PHP_FEATURES} ]] ; then - local param - if [[ ${HORDE_PHP_FEATURES:0:2} = "-o" ]] ; then - param="-o" - HORDE_PHP_FEATURES=${HORDE_PHP_FEATURES:2} - fi - if ! built_with_use ${param} dev-lang/php ${HORDE_PHP_FEATURES} ; then - echo - if [[ ${param} == "-o" ]] ; then - eerror "You MUST re-emerge php with at least one of" - else - eerror "You MUST re-emerge php with all of" - fi - eerror "the following options in your USE:" - eerror " ${HORDE_PHP_FEATURES}" - die "current php install cannot support ${HORDE_PN}" - fi - fi -} - -horde_src_unpack() { - if [[ ${EHORDE_CVS} = "true" ]] ; then - cvs_src_unpack - else - unpack ${A} - fi - cd "${S}" - - [[ -n ${EHORDE_PATCHES} ]] && epatch ${EHORDE_PATCHES} - - for APP in ${HORDE_APPLICATIONS} - do - [[ -f ${APP}/test.php ]] && chmod 000 ${APP}/test.php - done -} - -horde_src_install() { - webapp_src_preinst - - local destdir=${MY_HTDOCSDIR} - - # Work-around when dealing with CVS sources - [[ ${EHORDE_CVS} = "true" ]] && cd ${HORDE_PN} - - # Install docs and then delete them (except for CREDITS which - # many horde apps include in their help page #121003) - dodoc README docs/* - mv docs/CREDITS "${T}"/ - rm -rf COPYING LICENSE README docs/* - mv "${T}"/CREDITS docs/ - - dodir ${destdir} - cp -r . "${D}"/${destdir}/ || die "install files" - - for APP in ${HORDE_APPLICATIONS} - do - for DISTFILE in ${APP}/config/*.dist - do - if [[ -f ${DISTFILE/.dist/} ]] ; then - webapp_configfile "${MY_HTDOCSDIR}"/${DISTFILE/.dist/} - fi - done - if [[ -f ${APP}/config/conf.php ]] ; then - webapp_serverowned "${MY_HTDOCSDIR}"/${APP}/config/conf.php - webapp_configfile "${MY_HTDOCSDIR}"/${APP}/config/conf.php - fi - done - - [[ -n ${HORDE_RECONFIG} ]] && webapp_hook_script ${HORDE_RECONFIG} - [[ -n ${HORDE_POSTINST} ]] && webapp_postinst_txt en ${HORDE_POSTINST} - - webapp_src_install -} - -horde_pkg_postinst() { - if [ -e ${ROOT}/usr/share/doc/${PF}/INSTALL* ] ; then - elog "Please read the INSTALL file in /usr/share/doc/${PF}." - fi - - einfo "Before this package will work, you have to setup the configuration files." - einfo "Please review the config/ subdirectory of ${HORDE_PN} in the webroot." - - if [ -e ${ROOT}/usr/share/doc/${PF}/SECURITY* ] ; then - ewarn - ewarn "Users are HIGHLY recommended to consult the SECURITY guide in" - ewarn "/usr/share/doc/${PF} before going into production with Horde." - fi - - if [[ ${HORDE_PN} != "horde" && ${HORDE_PN} != "horde-groupware" && ${HORDE_PN} != "horde-webmail" ]] ; then - ewarn - ewarn "Make sure ${HORDE_PN} is accounted for in Horde's root" - ewarn " config/registry.php" - fi - - if [[ ${EHORDE_CVS} = "true" ]] ; then - ewarn - ewarn "Use these CVS versions at your own risk." - ewarn "They tend to break things when working with the non CVS versions of horde." - fi - - if use vhosts ; then - ewarn - ewarn "When installing Horde into a vhost dir, you will need to use the" - ewarn "-d option so that it is installed into the proper location." - fi - - webapp_pkg_postinst -} diff --git a/eclass/java-mvn-src.eclass b/eclass/java-mvn-src.eclass deleted file mode 100644 index 497732b3fdad..000000000000 --- a/eclass/java-mvn-src.eclass +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2004-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# @DEAD -# This eclass is deprecated and no longer used. It will be removed -# in 30 days, #587824. - - -# @ECLASS: java-mvn-src.eclass -# @MAINTAINER: -# java@gentoo.org -# @AUTHOR: -# Java maintainers (java@gentoo.org) -# @BLURB: Eclass for Java packages from bare sources exported by Maven -# @DESCRIPTION: -# This class is intended to build pure Java packages from the sources exported -# from the source:jar goal of Maven 2. These archives contain bare Java source -# files, with no build instructions or additional resource files. They are -# unsuitable for packages that require resources besides compiled class files. -# The benefit is that for artifacts developed with Maven, these source files -# are often released together with binary packages, whereas the full build -# environment might be contained in some revision control system or not -# available at all. - -inherit java-pkg-simple - -# @ECLASS-VARIABLE: GROUP_ID -# @DESCRIPTION: -# The groupId of the artifact, in dotted notation. Default value is ${PN}. -: ${GROUP_ID:=${PN}} - -# @ECLASS-VARIABLE: ARTIFACT_ID -# @DESCRIPTION: -# The artifactId of the artifact. Default value is ${PN}. -: ${ARTIFACT_ID:=${PN}} - -# @ECLASS-VARIABLE: MAVEN2_REPOSITORIES -# @DESCRIPTION: -# The repositories to search for the artifacts. Must follow Maven2 layout. -# Default value is the following string: -# "http://repo2.maven.org/maven2 http://download.java.net/maven/2" -: ${MAVEN2_REPOSITORIES:="http://repo2.maven.org/maven2 http://download.java.net/maven/2"} - -# @ECLASS-VARIABLE: RELATIVE_SRC_URI -# @DESCRIPTION: -# The path of the source artifact relative to the root of the repository. -# Will be set by the eclass to follow Maven 2 repository layout. -RELATIVE_SRC_URI=${GROUP_ID//./\/}/${ARTIFACT_ID}/${PV}/${ARTIFACT_ID}-${PV}-sources.jar - -# Look for source jar in all listed repositories -for repo in ${MAVEN2_REPOSITORIES}; do - SRC_URI="${SRC_URI} ${repo}/${RELATIVE_SRC_URI}" -done -unset repo diff --git a/eclass/phpconfutils.eclass b/eclass/phpconfutils.eclass deleted file mode 100644 index 31f3cbfdd9e9..000000000000 --- a/eclass/phpconfutils.eclass +++ /dev/null @@ -1,462 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# @DEAD -# This eclass is deprecated and no longer used. It will be removed -# in 30 days, #587826. - -# @ECLASS: phpconfutils.eclass -# @MAINTAINER: -# Gentoo PHP team -# @AUTHOR: -# Based on Stuart's work on the original confutils eclass -# Luca Longinotti -# @BLURB: Provides utility functions to help with configuring PHP. -# @DESCRIPTION: -# This eclass provides utility functions to help with configuring PHP. -# It is only used by other php eclasses currently and the functions -# are not generally intended for direct use in ebuilds. - - -# ======================================================================== -# List of USE flags that need deps that aren't yet in Portage -# or that can't be (fex. certain commercial apps) -# -# You must define PHPCONFUTILS_MISSING_DEPS if you need this - -# ======================================================================== -# phpconfutils_sort_flags() -# -# Sort and remove duplicates of the auto-enabled USE flags -# - -phpconfutils_sort_flags() { - # Sort the list of auto-magically enabled USE flags - PHPCONFUTILS_AUTO_USE="$(echo ${PHPCONFUTILS_AUTO_USE} | tr '\040\010' '\012\012' | sort -u)" -} - -# ======================================================================== -# phpconfutils_init() -# -# Call this function from your src_compile() function to initialise -# this eclass first -# - -phpconfutils_init() { - # Define wheter we shall support shared extensions or not - if use "sharedext" ; then - shared="=shared" - else - shared="" - fi - - phpconfutils_sort_flags -} - -# ======================================================================== -# phpconfutils_usecheck() -# -# Check if the USE flag we want enabled is part of the auto-magical ones -# - -phpconfutils_usecheck() { - local x - local use="$1" - - for x in ${PHPCONFUTILS_AUTO_USE} ; do - if [[ "${use}+" == "${x}+" ]] ; then - return 0 - fi - done - - # If we get here, the USE is not among the auto-enabled ones - return 1 -} - -# ======================================================================== -# phpconfutils_require_any() -# -# Use this function to ensure one or more of the specified USE flags have -# been enabled and output the results -# -# $1 - message to output everytime a flag is found -# $2 - message to output everytime a flag is not found -# $3 .. - flags to check -# - -phpconfutils_require_any() { - local success_msg="$1" - shift - local fail_msg="$1" - shift - - local required_flags="$@" - local default_flag="$1" - local success="0" - - while [[ -n "$1" ]] ; do - if use "$1" ; then - einfo "${success_msg} $1" - success="1" - else - einfo "${fail_msg} $1" - fi - shift - done - - # Did we find what we are looking for? - if [[ "${success}" == "1" ]] ; then - return - fi - - # If we get here, then none of the required USE flags were enabled - eerror - eerror "You should enable one or more of the following USE flags:" - eerror " ${required_flags}" - eerror - eerror "You can do this by enabling these flags in /etc/portage/package.use:" - eerror " =${CATEGORY}/${PN}-${PVR} ${required_flags}" - eerror - eerror "The ${default_flag} USE flag was automatically enabled now." - eerror - PHPCONFUTILS_AUTO_USE="${PHPCONFUTILS_AUTO_USE} ${default_flag}" -} - -# ======================================================================== -# phpconfutils_use_conflict() -# -# Use this function to automatically complain to the user if USE flags -# that directly conflict have been enabled -# -# $1 - flag that conflicts with other flags -# $2 .. - flags that conflict -# - -phpconfutils_use_conflict() { - phpconfutils_sort_flags - - if ! use "$1" && ! phpconfutils_usecheck "$1" ; then - return - fi - - local my_flag="$1" - shift - - local my_present="" - local my_remove="" - - while [[ "$1+" != "+" ]] ; do - if use "$1" || phpconfutils_usecheck "$1" ; then - my_present="${my_present} $1" - my_remove="${my_remove} -$1" - fi - shift - done - - if [[ -n "${my_present}" ]] ; then - eerror - eerror "USE flag '${my_flag}' conflicts with these USE flag(s):" - eerror " ${my_present}" - eerror - eerror "You must disable these conflicting flags before you can emerge this package." - eerror "You can do this by disabling these flags in /etc/portage/package.use:" - eerror " =${CATEGORY}/${PN}-${PVR} ${my_remove}" - eerror - die "Conflicting USE flags found" - fi -} - -# ======================================================================== -# phpconfutils_use_depend_all() -# -# Use this function to specify USE flags that depend on eachother, -# they will be automatically enabled and used for checks later -# -# $1 - flag that depends on other flags -# $2 .. - the flags that must be set for $1 to be valid -# - -phpconfutils_use_depend_all() { - phpconfutils_sort_flags - - if ! use "$1" && ! phpconfutils_usecheck "$1" ; then - return - fi - - local my_flag="$1" - shift - - local my_missing="" - - while [[ "$1+" != "+" ]] ; do - if ! use "$1" && ! phpconfutils_usecheck "$1" ; then - my_missing="${my_missing} $1" - fi - shift - done - - if [[ -n "${my_missing}" ]] ; then - PHPCONFUTILS_AUTO_USE="${PHPCONFUTILS_AUTO_USE} ${my_missing}" - ewarn - ewarn "USE flag '${my_flag}' needs these additional flag(s) set:" - ewarn " ${my_missing}" - ewarn - ewarn "'${my_missing}' was automatically enabled and the required extensions will be" - ewarn "built. In any case it is recommended to enable those flags for" - ewarn "future reference, by adding the following to /etc/portage/package.use:" - ewarn " =${CATEGORY}/${PN}-${PVR} ${my_missing}" - ewarn - fi -} - -# ======================================================================== -# phpconfutils_use_depend_any() -# -# Use this function to automatically complain to the user if a USE flag -# depends on another USE flag that hasn't been enabled -# -# $1 - flag that depends on other flags -# $2 - flag that is used as default if none is enabled -# $3 .. - flags that must be set for $1 to be valid -# - -phpconfutils_use_depend_any() { - phpconfutils_sort_flags - - if ! use "$1" && ! phpconfutils_usecheck "$1" ; then - return - fi - - local my_flag="$1" - shift - - local my_default_flag="$1" - shift - - local my_found="" - local my_missing="" - - while [[ "$1+" != "+" ]] ; do - if use "$1" || phpconfutils_usecheck "$1" ; then - my_found="${my_found} $1" - else - my_missing="${my_missing} $1" - fi - shift - done - - if [[ -z "${my_found}" ]] ; then - PHPCONFUTILS_AUTO_USE="${PHPCONFUTILS_AUTO_USE} ${my_default_flag}" - ewarn - ewarn "USE flag '${my_flag}' needs one of these additional flag(s) set:" - ewarn " ${my_missing}" - ewarn - ewarn "'${my_default_flag}' was automatically selected and enabled." - ewarn "You can change that by enabling/disabling those flags accordingly" - ewarn "in /etc/portage/package.use." - ewarn - fi -} - -# ======================================================================== -# phpconfutils_extension_disable() -# -# Use this function to disable an extension that is enabled by default. -# This is provided for those rare configure scripts that don't support -# a --enable for the corresponding --disable -# -# $1 - extension name -# $2 - USE flag -# $3 - optional message to einfo() to the user -# - -phpconfutils_extension_disable() { - if ! use "$2" && ! phpconfutils_usecheck "$2" ; then - my_conf="${my_conf} --disable-$1" - [[ -n "$3" ]] && einfo " Disabling $1" - else - [[ -n "$3" ]] && einfo " Enabling $1" - fi -} - -# ======================================================================== -# phpconfutils_extension_enable() -# -# This function is like use_enable(), except that it knows about -# enabling modules as shared libraries, and it supports passing -# additional data with the switch -# -# $1 - extension name -# $2 - USE flag -# $3 - 1 = support shared, 0 = never support shared -# $4 - additional setting for configure -# $5 - additional message to einfo out to the user -# - -phpconfutils_extension_enable() { - local my_shared - - if [[ "$3" == "1" ]] ; then - if [[ "${shared}+" != "+" ]] ; then - my_shared="${shared}" - if [[ "$4+" != "+" ]] ; then - my_shared="${my_shared},$4" - fi - elif [[ "$4+" != "+" ]] ; then - my_shared="=$4" - fi - else - if [[ "$4+" != "+" ]] ; then - my_shared="=$4" - fi - fi - - if use "$2" || phpconfutils_usecheck "$2" ; then - my_conf="${my_conf} --enable-$1${my_shared}" - einfo " Enabling $1" - else - my_conf="${my_conf} --disable-$1" - einfo " Disabling $1" - fi -} - -# ======================================================================== -# phpconfutils_extension_without() -# -# Use this function to disable an extension that is enabled by default -# This function is provided for those rare configure scripts that support -# --without but not the corresponding --with -# -# $1 - extension name -# $2 - USE flag -# $3 - optional message to einfo() to the user -# - -phpconfutils_extension_without() { - if ! use "$2" && ! phpconfutils_usecheck "$2" ; then - my_conf="${my_conf} --without-$1" - einfo " Disabling $1" - else - einfo " Enabling $1" - fi -} - -# ======================================================================== -# phpconfutils_extension_with() -# -# This function is a replacement for use_with. It supports building -# extensions as shared libraries, -# -# $1 - extension name -# $2 - USE flag -# $3 - 1 = support shared, 0 = never support shared -# $4 - additional setting for configure -# $5 - optional message to einfo() out to the user -# - -phpconfutils_extension_with() { - local my_shared - - if [[ "$3" == "1" ]] ; then - if [[ "${shared}+" != "+" ]] ; then - my_shared="${shared}" - if [[ "$4+" != "+" ]] ; then - my_shared="${my_shared},$4" - fi - elif [[ "$4+" != "+" ]] ; then - my_shared="=$4" - fi - else - if [[ "$4+" != "+" ]] ; then - my_shared="=$4" - fi - fi - - if use "$2" || phpconfutils_usecheck "$2" ; then - my_conf="${my_conf} --with-$1${my_shared}" - einfo " Enabling $1" - else - my_conf="${my_conf} --without-$1" - einfo " Disabling $1" - fi -} - -# ======================================================================== -# phpconfutils_warn_about_external_deps() -# -# This will output a warning to the user if he enables commercial or other -# software not currently present in Portage -# - -phpconfutils_warn_about_external_deps() { - phpconfutils_sort_flags - - local x - local my_found="0" - - for x in ${PHPCONFUTILS_MISSING_DEPS} ; do - if use "${x}" || phpconfutils_usecheck "${x}" ; then - ewarn "USE flag ${x} enables support for software not present in Portage!" - my_found="1" - fi - done - - if [[ "${my_found}" == "1" ]] ; then - ewarn - ewarn "This ebuild will continue, but if you haven't already installed the" - ewarn "software required to satisfy the list above, this package will probably" - ewarn "fail to compile later on." - ewarn "*DO NOT* file bugs about compile failures or issues you're having" - ewarn "when using one of those flags, as we aren't able to support them." - ewarn "|=|=|=|=|=|=| You are on your own if you use them! |=|=|=|=|=|=|" - ewarn - ebeep 5 - fi -} - -# ======================================================================== -# phpconfutils_built_with_use() -# -# Sobstitute for built_with_use() to support the magically enabled USE flags -# - -phpconfutils_built_with_use() { - local opt="$1" - [[ ${opt:0:1} = "-" ]] && shift || opt="-a" - - local PHP_PKG=$(best_version $1) - shift - - local PHP_USEFILE="${ROOT}/var/lib/php-pkg/${PHP_PKG}/PHP_USEFILE" - - [[ ! -e "${PHP_USEFILE}" ]] && return 0 - - local PHP_USE_BUILT=$(<${PHP_USEFILE}) - while [[ $# -gt 0 ]] ; do - if [[ ${opt} = "-o" ]] ; then - has $1 ${PHP_USE_BUILT} && return 0 - else - has $1 ${PHP_USE_BUILT} || return 1 - fi - shift - done - [[ ${opt} = "-a" ]] -} - -# ======================================================================== -# phpconfutils_generate_usefile() -# -# Generate the file used by phpconfutils_built_with_use() to check it's -# USE flags -# - -phpconfutils_generate_usefile() { - phpconfutils_sort_flags - - local PHP_USEFILE="${D}/var/lib/php-pkg/${CATEGORY}/${PN}-${PVR}/PHP_USEFILE" - - # Write the auto-enabled USEs into the correct file - dodir "/var/lib/php-pkg/${CATEGORY}/${PN}-${PVR}/" - echo "${PHPCONFUTILS_AUTO_USE}" > "${PHP_USEFILE}" -} -- cgit v1.2.3-65-gdbad