2024-01-18 13:58:47 +01:00
|
|
|
# Copyright 1999-2024 Gentoo Authors
|
2020-02-14 20:32:11 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
DESCRIPTION="The X Binary Package System"
|
|
|
|
HOMEPAGE="https://voidlinux.org/xbps"
|
|
|
|
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/void-linux/xbps.git"
|
|
|
|
else
|
2020-03-15 13:11:27 +01:00
|
|
|
SRC_URI="https://github.com/void-linux/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
2020-02-14 20:32:11 +01:00
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
RESTRICT="!test? ( test ) mirror"
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="debug doc lto static test"
|
|
|
|
|
|
|
|
COMMON_DEPEND="
|
|
|
|
>=app-arch/libarchive-3.3.3[lz4,zstd]
|
|
|
|
"
|
|
|
|
BDEPEND="
|
|
|
|
${COMMON_DEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
doc? (
|
2024-01-18 13:58:47 +01:00
|
|
|
app-text/doxygen
|
|
|
|
media-gfx/graphviz
|
2020-02-14 20:32:11 +01:00
|
|
|
)
|
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
sys-libs/zlib
|
2020-05-06 17:48:05 +02:00
|
|
|
test? (
|
|
|
|
>=dev-libs/atf-0.15
|
|
|
|
)
|
2020-02-14 20:32:11 +01:00
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
${COMMON_DEPEND}
|
|
|
|
"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local myconf=(
|
|
|
|
$(use_enable debug fulldebug)
|
|
|
|
$(use_enable doc api-docs)
|
|
|
|
$(use_enable lto)
|
|
|
|
$(use_enable static)
|
|
|
|
$(use_enable test tests)
|
|
|
|
)
|
|
|
|
econf "${myconf[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
elog "WARNING! Use with caution!"
|
|
|
|
elog "XBPS may break your system."
|
|
|
|
}
|