mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-lang/pcc: Port to EAPI 7
Closes: https://bugs.gentoo.org/712364 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
parent
ab86d9dd58
commit
e0e8685468
@ -1,5 +1,5 @@
|
||||
--- cc/cc/cc.c 2014-12-06 09:52:55.000000000 +0000
|
||||
+++ cc/cc/cc.c.new 2015-03-09 09:22:25.569376330 +0000
|
||||
--- a/cc/cc/cc.c
|
||||
+++ b/cc/cc/cc.c
|
||||
@@ -206,7 +206,7 @@
|
||||
#define PCCLIBDIR NULL
|
||||
#endif
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=7
|
||||
|
||||
inherit eutils versionator autotools
|
||||
inherit autotools flag-o-matic
|
||||
|
||||
DESCRIPTION="pcc portable c compiler"
|
||||
HOMEPAGE="http://pcc.ludd.ltu.se"
|
||||
@ -13,25 +13,21 @@ SRC_URI="ftp://pcc.ludd.ltu.se/pub/pcc-releases/${P}.tgz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-libs/pcc-libs-${PV}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-multiarch.patch )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/AC_CHECK_PROG(strip,strip,yes,no)//' configure.ac || die "Failed to fix configure.ac"
|
||||
sed -i -e 's/AC_SUBST(strip)//' configure.ac || die "Failed to fix configure.ac more"
|
||||
default
|
||||
sed -i \
|
||||
-e 's/AC_CHECK_PROG(strip,strip,yes,no)//' \
|
||||
-e 's/AC_SUBST(strip)//' configure.ac || die
|
||||
eautoreconf
|
||||
epatch "${FILESDIR}/${P}-multiarch.patch" || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cflags -fcommon
|
||||
econf --disable-stripping
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user