sys-libs/suacomp: Port to git-r3
authorDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 18:37:21 +0000 (19:37 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 18:37:21 +0000 (19:37 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-libs/suacomp/suacomp-9999.ebuild

index c40821304da1577d80d33e488f9c849e0be9d5c0..b356312ab407466eb68255ff76a1c6e34fcd8870 100644 (file)
@@ -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}"
+}