sci-libs/libpdb: Bump EAPI to 6

drop old

Package-Manager: Portage-2.3.5, Repoman-2.3.2
Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
Justin Lecher
2017-04-14 19:59:59 +01:00
parent 92235e3e78
commit 26eecfbe9f
2 changed files with 5 additions and 48 deletions
+5 -3
View File
@@ -1,7 +1,7 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
EAPI=6
inherit eutils toolchain-funcs
@@ -20,12 +20,14 @@ DEPEND="${RDEPEND}
S="${WORKDIR}"
PATCHES=( "${FILESDIR}"/${P}-dynlib+flags.patch )
src_unpack() {
"${EPREFIX}/usr/bin/unshar" "${DISTDIR}"/${A} || die
}
src_prepare() {
epatch "${FILESDIR}"/${P}-dynlib+flags.patch
default
tc-export CC RANLIB AR
}
-45
View File
@@ -1,45 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="3"
inherit eutils multilib toolchain-funcs
DESCRIPTION="PDB Record I/O Libraries -- c version"
HOMEPAGE="http://www.cgl.ucsf.edu/Overview/software.html"
SRC_URI="mirror://gentoo/${P}.shar"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="BSD"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
app-arch/sharutils"
S="${WORKDIR}"/${PN}
src_unpack() {
"${EPREFIX}"/usr/bin/unshar "${DISTDIR}"/${A} || die
}
src_prepare() {
epatch "${FILESDIR}"/${PV}-dynlib.patch
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS} -fPIC" \
${PN}.a || die
}
src_install() {
dolib.a ${PN}.a || die
dolib.so ${PN}.so.0.1 || die
dosym ${PN}.so.0.1 /usr/$(get_libdir)/${PN}.so.0
dosym ${PN}.so.0.1 /usr/$(get_libdir)/${PN}.so
insinto /usr/include/${PN}
doins *.h || die
}