dev-lang/tcc: update 9999 ebuild to EAPI 6
authorAustin English <wizardedit@gentoo.org>
Mon, 18 Dec 2017 20:38:19 +0000 (14:38 -0600)
committerAustin English <wizardedit@gentoo.org>
Mon, 18 Dec 2017 21:06:08 +0000 (15:06 -0600)
Package-Manager: Portage-2.3.13, Repoman-2.3.3

dev-lang/tcc/tcc-9999.ebuild

index 728ed94dbec700723dc84259793c2acd10091b28..d55542ed7b7e4e2289529596cb77bed87350d808 100644 (file)
@@ -1,17 +1,25 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
-
-inherit eutils toolchain-funcs git-r3
+EAPI="6"
 
 DESCRIPTION="A very small C compiler for ix86/amd64"
 HOMEPAGE="http://bellard.org/tcc/"
-EGIT_REPO_URI="http://repo.or.cz/r/tinycc.git"
+
+if [[ $PV == *9999* ]]; then
+       EGIT_REPO_URI="http://repo.or.cz/r/tinycc.git"
+       KEYWORDS=""
+       SRC_URI=""
+       scm_eclass=git-r3
+else
+       KEYWORDS="~amd64 ~x86 ~amd64-linux"
+       SRC_URI="http://download.savannah.gnu.org/releases/tinycc/${P}.tar.bz2"
+fi
+
+inherit toolchain-funcs ${scm_eclass}
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS=""
 
 DEPEND="dev-lang/perl" # doc generation
 # Both tendra and tinycc install /usr/bin/tcc
@@ -32,6 +40,8 @@ src_prepare() {
        # fix texi2html invocation
        sed -i -e 's/-number//' Makefile || die
        sed -i -e 's/--sections//' Makefile || die
+
+       eapply_user
 }
 
 src_configure() {