diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /app-arch/lrzip-next | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'app-arch/lrzip-next')
-rw-r--r-- | app-arch/lrzip-next/Manifest | 9 | ||||
-rw-r--r-- | app-arch/lrzip-next/files/lrzip-next-0.13.1-fix-lzma_asm_makefile-echo.patch | 20 | ||||
-rw-r--r-- | app-arch/lrzip-next/files/lrzip-next-0.13.1-use-acx_pthread-configure_ac.patch | 33 | ||||
-rw-r--r-- | app-arch/lrzip-next/lrzip-next-0.13.1.ebuild (renamed from app-arch/lrzip-next/lrzip-next-0.12.6-r1.ebuild) | 30 | ||||
-rw-r--r-- | app-arch/lrzip-next/lrzip-next-9999.ebuild | 77 | ||||
-rw-r--r-- | app-arch/lrzip-next/metadata.xml | 3 |
6 files changed, 158 insertions, 14 deletions
diff --git a/app-arch/lrzip-next/Manifest b/app-arch/lrzip-next/Manifest index f5e6ba518391..5eb9eac6ac39 100644 --- a/app-arch/lrzip-next/Manifest +++ b/app-arch/lrzip-next/Manifest @@ -1,3 +1,6 @@ -DIST lrzip-next-0.12.6.tar.gz 600081 BLAKE2B 952b3aefcf424b4626f14caaefc7b160a271330903227207cec249306750dfd24097abfdae159d82dc86e08711f51789ca72bcc66b6d7f4bdd9b892133759dae SHA512 768edaa4059e7a5561a738779cca5e5c46525c0a3f5888fc4e730fe6664f390fa8409060c86076b4b4cc327e317c37d59d557a55db67d97d39da6369788763c8 -EBUILD lrzip-next-0.12.6-r1.ebuild 1904 BLAKE2B 93b1816adf9f5fd910a172ce7ddb02cba30674b46c045a830a025882b24f2af581029f9a3eee5453551c023b5bd5fd86f833b46d34719e957fe6832e6b33ac84 SHA512 060c1231786aeba2ecdad2ff77421f144ff905a5470fd820f64bd758495a3c1ca5a5a0f462fc9964881902e4c7b94d00e2b49553945218fea130e843a2ac98fd -MISC metadata.xml 864 BLAKE2B 8305d4f1692bc1daca6e9f5652d6b4cbe0f958013c230f21de1f44fb9a737569c1e5f07070691b5b6b71041e5bd940f1703cc68d42467113a1756f906c2651cf SHA512 2fd25adbf289ddf6b076a0105cb240d8e22f306d0705ba1b98d6abaf92b58b63a5f6413953035b5d837a60f4bc702c64564a4fb195799e0bbd777dd30d6ea365 +AUX lrzip-next-0.13.1-fix-lzma_asm_makefile-echo.patch 816 BLAKE2B add421013a5872ef8dcc5d0a0109165228bac9f585789659a273944a953b8459569cc170abb35470ebb197a51e568ef1e918cb21c954c9c592d4767315ab2ead SHA512 90a732473006c1f8d407b369aa38c863a2e14d4deeae9510485380b742c12eee5b10c2a8a5315a7936689a10b37fa95c69d8c5e2552fd7f7987b2b2966f27366 +AUX lrzip-next-0.13.1-use-acx_pthread-configure_ac.patch 983 BLAKE2B 26bb9d5761ecc88fd7f0b8e4c03b27e39a45453d9252f28aeb72b4b3c56700484a5658880efc808009ef177462772755dfb9734ee6170fc23a7c52e48450b584 SHA512 3d302966b802e5ccadda0de4766510dd6db09dfca2bc672e3c22621c4b6a48127f77c7cf3bcf420319e4e2f84df748490c7f47db9dfe3b1e0ab8688eb9ba280c +DIST lrzip-next-0.13.1.tar.gz 604938 BLAKE2B f31becc3fb9e332a9682d41d2c6408bf08ee9173ddf7794259d1a5c7ea13b2a6d41f66c6ed9c88f840a48845f99d47526dd64667a788aefef5cea630bce4a094 SHA512 6c62d555c6596dba1184f9240ea31351ff0f091335607d44cb6d5d84589a42e234faccc6c835529b85917ebfcd712b676f1cdd66316be1f3d0c204c196043c65 +EBUILD lrzip-next-0.13.1.ebuild 2158 BLAKE2B bcf406427e1b86491977d30a17b03acb7f83a0c6ca137712d849cc5e55b31bfbbb852256546e722be3abd9a85e9f79562cbfa81c5977dd384e36b78d30a410e9 SHA512 dbd67f31df45ebfd13f3812107ae3ef32a72bcd0e6cfc752acd096efd079ee26e7000afbe2a04856759db0f90436207168382994980b2a66b9175b6d6336e8b1 +EBUILD lrzip-next-9999.ebuild 2159 BLAKE2B e35b462ed5f41cfd13340fa11e027b8d6ce10ad008d3f56fdcba27460ac06628244c2495051d6fbeeb85a2ba3ca7e3b425db9a26461de6880079827aac5a6cfd SHA512 76c7ef4242778eb05b2f037daebf0205b95060ef3902f66239b483473ab5cae394352a2e37ef1e480201dfaa7260d24d4d656c2cef4b11af952ffe7824be269f +MISC metadata.xml 947 BLAKE2B 4f119329ed48b45c86b2d83677a42a4865b616afaafccb7cb5ebe54b7738d1e63658dac3e16e39dd1c6196019d7ffd72db14c63fa9e028fc85e6479c4c2d7c83 SHA512 e46aa50ce739610536734c91e2c9633acc48cba21a19c32a1f2a6ea618415a5a4fc4a462b178f30b6a56615b471b1be6fe348757ea07e08285864837a2838f0e diff --git a/app-arch/lrzip-next/files/lrzip-next-0.13.1-fix-lzma_asm_makefile-echo.patch b/app-arch/lrzip-next/files/lrzip-next-0.13.1-fix-lzma_asm_makefile-echo.patch new file mode 100644 index 000000000000..5ef0ea141bf8 --- /dev/null +++ b/app-arch/lrzip-next/files/lrzip-next-0.13.1-fix-lzma_asm_makefile-echo.patch @@ -0,0 +1,20 @@ +diff -Naurp lrzip-next-0.13.1.orig/src/lzma/ASM/Makefile.am lrzip-next-0.13.1/src/lzma/ASM/Makefile.am +--- lrzip-next-0.13.1.orig/src/lzma/ASM/Makefile.am 2024-07-08 17:55:41.000000000 -0400 ++++ lrzip-next-0.13.1/src/lzma/ASM/Makefile.am 2024-07-15 01:54:16.727136060 -0400 +@@ -25,7 +25,7 @@ LzmaDecOptFILE := \ + + $(ASM_De).lo: $(SRC)/$(ASM_De).asm + $(ASM_PROG) $(ASM_OPT) -o $(ASM_De).o $(ABSSRC)/$(ASM_De).asm +- @echo -e "$(LzmaDecOptFILE)" > $(ASM_De).lo ++ @printf "$(LzmaDecOptFILE)" > $(ASM_De).lo + @$(MKDIR_P) .libs + @cp $(ASM_De).o .libs + +@@ -38,6 +38,6 @@ LzFindOptFILE := \ + + $(ASM_F).lo: $(SRC)/$(ASM_F).asm + $(ASM_PROG) $(ASM_OPT) -o $(ASM_F).o $(ABSSRC)/$(ASM_F).asm +- @echo -e "$(LzFindOptFILE)" > $(ASM_F).lo ++ @printf "$(LzFindOptFILE)" > $(ASM_F).lo + @$(MKDIR_P) .libs + @cp $(ASM_F).o .libs diff --git a/app-arch/lrzip-next/files/lrzip-next-0.13.1-use-acx_pthread-configure_ac.patch b/app-arch/lrzip-next/files/lrzip-next-0.13.1-use-acx_pthread-configure_ac.patch new file mode 100644 index 000000000000..ae0af555ac91 --- /dev/null +++ b/app-arch/lrzip-next/files/lrzip-next-0.13.1-use-acx_pthread-configure_ac.patch @@ -0,0 +1,33 @@ +diff -Naurp lrzip-next-0.12.6.orig/configure.ac lrzip-next-0.12.6/configure.ac +--- lrzip-next-0.12.6.orig/configure.ac 2024-01-27 08:42:15.000000000 -0500 ++++ lrzip-next-0.12.6/configure.ac 2024-03-11 16:27:53.972571412 -0400 +@@ -168,16 +168,19 @@ AC_CHECK_LIB(gcrypt, gcry_md_open, , + AC_CHECK_FUNCS(mmap strerror) + AC_CHECK_FUNCS(getopt_long) + +-AX_PTHREAD +-LIBS="$PTHREAD_LIBS $LIBS" +-AS_IF([test x"$debug" = xyes], +- CFLAGS="-g -Og -DDEBUG" +- CXXFLAGS="-g -Og -DDEBUG", +- CFLAGS="$CFLAGS" +- CXXFLAGS="$CXXFLAGS") +- +-CFLAGS+=" $PTHREAD_CFLAGS" +-CXXFLAGS+=" $PTHREAD_CFLAGS" ++ACX_PTHREAD([ ++ LIBS="$LIBS $PTHREAD_LIBS" ++ CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ++ CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" ++ CC="$PTHREAD_CC" ++ CXX="$PTHREAD_CXX" ++ AC_SUBST([LIBS]) ++ AC_SUBST([CFLAGS]) ++ AC_SUBST([CXXFLAGS]) ++ AC_SUBST([CC]) ++ AC_SUBST([CXX]) ++ ], ++ [AC_MSG_ERROR([POSIX threads support is required])]) + + ## test for ARM or other non x86 processor + ## must use -DNOJIT for compiling zpaq diff --git a/app-arch/lrzip-next/lrzip-next-0.12.6-r1.ebuild b/app-arch/lrzip-next/lrzip-next-0.13.1.ebuild index e218f7e3e4fe..de6ccb5d0dce 100644 --- a/app-arch/lrzip-next/lrzip-next-0.12.6-r1.ebuild +++ b/app-arch/lrzip-next/lrzip-next-0.13.1.ebuild @@ -7,12 +7,19 @@ 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" + +GH_BASE="https://github.com/pete4abw/lrzip-next" +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="${GH_BASE}.git" +else + SRC_URI="${GH_BASE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64" -IUSE="asm static-libs year2038" +IUSE="asm +largefile static-libs year2038" RDEPEND="app-arch/bzip2 app-arch/bzip3 @@ -28,6 +35,9 @@ BDEPEND="amd64? ( dev-lang/nasm )" src_prepare() { default + eapply "${FILESDIR}/${PN}-0.13.1-fix-lzma_asm_makefile-echo.patch" + eapply "${FILESDIR}/${PN}-0.13.1-use-acx_pthread-configure_ac.patch" + # 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 @@ -45,15 +55,15 @@ src_prepare() { src_configure() { local myconf=( - $(use_enable static-libs static) \ $(use_enable amd64 asm) + $(use_enable largefile) \ + $(use_enable static-libs static) ) - # 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 + # This configure switch only appears on glibc-based userlands. + # It enables 64-bit time_t to support timestamps greater than + # the year 2038 (D_TIME_BITS=64). + if use elibc_glibc; then myconf+=( $(use_enable year2038) ) fi @@ -63,5 +73,5 @@ src_configure() { src_install() { default - find "${ED}" -name '*.la' -delete || die + find "${ED}" -name '*.la' -type f -delete || die } diff --git a/app-arch/lrzip-next/lrzip-next-9999.ebuild b/app-arch/lrzip-next/lrzip-next-9999.ebuild new file mode 100644 index 000000000000..0de353974a2c --- /dev/null +++ b/app-arch/lrzip-next/lrzip-next-9999.ebuild @@ -0,0 +1,77 @@ +# 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" + +GH_BASE="https://github.com/pete4abw/lrzip-next" +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="${GH_BASE}.git" +else + SRC_URI="${GH_BASE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="asm +largefile 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 + + eapply "${FILESDIR}/${PN}-0.13.1-fix-lzma_asm_makefile-echo.patch" + eapply "${FILESDIR}/${PN}-0.13.1-use-acx_pthread-configure_ac.patch" + + # 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 amd64 asm) + $(use_enable largefile) \ + $(use_enable static-libs static) + ) + + # This configure switch only appears for glibc-based userlands. + # It enables 64-bit time_t to support timestamps greater than + # the year 2038 (D_TIME_BITS=64). + if use elibc_glibc; then + myconf+=( $(use_enable year2038) ) + fi + + econf "${myconf[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -type f -delete || die +} diff --git a/app-arch/lrzip-next/metadata.xml b/app-arch/lrzip-next/metadata.xml index d0dea613ffd3..2abeb3d4dcf5 100644 --- a/app-arch/lrzip-next/metadata.xml +++ b/app-arch/lrzip-next/metadata.xml @@ -17,6 +17,7 @@ <remote-id type="github">pete4abw/lrzip-next</remote-id> </upstream> <use> - <flag name="year2038">Enables support for timestamps after the year 2038</flag> + <flag name="largefile">Enables support for large files</flag> + <flag name="year2038">Enables support for 64-bit 'time_t' (sets D_TIME_BITS=64; glibc only)</flag> </use> </pkgmetadata> |