app-arch/pbzip2: Sync with Gentoo

It's from Gentoo commit 6a05ae558abc3fa30efec7feb290ab039024d8ab.
This commit is contained in:
Krzesimir Nowak 2023-01-09 13:46:46 +01:00
parent 60d383afed
commit fa905b4696
2 changed files with 5 additions and 20 deletions

View File

@ -1,13 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<maintainer type="person"> <!-- maintainer-needed -->
<email>polynomial-c@gentoo.org</email>
<name>Lars Wendler</name>
</maintainer>
<use>
<flag name="symlink">Install symlinks which override <pkg>app-arch/bzip2</pkg> implementation</flag>
</use>
<upstream> <upstream>
<remote-id type="launchpad">pbzip2</remote-id> <remote-id type="launchpad">pbzip2</remote-id>
</upstream> </upstream>

View File

@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors # Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="7" EAPI="7"
@ -11,13 +11,11 @@ SRC_URI="https://launchpad.net/pbzip2/${PV:0:3}/${PV}/+download/${P}.tar.gz"
LICENSE="BZIP2" LICENSE="BZIP2"
SLOT="0" SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="static symlink" IUSE="static"
LIB_DEPEND="app-arch/bzip2[static-libs(+)]" LIB_DEPEND="app-arch/bzip2[static-libs(+)]"
RDEPEND=" RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
symlink? ( !app-arch/lbzip2[symlink] )"
DEPEND="${RDEPEND} DEPEND="${RDEPEND}
static? ( ${LIB_DEPEND} )" static? ( ${LIB_DEPEND} )"
@ -39,11 +37,4 @@ src_configure() {
src_install() { src_install() {
emake DESTDIR="${ED}" install emake DESTDIR="${ED}" install
dodoc AUTHORS ChangeLog README dodoc AUTHORS ChangeLog README
if use symlink ; then
local s
for s in bzip2 bunzip2 bzcat ; do
dosym pbzip2 /usr/bin/${s}
done
fi
} }