diff options
-rw-r--r-- | dev-libs/zlog/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/zlog/files/zlog_no_werr.patch | 11 | ||||
-rw-r--r-- | dev-libs/zlog/metadata.xml | 8 | ||||
-rw-r--r-- | dev-libs/zlog/zlog-1.2.12.ebuild | 32 |
4 files changed, 55 insertions, 0 deletions
diff --git a/dev-libs/zlog/Manifest b/dev-libs/zlog/Manifest new file mode 100644 index 000000000000..6e967a9c5b1d --- /dev/null +++ b/dev-libs/zlog/Manifest @@ -0,0 +1,4 @@ +AUX zlog_no_werr.patch 498 SHA256 c2fb673cfd264a4d386be9e7c753072dc85d2531842d6f89ec0bbe5f6f4807aa SHA512 a827b7927089016a012bba7d2012800687494c540df73ae6797162157d412019bbc3943fced8e2a1e4f29c5faf5c9a998406b75a335ccd8c2bebd21b14c29fd4 WHIRLPOOL bbdc94aadae88229c8333b612634223f524f0e5d8a833b4c4c312a5309883a7dc2a4fe49e96840883a1c74cff48cfa48cd78723fa0106a25481ebf5992bfce38 +DIST zlog-v1.2.12.tar.gz 120048 SHA256 9c6014a3f74d136c70255539beba11f30e1d3617d07ce7ea917b35f3e52bac20 SHA512 4e1d773f33f9202702bb5e80f4dcc6f8ab28480a8515ad8b9562ee68703c065c2f18113124535c7163e240013ad121a6ce311a0fc04ac6c32971509ec33615ec WHIRLPOOL 17a0ed7074c1339a24cc06d04f753121fba7fa0fb4abdd94688a105c8d83c5eed61bbd49f66a2214867d8535fa524350b2265ca613af045cd96bd4b8f37c492b +EBUILD zlog-1.2.12.ebuild 632 SHA256 09c4e4f1fd902bb11f776f028d7cc99bef6b82c8bc0b9b70a68ba0cfa4d886f0 SHA512 fd306803e73071e8f964ae2a57a9ab6cf7bada1bf55a1312592871b346b5bb88b432549a65f76c3ade06e44b4513c9b5c8ec6540b5ce22e0ec876c9459c6aa4f WHIRLPOOL 5395cd398f1d2a015797327dbc65763eb1cd15d356f539f47d25d3e12e15a1af2550eab31d7b65e2d8745f9ffe8fbdf69c8e5619e97f0f2e2399408746f5742d +MISC metadata.xml 257 SHA256 0ed5160adc3d550e07f1e48bb001ee4a2cbeea1519eb6957db02f33d39439fae SHA512 d72a7eabf114b09eaff9c39f5283eb6b882905e2bd5fc77868814862d7f0320c8a73bafcb94fa5f6f811c87edd417b7766361a4637cfd4dd67b0014049f49544 WHIRLPOOL 787707752a4c8bc93217f05ea717e7cab894ec2cbf4ddc6134fe3e32b98a6d0c0df8d584eb4014a45560b03de5b301ff935f986a8d990d047677ca276be13dc3 diff --git a/dev-libs/zlog/files/zlog_no_werr.patch b/dev-libs/zlog/files/zlog_no_werr.patch new file mode 100644 index 000000000000..6cb2e8708672 --- /dev/null +++ b/dev-libs/zlog/files/zlog_no_werr.patch @@ -0,0 +1,11 @@ +--- src/makefile.orig 2016-08-11 10:40:49.466873499 +0200 ++++ src/makefile 2016-08-11 10:40:59.626762850 +0200 +@@ -32,7 +32,7 @@ + # Fallback to gcc when $CC is not in $PATH. + CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc') + OPTIMIZATION?=-O2 +-WARNINGS=-Wall -Werror -Wstrict-prototypes -fwrapv ++WARNINGS=-Wall -Wstrict-prototypes -fwrapv + DEBUG?= -g -ggdb + REAL_CFLAGS=$(OPTIMIZATION) -fPIC -pthread $(CFLAGS) $(WARNINGS) $(DEBUG) + REAL_LDFLAGS=$(LDFLAGS) -pthread diff --git a/dev-libs/zlog/metadata.xml b/dev-libs/zlog/metadata.xml new file mode 100644 index 000000000000..cd7f284b9038 --- /dev/null +++ b/dev-libs/zlog/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>klausman@gentoo.org</email> + <name>Tobias Klausmann</name> + </maintainer> +</pkgmetadata> diff --git a/dev-libs/zlog/zlog-1.2.12.ebuild b/dev-libs/zlog/zlog-1.2.12.ebuild new file mode 100644 index 000000000000..fa7cbb431aee --- /dev/null +++ b/dev-libs/zlog/zlog-1.2.12.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils + +DESCRIPTION="A reliable, thread safe, clear-model, pure C logging library." +HOMEPAGE="http://hardysimpson.github.io/zlog/" +SRC_URI="https://github.com/HardySimpson/${PN}/archive/${PV}.tar.gz -> ${PN}-v${PV}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() { + default_src_prepare + epatch "${FILESDIR}/zlog_no_werr.patch" +} + +src_test () { + emake test || die "Tests failed." +} + +src_install() { + emake PREFIX="${D}/usr" install +} |