summaryrefslogtreecommitdiff
path: root/app-arch/xz-utils
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-06-16 21:23:20 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-06-16 21:23:20 +0100
commitfab849d1daed0ba7f2ac497d07985c3dbb692543 (patch)
tree10baa743a5340b42ad538dd19d48669ccac209b1 /app-arch/xz-utils
parent73c318acdaf6f8309d68bd266051e6dd1f1bd787 (diff)
gentoo resync : 16.06.2019
Diffstat (limited to 'app-arch/xz-utils')
-rw-r--r--app-arch/xz-utils/Manifest3
-rw-r--r--app-arch/xz-utils/xz-utils-5.2.4-r3.ebuild91
-rw-r--r--app-arch/xz-utils/xz-utils-9999.ebuild2
3 files changed, 94 insertions, 2 deletions
diff --git a/app-arch/xz-utils/Manifest b/app-arch/xz-utils/Manifest
index c72b9bf879f8..898a017eb16b 100644
--- a/app-arch/xz-utils/Manifest
+++ b/app-arch/xz-utils/Manifest
@@ -1,4 +1,5 @@
DIST xz-5.2.4.tar.gz 1572354 BLAKE2B 877242324afd3c7eb21d3a9414c53843f4d1bb089206e8e545e280b32ff5372f7fb4a1b0c27cb6fdf0d0a27a668e9772ecc3fffc181df95d081ca9c2e987b83b SHA512 e5bf6eb88365d2dbdc774db49261fb9fae0544ed297891fc20f1ed223f4072cb0357cbd98146ac35b6d29410a12b6739bbd111cd57d4a225bef255ed46988578
EBUILD xz-utils-5.2.4-r2.ebuild 2693 BLAKE2B aa5671f827997a8f32a850f64e4f797223fe6c290c10ebacd626a37bcf2d79e2682e08b8c3da914333f76040c39d104bc3c87eed5bb78cf34208409ce6a9776d SHA512 958d42f3cadcf435322b749c7a573f1148646b10b9113695871c996ea9d7d9a30e060c45afa069faa121f6dd74fb45c7ca017794af2fe26ec5002e7d9fbb98e9
-EBUILD xz-utils-9999.ebuild 2652 BLAKE2B 02d447457fb4c4911e913e8128a513a8f664a035534ad1a5df105024b1c5ce0b903ea0610010498413626bd00416804bb3ab2364ea48053ae40bb90f1d45d575 SHA512 60d58ec8c41c9aec1a6aadf07cae78764d8fb4ef1ea11426abead71f653906a3d2d47e5e4e247335a76c2d04da90c04c0a8b6dd33f525d046094f2e9d7c024ef
+EBUILD xz-utils-5.2.4-r3.ebuild 2631 BLAKE2B 6125a8e66e33920e836041a10bc7300f83b91796433207982686c177ca527a9c7b812fc49139bb96a7a949d9310981bf75a8e10d7e8d6743b1e9b5e25ce801ce SHA512 4a00c5a7b41d3dd00ee6490c0597eb5e4f56d8ead11fd2469af028ca1d1fcadee542b271f1237d05fdc2bb7c2dbe02704039967a01180a9d27eeef373c7d6812
+EBUILD xz-utils-9999.ebuild 2631 BLAKE2B 6125a8e66e33920e836041a10bc7300f83b91796433207982686c177ca527a9c7b812fc49139bb96a7a949d9310981bf75a8e10d7e8d6743b1e9b5e25ce801ce SHA512 4a00c5a7b41d3dd00ee6490c0597eb5e4f56d8ead11fd2469af028ca1d1fcadee542b271f1237d05fdc2bb7c2dbe02704039967a01180a9d27eeef373c7d6812
MISC metadata.xml 462 BLAKE2B 66d5625b239d042389ce8fef820efdc3ce3b5cbf21f6d0aedc4874d450ea1897dc8438575f3efc5a491ea857a8b990e6a51b16d0ff0b4982b41307bb52535cf1 SHA512 8f4ca7b987587a240f932ff1719f096de148db6e11c4e0af5f2f55552cab5d0af1256be337dbe8493b584d2c25a70a308dc28b90712078fb58f40cae37cfe5b1
diff --git a/app-arch/xz-utils/xz-utils-5.2.4-r3.ebuild b/app-arch/xz-utils/xz-utils-5.2.4-r3.ebuild
new file mode 100644
index 000000000000..249d0a2b31e2
--- /dev/null
+++ b/app-arch/xz-utils/xz-utils-5.2.4-r3.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Remember: we cannot leverage autotools in this ebuild in order
+# to avoid circular deps with autotools
+
+EAPI=6
+
+inherit multilib toolchain-funcs libtool multilib-minimal preserve-libs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://git.tukaani.org/xz.git"
+ inherit git-r3 autotools
+ SRC_URI=""
+ EXTRA_DEPEND="sys-devel/gettext dev-vcs/cvs >=sys-devel/libtool-2" #272880 286068
+else
+ MY_P="${PN/-utils}-${PV/_}"
+ SRC_URI="https://tukaani.org/xz/${MY_P}.tar.gz"
+ [[ "${PV}" == *_alpha* ]] || [[ "${PV}" == *_beta* ]] || \
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+ S="${WORKDIR}/${MY_P}"
+ EXTRA_DEPEND=
+fi
+
+DESCRIPTION="utils for managing LZMA compressed files"
+HOMEPAGE="https://tukaani.org/xz/"
+
+# See top-level COPYING file as it outlines the various pieces and their licenses.
+LICENSE="public-domain LGPL-2.1+ GPL-2+"
+SLOT="0"
+IUSE="elibc_FreeBSD +extra-filters nls static-libs +threads"
+
+RDEPEND="!<app-arch/lzma-4.63
+ !<app-arch/p7zip-4.57"
+DEPEND="${RDEPEND}
+ ${EXTRA_DEPEND}"
+
+# Tests currently do not account for smaller feature set
+RESTRICT="!extra-filters? ( test )"
+
+src_prepare() {
+ default
+ if [[ ${PV} == "9999" ]] ; then
+ eautopoint
+ eautoreconf
+ else
+ elibtoolize # to allow building shared libs on Solaris/x64
+ fi
+}
+
+multilib_src_configure() {
+ local myconf=(
+ $(use_enable nls)
+ $(use_enable threads)
+ $(use_enable static-libs static)
+ )
+ multilib_is_native_abi ||
+ myconf+=( --disable-{xz,xzdec,lzmadec,lzmainfo,lzma-links,scripts} )
+ if ! use extra-filters; then
+ myconf+=(
+ # LZMA1 + LZMA2 for standard .lzma & .xz files
+ --enable-encoders=lzma1,lzma2
+ --enable-decoders=lzma1,lzma2
+ # those are used by default, depending on preset
+ --enable-match-finders=hc3,hc4,bt4
+ # CRC64 is used by default, though some (old?) files use CRC32
+ --enable-checks=crc32,crc64
+ )
+ fi
+
+ use elibc_FreeBSD && export ac_cv_header_sha256_h=no #545714
+ ECONF_SOURCE="${S}" econf "${myconf[@]}"
+}
+
+multilib_src_install() {
+ default
+ gen_usr_ldscript -a lzma
+}
+
+multilib_src_install_all() {
+ find "${ED}" -name '*.la' -delete || die
+ rm "${ED%/}"/usr/share/doc/${PF}/COPYING* || die
+}
+
+pkg_preinst() {
+ preserve_old_lib /usr/$(get_libdir)/liblzma$(get_libname 0)
+}
+
+pkg_postinst() {
+ preserve_old_lib_notify /usr/$(get_libdir)/liblzma$(get_libname 0)
+}
diff --git a/app-arch/xz-utils/xz-utils-9999.ebuild b/app-arch/xz-utils/xz-utils-9999.ebuild
index 002f769a1c13..249d0a2b31e2 100644
--- a/app-arch/xz-utils/xz-utils-9999.ebuild
+++ b/app-arch/xz-utils/xz-utils-9999.ebuild
@@ -78,7 +78,7 @@ multilib_src_install() {
}
multilib_src_install_all() {
- find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
+ find "${ED}" -name '*.la' -delete || die
rm "${ED%/}"/usr/share/doc/${PF}/COPYING* || die
}