commit:     dc608389401eb74ed72d589560686cab52dbdbe2
Author:     Bertrand Jacquin <bertrand <AT> jacquin <DOT> bzh>
AuthorDate: Sat Sep 17 23:49:37 2016 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Wed Sep 28 19:53:50 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc608389

dev-libs/libslz: stateless, zlib-compatible, and very fast compression library

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2293

Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org>

 dev-libs/libslz/Manifest            |  1 +
 dev-libs/libslz/libslz-1.1.0.ebuild | 66 +++++++++++++++++++++++++++++++++++++
 dev-libs/libslz/metadata.xml        | 16 +++++++++
 3 files changed, 83 insertions(+)

diff --git a/dev-libs/libslz/Manifest b/dev-libs/libslz/Manifest
new file mode 100644
index 00000000..cd688f1
--- /dev/null
+++ b/dev-libs/libslz/Manifest
@@ -0,0 +1 @@
+DIST libslz-1.1.0.tar.gz 260005 SHA256 
93073cbb68b3b77fb4289c3f5550ff466b4e10679fb3ac12bb7d5fe157c42498 SHA512 
636792797cd1a737f1a5b7539f6a585c293606a8fb689b6d5f1a3ca45dcecd536ff3b6678311c4f3f2c1d2201b5008210623c92a8eab7e6199f8c12a9d0e7cf7
 WHIRLPOOL 
671e76748d2702aaff877bdde7debac48e805a2becf2c7c7494c12805dd8db4f9d122ea47ad39475e2a252617d7d21578256dcf0d9f3723e6e66c2e4ad9f71de

diff --git a/dev-libs/libslz/libslz-1.1.0.ebuild 
b/dev-libs/libslz/libslz-1.1.0.ebuild
new file mode 100644
index 00000000..8767056
--- /dev/null
+++ b/dev-libs/libslz/libslz-1.1.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit toolchain-funcs multilib-minimal
+
+DESCRIPTION="stateless, zlib-compatible, and very fast compression library"
+HOMEPAGE="http://1wt.eu/projects/libslz";
+SRC_URI="http://git.1wt.eu/web?p=${PN}.git;a=snapshot;h=v${PV};sf=tgz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/1"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="static-libs tools"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+       default
+
+       multilib_copy_sources
+}
+
+multilib_src_compile() {
+       local -a opts=(
+               CC="$(tc-getCC)" \
+               OPT_CFLAGS="${CFLAGS}" \
+               USR_LFLAGS="${LDFLAGS}" \
+               shared \
+               $(usex static-libs static '')
+       )
+
+       if multilib_is_native_abi ; then
+               opts+=(
+                       $(usex tools tools '')
+               )
+       fi
+
+       emake "${opts[@]}"
+}
+
+multilib_src_install() {
+       local -a opts=(
+               STRIP=":" \
+               DESTDIR="${ED}" \
+               PREFIX="${EPREFIX}/usr" \
+               LIBDIR="$(get_libdir)" \
+               install-headers
+               install-shared \
+               $(usex static-libs install-static '')
+       )
+
+       if multilib_is_native_abi ; then
+               einstalldocs
+
+               opts+=(
+                       $(usex tools install-tools '')
+               )
+       fi
+
+       emake "${opts[@]}"
+}

diff --git a/dev-libs/libslz/metadata.xml b/dev-libs/libslz/metadata.xml
new file mode 100644
index 00000000..163bf23
--- /dev/null
+++ b/dev-libs/libslz/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Bertrand Jacquin</name>
+       </maintainer>
+       <longdescription>
+SLZ is a fast and memory-less stream compressor which produces an output that 
can be decompressed with zlib or gzip. It does not implement decompression at 
all, zlib is perfectly fine for this.
+
+The purpose is to use SLZ in situations where a zlib-compatible stream is 
needed and zlib's resource usage would be too high while the compression ratio 
is not critical. The typical use case is in HTTP servers and gateways which 
have to compress many streams in parallel with little CPU resources to assign 
to this task, and without having to thottle the compression ratio due to the 
memory usage. In such an environment, the server's memory usage can easily be 
divided by 10 and the CPU usage by 3
+       </longdescription>
+       <use>
+               <flag name="tools">Install additional tools (zenc, zdec)</flag>
+       </use>
+</pkgmetadata>

Reply via email to