sys-apps/xbps: add version 0.58 and git live 9999
This commit is contained in:
parent
3f7ae646dc
commit
c9acb0f06b
1
sys-apps/xbps/Manifest
Normal file
1
sys-apps/xbps/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST 0.58.tar.gz 386287 BLAKE2B 31ab2f73945cb349e15092de5c969f4ceba7a17275cfd08f7310a43ef13d36b9a01f09a018a34e90f9a2ae0f177de2b542e4bac40e624eeac5175d781d9b356e SHA512 c4df413043aabb17ef9a21cbb58aa116d63d50ed2bcae7a38886ed077fcc72e3f4cbe9723e97b741b3c9403f836ac5edaea86092a7cd44ac29015c1bed483952
|
10
sys-apps/xbps/metadata.xml
Normal file
10
sys-apps/xbps/metadata.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<use>
|
||||||
|
<flag name="lto">Build with Link Time Optimization</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">void-linux/xbps</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
56
sys-apps/xbps/xbps-0.58.ebuild
Normal file
56
sys-apps/xbps/xbps-0.58.ebuild
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# 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"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/void-linux/${PN}/archive/${PV}.tar.gz"
|
||||||
|
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? (
|
||||||
|
app-doc/doxygen
|
||||||
|
media-gfx/graphviz
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
sys-libs/zlib
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
test? ( >=dev-libs/atf-0.15 )
|
||||||
|
"
|
||||||
|
|
||||||
|
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."
|
||||||
|
}
|
56
sys-apps/xbps/xbps-9999.ebuild
Normal file
56
sys-apps/xbps/xbps-9999.ebuild
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# 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"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/void-linux/${PN}/archive/${PV}.tar.gz"
|
||||||
|
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? (
|
||||||
|
app-doc/doxygen
|
||||||
|
media-gfx/graphviz
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
sys-libs/zlib
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
test? ( >=dev-libs/atf-0.15 )
|
||||||
|
"
|
||||||
|
|
||||||
|
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."
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user