diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-arch/lz5/lz5-2.0.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-arch/lz5/lz5-2.0.ebuild')
-rw-r--r-- | app-arch/lz5/lz5-2.0.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app-arch/lz5/lz5-2.0.ebuild b/app-arch/lz5/lz5-2.0.ebuild new file mode 100644 index 000000000000..1e20502cc3bb --- /dev/null +++ b/app-arch/lz5/lz5-2.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="An efficient compressor with very fast decompression" +HOMEPAGE="https://github.com/inikep/lz5" +SRC_URI="https://github.com/inikep/lz5/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 BSD-2" +SLOT="0/2" +KEYWORDS="~amd64" +IUSE="static-libs" + +src_prepare() { + default + sed -i -e 's/install: lz5$(EXT)/install:/' programs/Makefile || die + sed -i -e 's/install: lib liblz5.pc/install:/' lib/Makefile || die +} + +src_compile() { + emake -Clib CC="$(tc-getCC)" lib liblz5.pc + emake -Cprograms CC="$(tc-getCC)" lz5 +} + +src_install(){ + emake install DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" + if ! use static-libs; then + rm "${D}"/usr/$(get_libdir)/liblz5.a || die + fi +} |