summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-05-12 11:53:28 +0000
committerMichael Palimaka <kensington@gentoo.org>2014-05-12 11:53:28 +0000
commit81c48f8b0ce84e80b800e7ea77c0af124ddaf718 (patch)
treed9cdae5885499d33562dcbbd22f9daf3b115e9e6 /eclass
parentre-add py3.2 to cover all current scenarios (diff)
downloadgentoo-2-81c48f8b0ce84e80b800e7ea77c0af124ddaf718.tar.gz
gentoo-2-81c48f8b0ce84e80b800e7ea77c0af124ddaf718.tar.bz2
gentoo-2-81c48f8b0ce84e80b800e7ea77c0af124ddaf718.zip
Remove last-rited eclasses.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/boost-utils.eclass97
-rw-r--r--eclass/office-ext.eclass179
3 files changed, 4 insertions, 277 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 6422aec586e9..ba060f26ab01 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1250 2014/05/11 07:58:35 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1251 2014/05/12 11:53:28 kensington Exp $
+
+ 12 May 2014; Michael Palimaka <kensington@gentoo.org> -boost-utils.eclass, -office-ext.eclass:
+ Remove last-rited eclasses.
11 May 2014; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
Fail when package installs "share" subdirectory to PyPy prefix. This should
diff --git a/eclass/boost-utils.eclass b/eclass/boost-utils.eclass
deleted file mode 100644
index 7dde0031b586..000000000000
--- a/eclass/boost-utils.eclass
+++ /dev/null
@@ -1,97 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/boost-utils.eclass,v 1.4 2014/03/18 10:35:39 mgorny Exp $
-
-if [[ ! ${_BOOST_ECLASS} ]]; then
-
-# @DEAD
-
-# @ECLASS: boost-utils.eclass
-# @MAINTAINER:
-# Michał Górny <mgorny@gentoo.org>
-# Tiziano Müller <dev-zero@gentoo.org>
-# Sebastian Luther <SebastianLuther@gmx.de>
-# Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
-# @BLURB: helper functions for packages using Boost C++ library
-# @DESCRIPTION:
-# Helper functions to be used when building packages using the Boost C++
-# library collection.
-#
-# Please note that this eclass does not set the dependencies for you.
-# You need to do that yourself.
-#
-# For cmake & autotools it is usually necessary to set BOOST_ROOT using
-# boost-utils_export_root. However, other build system may require more
-# hackery or even appending -I$(boost-utils_get_includedir) to CFLAGS
-# and -L$(boost-utils_get_libdir) to LDFLAGS.
-
-case ${EAPI:-0} in
- 0|1|2|3|4|5) ;;
- *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established."
-esac
-
-inherit multilib versionator
-
-# @ECLASS-VARIABLE: BOOST_MAX_SLOT
-# @DEFAULT_UNSET
-# @DESCRIPTION:
-# The maximal (newest) boost slot supported by the package. If unset,
-# there is no limit (the newest installed version will be used).
-
-# @FUNCTION: boost-utils_get_best_slot
-# @DESCRIPTION:
-# Get newest installed slot of Boost. If BOOST_MAX_SLOT is set, the version
-# returned will be at most in the specified slot.
-boost-utils_get_best_slot() {
- local pkg=dev-libs/boost
- [[ ${BOOST_MAX_SLOT} ]] && pkg="<=${pkg}-${BOOST_MAX_SLOT}.9999"
-
- local cpv=$(best_version ${pkg})
- get_version_component_range 1-2 ${cpv#dev-libs/boost-}
-}
-
-# @FUNCTION: boost-utils_get_includedir
-# @USAGE: [slot]
-# @DESCRIPTION:
-# Get the includedir for the given Boost slot. If no slot is given,
-# defaults to the newest installed Boost slot (but not newer than
-# BOOST_MAX_SLOT if that variable is set).
-#
-# Outputs the sole path (without -I).
-boost-utils_get_includedir() {
- local slot=${1:-$(boost-utils_get_best_slot)}
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
-
- echo -n "${EPREFIX}/usr/include/boost-${slot/./_}"
-}
-
-# @FUNCTION: boost-utils_get_libdir
-# @USAGE: [slot]
-# @DESCRIPTION:
-# Get the libdir for the given Boost slot. If no slot is given, defaults
-# to the newest installed Boost slot (but not newer than BOOST_MAX_SLOT
-# if that variable is set).
-#
-# Outputs the sole path (without -L).
-boost-utils_get_libdir() {
- local slot=${1:-$(boost-utils_get_best_slot)}
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
-
- echo -n "${EPREFIX}/usr/$(get_libdir)/boost-${slot/./_}"
-}
-
-# @FUNCTION: boost-utils_export_root
-# @USAGE: [slot]
-# @DESCRIPTION:
-# Set the BOOST_ROOT variable to includedir for the given Boost slot.
-# If no slot is given, defaults to the newest installed Boost slot(but
-# not newer than BOOST_MAX_SLOT if that variable is set).
-#
-# This variable satisfies both cmake and sys-devel/boost-m4 autoconf
-# macros.
-boost-utils_export_root() {
- export BOOST_ROOT=$(boost-utils_get_includedir "${@}")
-}
-
-_BOOST_ECLASS=1
-fi # _BOOST_ECLASS
diff --git a/eclass/office-ext.eclass b/eclass/office-ext.eclass
deleted file mode 100644
index b793c8373d8b..000000000000
--- a/eclass/office-ext.eclass
+++ /dev/null
@@ -1,179 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/office-ext.eclass,v 1.8 2013/05/17 11:27:25 scarabeus Exp $
-
-# @DEAD
-# @ECLASS: office-ext.eclass
-# @MAINTAINER:
-# The office team <openoffice@gentoo.org>
-# @AUTHOR:
-# Tomáš Chvátal <scarabeus@gentoo.org>
-# @BLURB: Eclass for installing libreoffice/openoffice extensions
-# @DESCRIPTION:
-# Eclass for easing maitenance of libreoffice/openoffice extensions.
-
-case "${EAPI:-0}" in
- 4|5) OEXT_EXPORTED_FUNCTIONS="src_unpack src_install pkg_postinst pkg_prerm" ;;
- *) die "EAPI=${EAPI} is not supported" ;;
-esac
-
-inherit eutils multilib
-
-UNOPKG_BINARY="${EPREFIX}/usr/bin/unopkg"
-
-# @ECLASS-VARIABLE: OO_EXTENSIONS
-# @REQUIRED
-# @DESCRIPTION:
-# Array containing list of extensions to install.
-[[ -z ${OO_EXTENSIONS} ]] && die "OO_EXTENSIONS variable is unset."
-if [[ "$(declare -p OO_EXTENSIONS 2>/dev/null 2>&1)" != "declare -a"* ]]; then
- die "OO_EXTENSIONS variable is not an array."
-fi
-
-DEPEND="virtual/ooo"
-RDEPEND="virtual/ooo"
-
-# Most projects actually do not provide any workdir and we do not unpack the
-# .oxt file at all.
-S="${WORKDIR}"
-
-# @FUNCTION: office-ext_src_unpack
-# @DESCRIPTION:
-# Flush the cache after removal of an extension.
-office-ext_src_unpack() {
- debug-print-function ${FUNCNAME} "$@"
- local i
-
- default
-
- for i in ${OO_EXTENSIONS[@]}; do
- # Copy only if the oxt is present, sometimes they are in tarballs
- # so we want to fail only when we do need to do the cp.
- if [[ -f "${DISTDIR}/${i}" ]] ; then
- debug-print "${FUNCNAME}: cp -v \"${DISTDIR}/${i}\" \"${S}\""
- cp -v "${DISTDIR}/${i}" "${S}" || die
- fi
- done
-}
-
-# @FUNCTION: office-ext_flush_unopkg_cache
-# @DESCRIPTION:
-# Flush the cache after removal of an extension.
-office-ext_flush_unopkg_cache() {
- debug-print-function ${FUNCNAME} "$@"
-
- debug-print "${FUNCNAME}: ${UNOPKG_BINARY} list --shared > /dev/null"
- ${UNOPKG_BINARY} list --shared > /dev/null
-}
-
-# @FUNCTION: office-ext_get_implementation
-# @DESCRIPTION:
-# Determine the implementation we are building against.
-office-ext_get_implementation() {
- debug-print-function ${FUNCNAME} "$@"
- local implementations=(
- "libreoffice"
- "openoffice"
- )
- local i
-
- for i in "${implementations[@]}"; do
- if [[ -d "${EPREFIX}/usr/$(get_libdir)/${i}" ]]; then
- debug-print "${FUNCNAME}: Determined implementation is: \"${EPREFIX}/usr/$(get_libdir)/${i}\""
- echo "${EPREFIX}/usr/$(get_libdir)/${i}"
- return
- fi
- done
-
- die "Unable to determine libreoffice/openoffice implementation!"
-}
-
-# @FUNCTION: office-ext_add_extension
-# @DESCRIPTION:
-# Install the extension into the libreoffice/openoffice.
-office-ext_add_extension() {
- debug-print-function ${FUNCNAME} "$@"
- local ext=$1
- local tmpdir=$(mktemp -d --tmpdir="${T}")
-
- debug-print "${FUNCNAME}: ${UNOPKG_BINARY} add --shared \"${ext}\""
- ebegin "Adding office extension: \"${ext}\""
- ${UNOPKG_BINARY} add --suppress-license \
- --shared "${ext}" \
- "-env:UserInstallation=file:///${tmpdir}" \
- "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
- eend $?
- rm -rf "${tmpdir}"
-}
-
-# @FUNCTION: office-ext_remove_extension
-# @DESCRIPTION:
-# Remove the extension from the libreoffice/openoffice.
-office-ext_remove_extension() {
- debug-print-function ${FUNCNAME} "$@"
- local ext=$1
- local tmpdir=$(mktemp -d --tmpdir="${T}")
-
- debug-print "${FUNCNAME}: ${UNOPKG_BINARY} remove --shared \"${ext}\""
- ebegin "Removing office extension: \"${ext}\""
- ${UNOPKG_BINARY} remove --suppress-license \
- --shared "${ext}" \
- "-env:UserInstallation=file:///${tmpdir}" \
- "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
- eend $?
- office-ext_flush_unopkg_cache
- rm -rf "${tmpdir}"
-}
-
-# @FUNCTION: office-ext_src_install
-# @DESCRIPTION:
-# Install the extension source to the proper location.
-office-ext_src_install() {
- debug-print-function ${FUNCNAME} "$@"
- debug-print "Extensions: ${OO_EXTENSIONS[@]}"
- local i
-
- # subshell to not pollute rest of the env with the insinto redefinition
- (
- dodir $(office-ext_get_implementation)/share/extension/install/
- insinto $(office-ext_get_implementation)/share/extension/install/
- for i in ${OO_EXTENSIONS[@]}; do
- doins "${i}"
- done
- )
-
- einfo "Remember that if you replace your office implementation,"
- einfo "you need to recompile all the extensions."
- einfo "Your current implementation location is: "
- einfo " $(office-ext_get_implementation)"
-}
-
-# @FUNCTION: office-ext_pkg_postinst
-# @DESCRIPTION:
-# Add the extensions to the libreoffice/openoffice.
-office-ext_pkg_postinst() {
- debug-print-function ${FUNCNAME} "$@"
- debug-print "Extensions: ${OO_EXTENSIONS[@]}"
- local i
-
- for i in ${OO_EXTENSIONS[@]}; do
- office-ext_add_extension "$(office-ext_get_implementation)/share/extension/install/${i}"
- done
-
-}
-
-# @FUNCTION: office-ext_pkg_prerm
-# @DESCRIPTION:
-# Remove the extensions from the libreoffice/openoffice.
-office-ext_pkg_prerm() {
- debug-print-function ${FUNCNAME} "$@"
- debug-print "Extensions: ${OO_EXTENSIONS[@]}"
- local i
-
- for i in ${OO_EXTENSIONS[@]}; do
- office-ext_remove_extension "${i}"
- done
-}
-
-EXPORT_FUNCTIONS ${OEXT_EXPORTED_FUNCTIONS}
-unset OEXT_EXPORTED_FUNCTIONS