1 |
commit: 7d04fd796da60ab39399dbd479cfcf9cf72723b0 |
2 |
Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me> |
3 |
AuthorDate: Mon Jul 25 19:21:35 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 28 18:18:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d04fd79 |
7 |
|
8 |
app-arch/lz4: fix paths in .pc and install_name (for Darwin) |
9 |
|
10 |
Bug: https://bugs.gentoo.org/587892 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/1967 |
12 |
|
13 |
app-arch/lz4/lz4-0_p131-r1.ebuild | 60 +++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/app-arch/lz4/lz4-0_p131-r1.ebuild b/app-arch/lz4/lz4-0_p131-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..8e7767e |
19 |
--- /dev/null |
20 |
+++ b/app-arch/lz4/lz4-0_p131-r1.ebuild |
21 |
@@ -0,0 +1,60 @@ |
22 |
+# Copyright 1999-2016 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+inherit multilib multilib-minimal toolchain-funcs |
29 |
+ |
30 |
+if [[ ${PV} == 9999 ]]; then |
31 |
+ inherit git-r3 |
32 |
+ EGIT_REPO_URI="https://github.com/Cyan4973/lz4.git" |
33 |
+ EGIT_BRANCH=dev |
34 |
+else |
35 |
+ MY_PV="r${PV##0_p}" |
36 |
+ MY_P="${PN}-${MY_PV}" |
37 |
+ SRC_URI="https://github.com/Cyan4973/lz4/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" |
38 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
39 |
+ S="${WORKDIR}/${MY_P}" |
40 |
+fi |
41 |
+ |
42 |
+DESCRIPTION="Extremely Fast Compression algorithm" |
43 |
+HOMEPAGE="https://github.com/Cyan4973/lz4" |
44 |
+ |
45 |
+LICENSE="BSD-2 GPL-2" |
46 |
+# Upstream has trouble keeping ABI stable, so please test new versions |
47 |
+# with abi-compliance-checker and update the subslot every time ABI |
48 |
+# changes. This is the least we can do to keep things sane. |
49 |
+SLOT="0/r131" |
50 |
+IUSE="test valgrind" |
51 |
+ |
52 |
+DEPEND="test? ( valgrind? ( dev-util/valgrind ) )" |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ if ! use valgrind; then |
56 |
+ sed -i -e '/^test:/s|test-mem||g' programs/Makefile || die |
57 |
+ fi |
58 |
+ multilib_copy_sources |
59 |
+} |
60 |
+ |
61 |
+multilib_src_compile() { |
62 |
+ tc-export CC AR |
63 |
+ # we must not use the 'all' target since it builds test programs |
64 |
+ # & extra -m32 executables |
65 |
+ emake -C lib liblz4 liblz4.pc \ |
66 |
+ PREFIX="${EPREFIX}/usr" \ |
67 |
+ LIBDIR="${EPREFIX}"/usr/$(get_libdir) |
68 |
+ emake -C programs lz4 lz4c |
69 |
+ # work around lack of proper target dependencies |
70 |
+ touch lib/liblz4 |
71 |
+} |
72 |
+ |
73 |
+multilib_src_test() { |
74 |
+ emake -j1 test |
75 |
+} |
76 |
+ |
77 |
+multilib_src_install() { |
78 |
+ emake install DESTDIR="${D}" \ |
79 |
+ PREFIX="${EPREFIX}/usr" \ |
80 |
+ LIBDIR="${EPREFIX}"/usr/$(get_libdir) |
81 |
+} |