gentoo-ebuilds/app-misc/unfoo/unfoo-1.0.8-r2.ebuild
NRK b91b024ea4
app-misc/unfoo: accept 7zip[symlink]
the script only needs the 7z executable:
79ecf64f35/unfoo (L240-L249)

Signed-off-by: NRK <nrk@disroot.org>
Closes: https://github.com/gentoo/gentoo/pull/41079
Signed-off-by: Sam James <sam@gentoo.org>
2025-03-24 06:52:59 +00:00

48 lines
1.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Simple bash driven frontend to simplify decompression of files"
HOMEPAGE="https://github.com/jlec/unfoo"
SRC_URI="https://github.com/jlec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 ~s390 x86 ~amd64-linux ~x86-linux"
IUSE="+minimal test"
RESTRICT="!test? ( test )"
COMMON_DEPS="
app-alternatives/bzip2
app-alternatives/gzip
|| (
>=app-arch/7zip-24.09[symlink(+)]
app-arch/p7zip
)
|| (
app-arch/rar
app-arch/unrar
)
app-arch/unace
app-arch/unzip
app-arch/xz-utils"
RDEPEND="!minimal? ( ${COMMON_DEPS} )"
DEPEND="test? ( ${COMMON_DEPS} )"
src_compile() { :; }
src_install() {
dodoc README*
dobin ${PN}
}
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
echo
elog "unfoo can handle far more than just .tar*, but it requires some"
elog "optional packages to do so. For a list, either consult the source"
elog "(less /usr/bin/unfoo), or see http://obsoleet.org/code/unfoo"
elog "To get full support please use USE=-minimal"
fi
}