commit 92f139e99671c1e3400b3a10146fdad4f0825f95
parent 8b2c29fee3ee2878f4ddb24c3ef4796d797b92f9
Author: parazyd <parazyd@dyne.org>
Date: Thu, 6 Aug 2020 14:42:13 +0200
app-arch/unarr: Add 9999.
Diffstat:
5 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/app-arch/unarr/files/rar-get-name.patch b/app-arch/unarr/files/rar-get-name.patch
@@ -0,0 +1,13 @@
+diff --git a/rar/rar.c b/rar/rar.c
+index 40cafcf..edbfeaa 100644
+--- a/rar/rar.c
++++ b/rar/rar.c
+@@ -62,7 +62,7 @@ static bool rar_parse_entry(ar_archive *ar, off64_t offset)
+ warn("Encrypted entries will fail to uncompress");
+ if ((header.flags & LHD_DIRECTORY) == LHD_DIRECTORY) {
+ if (header.datasize == 0) {
+- log("Skipping directory entry \"%s\"", rar_get_name(ar));
++ /* log("Skipping directory entry \"%s\"", rar_get_name(ar)); */
+ break;
+ }
+ warn("Can't skip directory entries containing data");
diff --git a/app-arch/unarr/files/tar-get-name.patch b/app-arch/unarr/files/tar-get-name.patch
@@ -0,0 +1,13 @@
+diff --git a/tar/tar.c b/tar/tar.c
+index fb81fc8..68adef7 100644
+--- a/tar/tar.c
++++ b/tar/tar.c
+@@ -40,7 +40,7 @@ static bool tar_parse_entry(ar_archive *ar, off64_t offset)
+ case TYPE_FILE_OLD:
+ return true;
+ case TYPE_DIRECTORY:
+- log("Skipping directory entry \"%s\"", tar_get_name(ar));
++ /* log("Skipping directory entry \"%s\"", tar_get_name(ar)); */
+ tar->last_seen_dir = ar->entry_offset;
+ return tar_parse_entry(ar, ar->entry_offset_next);
+ case TYPE_PAX_GLOBAL:
diff --git a/app-arch/unarr/files/zip-get-name.patch b/app-arch/unarr/files/zip-get-name.patch
@@ -0,0 +1,13 @@
+diff --git a/zip/zip.c b/zip/zip.c
+index 5c2b291..f6b4ab9 100644
+--- a/zip/zip.c
++++ b/zip/zip.c
+@@ -106,7 +106,7 @@ static bool zip_parse_entry(ar_archive *ar, off64_t offset)
+ zip_clear_uncompress(&zip->uncomp);
+
+ if (entry.datasize == 0 && ((entry.version >> 8) == 0 || (entry.version >> 8) == 3) && (entry.attr_external & 0x40000010)) {
+- log("Skipping directory entry \"%s\"", zip_get_name(ar));
++ /* log("Skipping directory entry \"%s\"", zip_get_name(ar)); */
+ return zip_parse_entry(ar, ar->entry_offset_next);
+ }
+
diff --git a/app-arch/unarr/metadata.xml b/app-arch/unarr/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>parazyd@dyne.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-arch/unarr/unarr-9999.ebuild b/app-arch/unarr/unarr-9999.ebuild
@@ -0,0 +1,25 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit git-r3 cmake
+
+DESCRIPTION="A decompression library for rar, tar and zip archives"
+HOMEPAGE="https://github.com/selmf/unarr"
+EGIT_REPO_URI="https://github.com/selmf/unarr"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+PATCHES=(
+ ${FILESDIR}/rar-get-name.patch
+ ${FILESDIR}/tar-get-name.patch
+ ${FILESDIR}/zip-get-name.patch
+)