diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-10-05 01:14:57 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-10-05 01:14:57 +0200 |
commit | 6b8816922a25a1a88562460ab964d45a34fe448d (patch) | |
tree | c58c426057c3edf6e17b3e107370dee7fa620230 /dev-libs/liblognorm/liblognorm-2.0.4.ebuild | |
parent | dev-libs/botan: x86 stable (bug #632104) (diff) | |
download | gentoo-6b8816922a25a1a88562460ab964d45a34fe448d.tar.gz gentoo-6b8816922a25a1a88562460ab964d45a34fe448d.tar.bz2 gentoo-6b8816922a25a1a88562460ab964d45a34fe448d.zip |
dev-libs/liblognorm: Bump to v2.0.4
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Diffstat (limited to 'dev-libs/liblognorm/liblognorm-2.0.4.ebuild')
-rw-r--r-- | dev-libs/liblognorm/liblognorm-2.0.4.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-libs/liblognorm/liblognorm-2.0.4.ebuild b/dev-libs/liblognorm/liblognorm-2.0.4.ebuild new file mode 100644 index 000000000000..35c8f1f974c0 --- /dev/null +++ b/dev-libs/liblognorm/liblognorm-2.0.4.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="Fast samples-based log normalization library" +HOMEPAGE="http://www.liblognorm.com" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git" + + inherit git-r3 +else + SRC_URI="http://www.liblognorm.com/files/download/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86 ~amd64-linux" +fi + +LICENSE="LGPL-2.1 Apache-2.0" +SLOT="0/5.1.0" +IUSE="debug doc static-libs test" + +RDEPEND=" + >=dev-libs/libestr-0.1.3 + >=dev-libs/libfastjson-0.99.2:= +" + +DEPEND=" + ${RDEPEND} + >=sys-devel/autoconf-archive-2015.02.04 + virtual/pkgconfig + doc? ( >=dev-python/sphinx-1.2.2 ) +" + +DOCS=( ChangeLog ) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + # regexp disabled due to https://github.com/rsyslog/liblognorm/issues/143 + local myeconfargs=( + --enable-compile-warnings=yes + --disable-Werror + $(use_enable doc docs) + $(use_enable test testbench) + $(use_enable debug) + $(use_enable static-libs static) + --disable-regexp + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + # When adding new tests via patches we have to make them executable + einfo "Adjusting permissions of test scripts ..." + find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \ + die "Failed to adjust test scripts permission" + + emake --jobs 1 check +} + +src_install() { + default + + find "${ED}"usr/lib* -name '*.la' -delete || die +} |