diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2016-09-18 00:49:37 +0100 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2016-09-28 21:53:50 +0200 |
commit | dc608389401eb74ed72d589560686cab52dbdbe2 (patch) | |
tree | 81e7734271ceb87d910e2b3abca0efe35cdce2e2 /dev-libs/libslz | |
parent | net-proxy/haproxy: Define haproxy_use() to condence emake arguments creation (diff) | |
download | gentoo-dc608389401eb74ed72d589560686cab52dbdbe2.tar.gz gentoo-dc608389401eb74ed72d589560686cab52dbdbe2.tar.bz2 gentoo-dc608389401eb74ed72d589560686cab52dbdbe2.zip |
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@gentoo.org>
Diffstat (limited to 'dev-libs/libslz')
-rw-r--r-- | dev-libs/libslz/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libslz/libslz-1.1.0.ebuild | 66 | ||||
-rw-r--r-- | dev-libs/libslz/metadata.xml | 16 |
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-libs/libslz/Manifest b/dev-libs/libslz/Manifest new file mode 100644 index 000000000000..cd688f136e01 --- /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 000000000000..87670565a59f --- /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 000000000000..163bf2366edd --- /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>bertrand@jacquin.bzh</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> |