Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/lz4/
Date: Tue, 03 Jan 2017 17:30:12
Message-Id: 1483464598.ed6a2132e43a7d9c00b1bbe6b9a14edc6a0c06f0.mgorny@gentoo
1 commit: ed6a2132e43a7d9c00b1bbe6b9a14edc6a0c06f0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 17:13:14 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 17:29:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed6a2132
7
8 app-arch/lz4: update -9999, switch to CMake
9
10 Update the URLs in the live ebuild and switch it to use the CMake build
11 system. It is free of all fancy things we had to hack around in
12 Makefiles, and links all executables to the shared library. It lacks
13 tests but they were not very useful anyway.
14
15 app-arch/lz4/lz4-9999.ebuild | 58 ++++++++++++--------------------------------
16 1 file changed, 15 insertions(+), 43 deletions(-)
17
18 diff --git a/app-arch/lz4/lz4-9999.ebuild b/app-arch/lz4/lz4-9999.ebuild
19 index 4ed5767..3e59139 100644
20 --- a/app-arch/lz4/lz4-9999.ebuild
21 +++ b/app-arch/lz4/lz4-9999.ebuild
22 @@ -2,63 +2,35 @@
23 # Distributed under the terms of the GNU General Public License v2
24 # $Id$
25
26 -EAPI=5
27 +EAPI=6
28
29 -inherit multilib multilib-minimal toolchain-funcs
30 +inherit cmake-multilib
31
32 if [[ ${PV} == 9999 ]]; then
33 inherit git-r3
34 - EGIT_REPO_URI="https://github.com/Cyan4973/lz4.git"
35 + EGIT_REPO_URI="https://github.com/lz4/lz4.git"
36 EGIT_BRANCH=dev
37 else
38 - MY_PV="r${PV##0_p}"
39 - MY_P="${PN}-${MY_PV}"
40 - SRC_URI="https://github.com/Cyan4973/lz4/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
41 + SRC_URI="https://github.com/Cyan4973/lz4/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
43 - S="${WORKDIR}/${MY_P}"
44 fi
45
46 DESCRIPTION="Extremely Fast Compression algorithm"
47 -HOMEPAGE="https://github.com/Cyan4973/lz4"
48 +HOMEPAGE="https://github.com/lz4/lz4"
49
50 LICENSE="BSD-2 GPL-2"
51 -# Upstream has trouble keeping ABI stable, so please test new versions
52 -# with abi-compliance-checker and update the subslot every time ABI
53 -# changes. This is the least we can do to keep things sane.
54 +# https://abi-laboratory.pro/tracker/timeline/lz4/
55 +# note: abi-tracker is most likely wrong about 1.7.3 changing ABI,
56 +# the maintainer is looking into fixing that
57 SLOT="0/r131"
58 -IUSE="static-libs test valgrind"
59 +IUSE="static-libs"
60
61 -DEPEND="test? ( valgrind? ( dev-util/valgrind ) )"
62 +CMAKE_USE_DIR=${S}/contrib/cmake_unofficial
63
64 -src_prepare() {
65 - if ! use valgrind; then
66 - sed -i -e '/^test:/s|test-mem||g' programs/Makefile || die
67 - fi
68 - multilib_copy_sources
69 -}
70 -
71 -lmake() {
72 - emake \
73 - BUILD_STATIC=$(usex static-libs) \
74 - PREFIX="${EPREFIX}/usr" \
75 - LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
76 - "$@"
77 -}
78 -
79 -multilib_src_compile() {
80 - tc-export CC AR
81 - # we must not use the 'all' target since it builds test programs
82 - # & extra -m32 executables
83 - lmake -C lib liblz4 liblz4.pc
84 - lmake -C programs lz4 lz4c
85 - # work around lack of proper target dependencies
86 - touch lib/liblz4
87 -}
88 -
89 -multilib_src_test() {
90 - lmake -j1 test
91 -}
92 +multilib_src_configure() {
93 + local mycmakeargs=(
94 + -DBUILD_STATIC_LIBS=$(usex static-libs)
95 + )
96
97 -multilib_src_install() {
98 - lmake install DESTDIR="${D}"
99 + cmake-utils_src_configure
100 }