commit: ee89960c8665621a824df0b1ca142d67d662d2e3 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Wed Jan 3 18:37:21 2018 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Wed Jan 3 18:37:21 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee89960c
sys-libs/suacomp: Port to git-r3 Package-Manager: Portage-2.3.19, Repoman-2.3.6 sys-libs/suacomp/suacomp-9999.ebuild | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/sys-libs/suacomp/suacomp-9999.ebuild b/sys-libs/suacomp/suacomp-9999.ebuild index c40821304da..b356312ab40 100644 --- a/sys-libs/suacomp/suacomp-9999.ebuild +++ b/sys-libs/suacomp/suacomp-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=4 +EAPI=6 -inherit toolchain-funcs flag-o-matic git-2 +inherit flag-o-matic toolchain-funcs git-r3 DESCRIPTION="library wrapping the interix lib-c to make it less buggy" HOMEPAGE="http://suacomp.sf.net" @@ -11,7 +11,6 @@ EGIT_REPO_URI="https://git.code.sf.net/p/suacomp/git" LICENSE="BEER-WARE" SLOT="0" -KEYWORDS="" IUSE="debug" DEPEND="" @@ -21,9 +20,11 @@ get_opts() { local shlibc= local stlibc= + local dir for dir in /usr/lib /usr/lib/x86; do [[ -f ${dir}/libc.a ]] && stlibc=${dir}/libc.a + local name for name in libc.so.5.2 libc.so.3.5; do [[ -f ${dir}/${name} ]] && { shlibc=${dir}/${name}; break; } done @@ -34,7 +35,7 @@ get_opts() { echo "SHARED_LIBC=${shlibc} STATIC_LIBC=${stlibc}" } -pkg_setup() { +src_configure() { if use debug; then append-flags -D_DEBUG -D_DEBUG_TRACE fi @@ -44,11 +45,6 @@ src_compile() { emake all CC=$(tc-getCC) $(get_opts) CFLAGS="${CFLAGS}" } -src_install() { - emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}" $(get_opts) \ - CFLAGS="${CFLAGS}" -} - src_test() { local v= @@ -57,3 +53,8 @@ src_test() { emake check $(get_opts) ${v} } + +src_install() { + emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}" $(get_opts) \ + CFLAGS="${CFLAGS}" +}
