mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
app-arch/pixz: Import from Gentoo
This is needed by Catalyst 4. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
parent
354a0f2ecd
commit
15cfc5badb
1
sdk_container/src/third_party/portage-stable/app-arch/pixz/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-arch/pixz/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST pixz-1.0.7.tar.xz 120876 BLAKE2B 23563837169611d54dc4540715537b2e16c66bd9682097e4f37957e7422b487f221603b11aa30a39fd05c77dbeddc1697ac9ffe208d984c1da885a67f79a180f SHA512 7f343cb74958b9582b60a2e916243e72421fad1ebecc5867c9e046c881e8a318da9bb885edd71da8fe6953fd5d5c2f5119133cd0bbbf4d0f9b35f8aecd61120d
|
||||
11
sdk_container/src/third_party/portage-stable/app-arch/pixz/metadata.xml
vendored
Normal file
11
sdk_container/src/third_party/portage-stable/app-arch/pixz/metadata.xml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zerochaos@gentoo.org</email>
|
||||
<name>Rick Farina</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">vasi/pixz</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
63
sdk_container/src/third_party/portage-stable/app-arch/pixz/pixz-1.0.7-r1.ebuild
vendored
Normal file
63
sdk_container/src/third_party/portage-stable/app-arch/pixz/pixz-1.0.7-r1.ebuild
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/vasi/${PN}.git"
|
||||
inherit git-r3 autotools
|
||||
else
|
||||
SRC_URI="https://github.com/vasi/pixz/releases/download/v${PV}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Parallel Indexed XZ compressor"
|
||||
HOMEPAGE="https://github.com/vasi/pixz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
IUSE="static"
|
||||
|
||||
LIB_DEPEND="
|
||||
>=app-arch/libarchive-2.8:=[static-libs(+)]
|
||||
>=app-arch/xz-utils-5[static-libs(+)]
|
||||
"
|
||||
RDEPEND="
|
||||
!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
static? ( ${LIB_DEPEND} )
|
||||
"
|
||||
[[ ${PV} == 9999 ]] && BDEPEND+=" app-text/asciidoc"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# We're not interested in linting tests for our purposes (bug #915008)
|
||||
cat > test/cppcheck-src.sh <<-EOF || die
|
||||
#!/bin/sh
|
||||
exit 77
|
||||
EOF
|
||||
|
||||
[[ ${PV} == "9999" ]] && eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use static && append-ldflags -static
|
||||
append-flags -std=gnu99
|
||||
|
||||
# Workaround silly logic that breaks cross-compiles.
|
||||
# https://github.com/vasi/pixz/issues/67
|
||||
export ac_cv_file_src_pixz_1=$([[ -f src/pixz.1 ]] && echo yes || echo no)
|
||||
econf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# https://github.com/vasi/pixz/issues/94
|
||||
[[ ${PV} == "9999" ]] || doman src/pixz.1
|
||||
}
|
||||
60
sdk_container/src/third_party/portage-stable/app-arch/pixz/pixz-9999.ebuild
vendored
Normal file
60
sdk_container/src/third_party/portage-stable/app-arch/pixz/pixz-9999.ebuild
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/vasi/${PN}.git"
|
||||
inherit git-r3 autotools
|
||||
else
|
||||
SRC_URI="https://github.com/vasi/pixz/releases/download/v${PV}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Parallel Indexed XZ compressor"
|
||||
HOMEPAGE="https://github.com/vasi/pixz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
IUSE="static"
|
||||
|
||||
LIB_DEPEND="
|
||||
>=app-arch/libarchive-2.8:=[static-libs(+)]
|
||||
>=app-arch/xz-utils-5[static-libs(+)]
|
||||
"
|
||||
RDEPEND="
|
||||
!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
static? ( ${LIB_DEPEND} )
|
||||
"
|
||||
[[ ${PV} == 9999 ]] && BDEPEND+=" app-text/asciidoc"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# We're not interested in linting tests for our purposes (bug #915008)
|
||||
cat > test/cppcheck-src.sh <<-EOF || die
|
||||
#!/bin/sh
|
||||
exit 77
|
||||
EOF
|
||||
|
||||
[[ ${PV} == "9999" ]] && eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use static && append-ldflags -static
|
||||
append-flags -std=gnu99
|
||||
|
||||
econf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# https://github.com/vasi/pixz/issues/94
|
||||
[[ ${PV} == "9999" ]] || doman src/pixz.1
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user