app-arch/unmakeself: Port to EAPI 6

Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
David Seifert
2017-12-29 14:36:53 +01:00
parent ce99333d45
commit 33d4e57986

View File

@@ -1,8 +1,9 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=2
inherit toolchain-funcs
EAPI=6
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Makeself archive extractor"
HOMEPAGE="http://www.freshports.org/archivers/unmakeself"
@@ -13,12 +14,21 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="app-arch/libarchive[bzip2,zlib]"
RDEPEND="app-arch/libarchive:=[bzip2,zlib]"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_configure() {
append-cppflags $($(tc-getPKG_CONFIG) --cflags libarchive)
export LDLIBS=$($(tc-getPKG_CONFIG) --libs libarchive)
tc-export CC
}
src_compile() {
emake CC="$(tc-getCC)" LDLIBS=-larchive ${PN} || die "emake failed"
emake ${PN}
}
src_install() {
dobin unmakeself || die "dobin failed"
dobin unmakeself
}