diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-04-16 10:00:51 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-04-16 10:02:02 +0200 |
commit | af46dcddd9c936dce1ec3493bdbd26e5599b76e4 (patch) | |
tree | f25d1f9b10700f3e47089a7a098e25555e483381 /dev-libs/lzo/lzo-2.10.ebuild | |
parent | dev-perl/App-Nopaste: Bump to version 1.9.0 (diff) | |
download | gentoo-af46dcddd9c936dce1ec3493bdbd26e5599b76e4.tar.gz gentoo-af46dcddd9c936dce1ec3493bdbd26e5599b76e4.tar.bz2 gentoo-af46dcddd9c936dce1ec3493bdbd26e5599b76e4.zip |
dev-libs/lzo: Bump to 2.10, simplify
Diffstat (limited to 'dev-libs/lzo/lzo-2.10.ebuild')
-rw-r--r-- | dev-libs/lzo/lzo-2.10.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/lzo/lzo-2.10.ebuild b/dev-libs/lzo/lzo-2.10.ebuild new file mode 100644 index 000000000000..a8dd8d64aef4 --- /dev/null +++ b/dev-libs/lzo/lzo-2.10.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib-minimal toolchain-funcs + +DESCRIPTION="An extremely fast compression and decompression library" +HOMEPAGE="http://www.oberhumer.com/opensource/lzo/" +SRC_URI="http://www.oberhumer.com/opensource/lzo/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples static-libs" + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + econf \ + --enable-shared \ + $(use_enable static-libs static) +} + +multilib_src_install() { + emake DESTDIR="${D}" install + gen_usr_ldscript -a lzo2 +} + +multilib_src_install_all() { + rm "${ED}"/usr/share/doc/${PF}/COPYING || die + + if use examples; then + docinto examples + dodoc examples/*.{c,h} + fi + + find "${ED}" -name '*.la' -delete || die +} |