public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-arch/lrzip-next/
@ 2024-02-26  7:57 Joshua Kinard
  0 siblings, 0 replies; 2+ messages in thread
From: Joshua Kinard @ 2024-02-26  7:57 UTC (permalink / raw
  To: gentoo-commits

commit:     415bff1e26e9598ca3500297494f25c9bdfcb868
Author:     Joshua Kinard <kumba <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 26 07:49:33 2024 +0000
Commit:     Joshua Kinard <kumba <AT> gentoo <DOT> org>
CommitDate: Mon Feb 26 07:54:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=415bff1e

app-arch/lrzip-next: new package, add 0.12.6

Fork of ckolivas' app-arch/lrzip package that is
actively maintained and w/ some additional features.

Signed-off-by: Joshua Kinard <kumba <AT> gentoo.org>

 app-arch/lrzip-next/Manifest                 |  1 +
 app-arch/lrzip-next/lrzip-next-0.12.6.ebuild | 50 ++++++++++++++++++++++++++++
 app-arch/lrzip-next/metadata.xml             | 22 ++++++++++++
 3 files changed, 73 insertions(+)

diff --git a/app-arch/lrzip-next/Manifest b/app-arch/lrzip-next/Manifest
new file mode 100644
index 000000000000..256514f707f8
--- /dev/null
+++ b/app-arch/lrzip-next/Manifest
@@ -0,0 +1 @@
+DIST lrzip-next-0.12.6.tar.gz 600081 BLAKE2B 952b3aefcf424b4626f14caaefc7b160a271330903227207cec249306750dfd24097abfdae159d82dc86e08711f51789ca72bcc66b6d7f4bdd9b892133759dae SHA512 768edaa4059e7a5561a738779cca5e5c46525c0a3f5888fc4e730fe6664f390fa8409060c86076b4b4cc327e317c37d59d557a55db67d97d39da6369788763c8

diff --git a/app-arch/lrzip-next/lrzip-next-0.12.6.ebuild b/app-arch/lrzip-next/lrzip-next-0.12.6.ebuild
new file mode 100644
index 000000000000..0d3258e4caa8
--- /dev/null
+++ b/app-arch/lrzip-next/lrzip-next-0.12.6.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Fork of Con Kolivas' lrzip program for compressing large files"
+HOMEPAGE="https://github.com/pete4abw/lrzip-next"
+SRC_URI="https://github.com/pete4abw/lrzip-next/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs year2038"
+
+RDEPEND="app-arch/bzip2
+	app-arch/bzip3
+	app-arch/lz4
+	app-arch/zstd
+	dev-libs/lzo
+	sys-libs/zlib"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-perl/Pod-Parser
+	amd64? ( dev-lang/nasm )
+	x86? ( dev-lang/nasm )"
+
+src_prepare() {
+	default
+
+	eautoreconf
+}
+
+src_configure() {
+	# ASM optimizations are only available on amd64 and x86
+	local asm=no
+	if use amd64 || use x86; then
+		asm=yes
+	fi
+
+	econf \
+		$(use_enable static-libs static) \
+		$(use_enable year2038) \
+		--enable-asm=${asm}
+}
+
+src_install() {
+	default
+	find "${ED}" -name '*.la' -delete || die
+}

diff --git a/app-arch/lrzip-next/metadata.xml b/app-arch/lrzip-next/metadata.xml
new file mode 100644
index 000000000000..d0dea613ffd3
--- /dev/null
+++ b/app-arch/lrzip-next/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+			<email>kumba@gentoo.org</email>
+			<name>Joshua Kinard</name>
+	</maintainer>
+	<longdescription>
+	A fork of Con Kolivas' 'lrzip' program that is actively maintained.  Lrzip
+	is a compression program optimised for large files. The larger the file and
+	the more memory you have, the better the compression advantage this will
+	provide, especially once the files are larger than 100MB.  The advantage can
+	be chosen to be either size (much smaller than bzip2) or speed (much faster
+	than bzip2).
+	</longdescription>
+	<upstream>
+		<remote-id type="github">pete4abw/lrzip-next</remote-id>
+	</upstream>
+	<use>
+		<flag name="year2038">Enables support for timestamps after the year 2038</flag>
+	</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-arch/lrzip-next/
@ 2024-02-27  4:41 Joshua Kinard
  0 siblings, 0 replies; 2+ messages in thread
From: Joshua Kinard @ 2024-02-27  4:41 UTC (permalink / raw
  To: gentoo-commits

commit:     59f5724e973a008920e5b08edd1ac54713d9ddd8
Author:     Joshua Kinard <kumba <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 27 03:53:45 2024 +0000
Commit:     Joshua Kinard <kumba <AT> gentoo <DOT> org>
CommitDate: Tue Feb 27 04:28:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59f5724e

app-arch/lrzip-next: Remove ~x86 keyword; investigated musl issues

Package no longer supports 32-bit arches (sizeof(long) == 4), so
will mask on all 32-bit arches.

Package is also currently incompatible w/ musl's pthreads code;
need to talk to upstream to see if can be fixed.  Will mask on
musl for now.

Also added more missing deps, removed dev-perl/Pod-Parser as a bdep,
and added ebuild logic to fill in the package's version w/o needing
to drag dev-vcs/git in as a bdep.

Bug: https://bugs.gentoo.org/925547
Closes: https://bugs.gentoo.org/925548
Signed-off-by: Joshua Kinard <kumba <AT> gentoo.org>

 app-arch/lrzip-next/lrzip-next-0.12.6-r1.ebuild | 67 +++++++++++++++++++++++++
 app-arch/lrzip-next/lrzip-next-0.12.6.ebuild    | 50 ------------------
 2 files changed, 67 insertions(+), 50 deletions(-)

diff --git a/app-arch/lrzip-next/lrzip-next-0.12.6-r1.ebuild b/app-arch/lrzip-next/lrzip-next-0.12.6-r1.ebuild
new file mode 100644
index 000000000000..e218f7e3e4fe
--- /dev/null
+++ b/app-arch/lrzip-next/lrzip-next-0.12.6-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit autotools
+
+DESCRIPTION="Fork of Con Kolivas' lrzip program for compressing large files"
+HOMEPAGE="https://github.com/pete4abw/lrzip-next"
+SRC_URI="https://github.com/pete4abw/lrzip-next/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="asm static-libs year2038"
+
+RDEPEND="app-arch/bzip2
+	app-arch/bzip3
+	app-arch/lz4
+	app-arch/zstd
+	dev-libs/libgcrypt
+	dev-libs/libgpg-error
+	dev-libs/lzo
+	sys-libs/zlib"
+DEPEND="${RDEPEND}"
+BDEPEND="amd64? ( dev-lang/nasm )"
+
+src_prepare() {
+	default
+
+	# configure.ac uses a small helper script, ./util/gitdesc.sh, to
+	# see if it's a tarball or git repo copy.  If tarball, it extracts
+	# the version information from a local VERSION file and puts it into
+	# configure.ac at the top for major/minor/micro.  To avoid the need
+	# for a BDEPEND on dev-vcs/git, we can do this directly.
+	local major=$(awk '/Major: / {printf "%s",$2; exit}' VERSION)
+	local minor=$(awk '/Minor: / {printf "%s",$2; exit}' VERSION)
+	local micro=$(awk '/Micro: / {printf "%s",$2; exit}' VERSION)
+	sed -i -e "s:\[m4_esyscmd_s(\[./util/gitdesc.sh major\])\]:${major}:" configure.ac
+	sed -i -e "s:\[m4_esyscmd_s(\[./util/gitdesc.sh minor\])\]:${minor}:" configure.ac
+	sed -i -e "s:\[m4_esyscmd_s(\[./util/gitdesc.sh micro\])\]:${micro}:" configure.ac
+
+	eautoreconf
+}
+
+src_configure() {
+	local myconf=(
+		$(use_enable static-libs static) \
+		$(use_enable amd64 asm)
+	)
+
+	# This configure switch disappears on a musl system for some
+	# reason.  However, this package is currently broken on musl,
+	# but we'll leave this in place while we see if upstream has
+	# any advice.
+	if ! use elibc_musl; then
+		myconf+=( $(use_enable year2038) )
+	fi
+
+	econf "${myconf[@]}"
+}
+
+src_install() {
+	default
+
+	find "${ED}" -name '*.la' -delete || die
+}

diff --git a/app-arch/lrzip-next/lrzip-next-0.12.6.ebuild b/app-arch/lrzip-next/lrzip-next-0.12.6.ebuild
deleted file mode 100644
index 0d3258e4caa8..000000000000
--- a/app-arch/lrzip-next/lrzip-next-0.12.6.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools
-
-DESCRIPTION="Fork of Con Kolivas' lrzip program for compressing large files"
-HOMEPAGE="https://github.com/pete4abw/lrzip-next"
-SRC_URI="https://github.com/pete4abw/lrzip-next/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="static-libs year2038"
-
-RDEPEND="app-arch/bzip2
-	app-arch/bzip3
-	app-arch/lz4
-	app-arch/zstd
-	dev-libs/lzo
-	sys-libs/zlib"
-DEPEND="${RDEPEND}"
-BDEPEND="dev-perl/Pod-Parser
-	amd64? ( dev-lang/nasm )
-	x86? ( dev-lang/nasm )"
-
-src_prepare() {
-	default
-
-	eautoreconf
-}
-
-src_configure() {
-	# ASM optimizations are only available on amd64 and x86
-	local asm=no
-	if use amd64 || use x86; then
-		asm=yes
-	fi
-
-	econf \
-		$(use_enable static-libs static) \
-		$(use_enable year2038) \
-		--enable-asm=${asm}
-}
-
-src_install() {
-	default
-	find "${ED}" -name '*.la' -delete || die
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-27  4:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-26  7:57 [gentoo-commits] repo/gentoo:master commit in: app-arch/lrzip-next/ Joshua Kinard
  -- strict thread matches above, loose matches on Subject: below --
2024-02-27  4:41 Joshua Kinard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox