diff options
author | Alexander Tsoy <alexander@tsoy.me> | 2016-07-25 22:21:35 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-07-28 20:18:37 +0200 |
commit | 7d04fd796da60ab39399dbd479cfcf9cf72723b0 (patch) | |
tree | bbb999de0e22abf842ff22bbb546d323a92f555a /app-arch | |
parent | dev-libs/libical: new version v2.0.0 with fix for bug 560572. (diff) | |
download | gentoo-7d04fd796da60ab39399dbd479cfcf9cf72723b0.tar.gz gentoo-7d04fd796da60ab39399dbd479cfcf9cf72723b0.tar.bz2 gentoo-7d04fd796da60ab39399dbd479cfcf9cf72723b0.zip |
app-arch/lz4: fix paths in .pc and install_name (for Darwin)
Bug: https://bugs.gentoo.org/587892
Closes: https://github.com/gentoo/gentoo/pull/1967
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/lz4/lz4-0_p131-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-arch/lz4/lz4-0_p131-r1.ebuild b/app-arch/lz4/lz4-0_p131-r1.ebuild new file mode 100644 index 000000000000..8e7767efc866 --- /dev/null +++ b/app-arch/lz4/lz4-0_p131-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib multilib-minimal toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Cyan4973/lz4.git" + EGIT_BRANCH=dev +else + MY_PV="r${PV##0_p}" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://github.com/Cyan4973/lz4/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" + S="${WORKDIR}/${MY_P}" +fi + +DESCRIPTION="Extremely Fast Compression algorithm" +HOMEPAGE="https://github.com/Cyan4973/lz4" + +LICENSE="BSD-2 GPL-2" +# Upstream has trouble keeping ABI stable, so please test new versions +# with abi-compliance-checker and update the subslot every time ABI +# changes. This is the least we can do to keep things sane. +SLOT="0/r131" +IUSE="test valgrind" + +DEPEND="test? ( valgrind? ( dev-util/valgrind ) )" + +src_prepare() { + if ! use valgrind; then + sed -i -e '/^test:/s|test-mem||g' programs/Makefile || die + fi + multilib_copy_sources +} + +multilib_src_compile() { + tc-export CC AR + # we must not use the 'all' target since it builds test programs + # & extra -m32 executables + emake -C lib liblz4 liblz4.pc \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}"/usr/$(get_libdir) + emake -C programs lz4 lz4c + # work around lack of proper target dependencies + touch lib/liblz4 +} + +multilib_src_test() { + emake -j1 test +} + +multilib_src_install() { + emake install DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}"/usr/$(get_libdir) +} |