diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-03-16 11:01:40 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-03-24 20:39:44 +0100 |
commit | 7afe99bc9ad24520e698e51b0bbf0394f0ad63d8 (patch) | |
tree | 47ecd0464b64c384d5b9f7f668ff0250c2769f14 /sys-libs/glibc/glibc-2.21-r2.ebuild | |
parent | sys-devel/autoconf: [QA] Convert from eblits into an eclass, #586424 (diff) | |
download | gentoo-7afe99bc9ad24520e698e51b0bbf0394f0ad63d8.tar.gz gentoo-7afe99bc9ad24520e698e51b0bbf0394f0ad63d8.tar.bz2 gentoo-7afe99bc9ad24520e698e51b0bbf0394f0ad63d8.zip |
sys-libs/glibc: [QA] Convert from eblits to eclass, #586422
Diffstat (limited to 'sys-libs/glibc/glibc-2.21-r2.ebuild')
-rw-r--r-- | sys-libs/glibc/glibc-2.21-r2.ebuild | 59 |
1 files changed, 6 insertions, 53 deletions
diff --git a/sys-libs/glibc/glibc-2.21-r2.ebuild b/sys-libs/glibc/glibc-2.21-r2.ebuild index 0d17c8687217..ec75650f0676 100644 --- a/sys-libs/glibc/glibc-2.21-r2.ebuild +++ b/sys-libs/glibc/glibc-2.21-r2.ebuild @@ -3,7 +3,7 @@ EAPI="4" -inherit eutils versionator toolchain-funcs flag-o-matic gnuconfig multilib systemd unpacker multiprocessing prefix +inherit toolchain-glibc DESCRIPTION="GNU libc6 (also called glibc2) C library" HOMEPAGE="https://www.gnu.org/software/libc/libc.html" @@ -101,62 +101,15 @@ SRC_URI=$( ) SRC_URI+=" ${GCC_BOOTSTRAP_VER:+multilib? ( $(gentoo_uris gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2) )}" -# eblit-include [--skip] <function> [version] -eblit-include() { - local skipable=false - [[ $1 == "--skip" ]] && skipable=true && shift - [[ $1 == pkg_* ]] && skipable=true - - local e v func=$1 ver=$2 - [[ -z ${func} ]] && die "Usage: eblit-include <function> [version]" - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do - e="${FILESDIR}/eblits/${func}${v}.eblit" - if [[ -e ${e} ]] ; then - source "${e}" - return 0 - fi - done - ${skipable} && return 0 - die "Could not locate requested eblit '${func}' in ${FILESDIR}/eblits/" -} - -# eblit-run-maybe <function> -# run the specified function if it is defined -eblit-run-maybe() { - [[ $(type -t "$@") == "function" ]] && "$@" -} +src_unpack() { + [[ -n ${GCC_BOOTSTRAP_VER} ]] && use multilib && unpack gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2 -# eblit-run <function> [version] -# aka: src_unpack() { eblit-run src_unpack ; } -eblit-run() { - eblit-include --skip common "${*:2}" - eblit-include "$@" - eblit-run-maybe eblit-$1-pre - eblit-${PN}-$1 - eblit-run-maybe eblit-$1-post + toolchain-glibc_src_unpack } -src_unpack() { eblit-run src_unpack ; } -src_prepare() { eblit-run src_prepare ; } -src_configure() { eblit-run src_configure ; } -src_compile() { eblit-run src_compile ; } -src_test() { eblit-run src_test ; } -src_install() { eblit-run src_install ; } - -# FILESDIR might not be available during binpkg install -for x in pretend setup {pre,post}inst ; do - e="${FILESDIR}/eblits/pkg_${x}.eblit" - if [[ -e ${e} ]] ; then - . "${e}" - eval "pkg_${x}() { eblit-run pkg_${x} ; }" - fi -done - -eblit-src_unpack-pre() { - [[ -n ${GCC_BOOTSTRAP_VER} ]] && use multilib && unpack gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2 -} +src_prepare() { + toolchain-glibc_src_prepare -eblit-src_prepare-post() { cd "${S}" epatch "${FILESDIR}"/2.19/${PN}-2.19-ia64-gcc-4.8-reloc-hack.patch #503838 |