commit:     f7b7df2da789550f34d886c37a6b679b073cd68d
Author:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Tue Jan 22 11:56:27 2019 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Tue Jan 22 11:56:27 2019 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=f7b7df2d

app-arch/libdeflate: new package

Add highly CPU optimized implementation of deflate/zlib/gzip

The package is highly preferred due to its speed by:
sci-biology/io_lib-1.14.11
sci-libs/htslib-1.9
and maybe some more

 * Searching for libdeflate ...
 * Contents of app-arch/libdeflate-1.2:
/usr
/usr/bin
/usr/bin/libdeflate-gunzip
/usr/bin/libdeflate-gzip
/usr/include
/usr/include/libdeflate.h
/usr/lib
/usr/lib/libdeflate.so -> libdeflate.so.0
/usr/lib/libdeflate.so.0
/usr/share
/usr/share/doc
/usr/share/doc/libdeflate-1.2
/usr/share/doc/libdeflate-1.2/NEWS.bz2
/usr/share/doc/libdeflate-1.2/README.md.bz2

Seems the libdeflate-gunzip and libdeflate-gzip have statically
linked in /usr/lib/libdeflate.a (which is deleted but later
in src_install() unless USE=static-libs . Probably something to
inspected but more experienced devs.

I am not interested in maintaining this package in Gentoo
(I would be happy if somebody from other herds take this over).

Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Martin Mokrejs <mmokrejs <AT> fold.natur.cuni.cz>

 app-arch/libdeflate/libdeflate-1.2.ebuild | 29 +++++++++++++++++++++++++++++
 app-arch/libdeflate/metadata.xml          | 12 ++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/app-arch/libdeflate/libdeflate-1.2.ebuild 
b/app-arch/libdeflate/libdeflate-1.2.ebuild
new file mode 100644
index 000000000..dd65e7aef
--- /dev/null
+++ b/app-arch/libdeflate/libdeflate-1.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Heavily optimized DEFLATE/zlib/gzip (de)compression"
+HOMEPAGE="https://github.com/ebiggers/libdeflate";
+SRC_URI="https://github.com/ebiggers/libdeflate/archive/v1.2.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_prepare(){
+       sed -e 's/ -O2 / /' -i Makefile || die
+       default
+}
+
+src_install() {
+       default
+       if ! use static-libs; then
+               find "${ED}" -name '*.a' -delete || die
+       fi
+}

diff --git a/app-arch/libdeflate/metadata.xml b/app-arch/libdeflate/metadata.xml
new file mode 100644
index 000000000..138cb7705
--- /dev/null
+++ b/app-arch/libdeflate/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>mmokr...@fold.natur.cuni.cz</email>
+               <name>Martin Mokrejs</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>sci-biol...@gentoo.org</email>
+               <name>Gentoo Biology Project</name>
+       </maintainer>
+</pkgmetadata>

Reply via email to