public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/lz4/
Date: Tue,  3 Jan 2017 17:30:08 +0000 (UTC)	[thread overview]
Message-ID: <1483464598.ed6a2132e43a7d9c00b1bbe6b9a14edc6a0c06f0.mgorny@gentoo> (raw)

commit:     ed6a2132e43a7d9c00b1bbe6b9a14edc6a0c06f0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  3 17:13:14 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jan  3 17:29:58 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed6a2132

app-arch/lz4: update -9999, switch to CMake

Update the URLs in the live ebuild and switch it to use the CMake build
system. It is free of all fancy things we had to hack around in
Makefiles, and links all executables to the shared library. It lacks
tests but they were not very useful anyway.

 app-arch/lz4/lz4-9999.ebuild | 58 ++++++++++++--------------------------------
 1 file changed, 15 insertions(+), 43 deletions(-)

diff --git a/app-arch/lz4/lz4-9999.ebuild b/app-arch/lz4/lz4-9999.ebuild
index 4ed5767..3e59139 100644
--- a/app-arch/lz4/lz4-9999.ebuild
+++ b/app-arch/lz4/lz4-9999.ebuild
@@ -2,63 +2,35 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit multilib multilib-minimal toolchain-funcs
+inherit cmake-multilib
 
 if [[ ${PV} == 9999 ]]; then
 	inherit git-r3
-	EGIT_REPO_URI="https://github.com/Cyan4973/lz4.git"
+	EGIT_REPO_URI="https://github.com/lz4/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"
+	SRC_URI="https://github.com/Cyan4973/lz4/archive/v${PV}.tar.gz -> ${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"
+HOMEPAGE="https://github.com/lz4/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.
+# https://abi-laboratory.pro/tracker/timeline/lz4/
+# note: abi-tracker is most likely wrong about 1.7.3 changing ABI,
+# the maintainer is looking into fixing that
 SLOT="0/r131"
-IUSE="static-libs test valgrind"
+IUSE="static-libs"
 
-DEPEND="test? ( valgrind? ( dev-util/valgrind ) )"
+CMAKE_USE_DIR=${S}/contrib/cmake_unofficial
 
-src_prepare() {
-	if ! use valgrind; then
-		sed -i -e '/^test:/s|test-mem||g' programs/Makefile || die
-	fi
-	multilib_copy_sources
-}
-
-lmake() {
-	emake \
-		BUILD_STATIC=$(usex static-libs) \
-		PREFIX="${EPREFIX}/usr" \
-		LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
-		"$@"
-}
-
-multilib_src_compile() {
-	tc-export CC AR
-	# we must not use the 'all' target since it builds test programs
-	# & extra -m32 executables
-	lmake -C lib liblz4 liblz4.pc
-	lmake -C programs lz4 lz4c
-	# work around lack of proper target dependencies
-	touch lib/liblz4
-}
-
-multilib_src_test() {
-	lmake -j1 test
-}
+multilib_src_configure() {
+	local mycmakeargs=(
+		-DBUILD_STATIC_LIBS=$(usex static-libs)
+	)
 
-multilib_src_install() {
-	lmake install DESTDIR="${D}"
+	cmake-utils_src_configure
 }


             reply	other threads:[~2017-01-03 17:30 UTC|newest]

Thread overview: 116+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-03 17:30 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-18 11:23 [gentoo-commits] repo/gentoo:master commit in: app-arch/lz4/ Michał Górny
2024-08-16 13:58 Sam James
2024-08-10 15:41 Michał Górny
2024-08-10  8:35 Michał Górny
2024-08-10  8:17 Michał Górny
2024-08-10  6:43 Michał Górny
2024-07-31  8:17 Fabian Groffen
2024-07-22  7:33 Michał Górny
2024-07-22  7:33 Michał Górny
2022-10-09  8:53 Agostino Sarubbo
2022-10-09  0:10 Sam James
2022-10-08 19:28 Sam James
2022-10-08 19:24 Arthur Zamarin
2022-10-08 19:24 Arthur Zamarin
2022-10-08 19:24 Arthur Zamarin
2022-10-08 16:03 Arthur Zamarin
2022-08-30  5:45 Michał Górny
2021-01-06 12:52 Fabian Groffen
2020-12-20 20:34 Michał Górny
2020-12-20 20:34 Michał Górny
2020-12-20 16:40 Thomas Deutschmann
2020-12-18 20:49 Sergei Trofimovich
2020-12-18 18:45 Sam James
2020-12-18 14:22 Sam James
2020-12-18 10:25 Sergei Trofimovich
2020-12-17  4:56 Sam James
2020-12-16 19:50 Sam James
2020-11-16  8:22 Michał Górny
2020-11-16  8:22 Michał Górny
2020-08-31 13:39 Mikle Kolyada
2020-06-08  8:56 Michał Górny
2019-12-26 10:53 Michał Górny
2019-12-26 10:53 Michał Górny
2019-09-26 20:06 Mikle Kolyada
2019-09-26 20:06 Mikle Kolyada
2019-09-26 20:06 Mikle Kolyada
2019-09-21  5:26 Matt Turner
2019-09-20  6:39 Sergei Trofimovich
2019-09-09 16:15 Aaron Bauman
2019-09-09  6:02 Agostino Sarubbo
2019-09-09  5:54 Agostino Sarubbo
2019-09-08 19:15 Thomas Deutschmann
2019-09-08 18:30 Sergei Trofimovich
2019-09-08 18:26 Sergei Trofimovich
2019-09-08 18:21 Sergei Trofimovich
2019-09-08 10:22 Agostino Sarubbo
2019-08-21  5:41 Michał Górny
2019-08-16 14:35 Guilherme Amadio
2019-08-16 14:35 Guilherme Amadio
2019-08-16 14:35 Guilherme Amadio
2019-05-11 12:38 Michał Górny
2019-05-06 18:04 Tobias Klausmann
2019-04-12  3:22 Aaron Bauman
2019-04-01 17:21 Thomas Deutschmann
2019-03-16 22:55 Sergei Trofimovich
2019-03-16 21:57 Sergei Trofimovich
2019-03-16 16:56 Mikle Kolyada
2019-03-16 16:56 Mikle Kolyada
2019-03-16 16:56 Mikle Kolyada
2019-03-16 14:06 Mikle Kolyada
2019-03-12 17:04 Mikle Kolyada
2019-03-11 22:42 Sergei Trofimovich
2019-03-10 22:17 Sergei Trofimovich
2019-03-10 20:35 Sergei Trofimovich
2018-12-27 18:48 Fabian Groffen
2018-10-19  9:57 Michał Górny
2018-10-12 16:18 Mikle Kolyada
2018-10-10 16:26 Markus Meier
2018-09-29 21:07 Mikle Kolyada
2018-09-14 12:17 Tobias Klausmann
2018-09-09  1:12 Thomas Deutschmann
2018-09-08 12:53 Mart Raudsepp
2018-09-07 23:03 Sergei Trofimovich
2018-09-07 22:57 Sergei Trofimovich
2018-09-07 22:54 Sergei Trofimovich
2018-09-07 22:43 Sergei Trofimovich
2018-09-07 19:04 Sergei Trofimovich
2018-09-07 13:50 Mikle Kolyada
2018-06-07 13:23 Mikle Kolyada
2018-05-22 20:40 Michał Górny
2018-04-21 14:50 Mart Raudsepp
2018-03-23  4:48 Markus Meier
2018-03-03 13:12 Tobias Klausmann
2018-03-01 15:09 Michał Górny
2018-03-01 15:09 Michał Górny
2018-02-01 20:37 Thomas Deutschmann
2018-01-05 19:34 Mikle Kolyada
2018-01-02 19:54 Sergei Trofimovich
2018-01-02  8:14 Sergei Trofimovich
2017-09-25 19:04 Fabian Groffen
2017-09-04 17:21 Michał Górny
2017-06-25  7:25 Markus Meier
2017-06-21 12:17 Agostino Sarubbo
2017-06-20 14:56 Tobias Klausmann
2017-06-17 17:24 Agostino Sarubbo
2017-06-17 16:10 Sergei Trofimovich
2017-06-17 15:36 Agostino Sarubbo
2017-02-05 10:12 Michał Górny
2017-01-03 17:30 Michał Górny
2016-11-10  9:46 Lars Wendler
2016-09-29 13:28 Agostino Sarubbo
2016-09-29 12:35 Agostino Sarubbo
2016-09-29  9:35 Agostino Sarubbo
2016-07-29 14:46 Michał Górny
2016-07-28 18:18 Michał Górny
2016-07-28 14:13 Michał Górny
2016-07-27 20:24 Markus Meier
2016-07-18  8:50 Agostino Sarubbo
2016-07-18  8:50 Agostino Sarubbo
2016-07-17 19:37 Jeroen Roovers
2016-07-17 11:52 Tobias Klausmann
2016-03-02 16:05 Patrick Lauer
2016-03-02  9:07 Patrick Lauer
2015-11-03 21:55 Michał Górny
2015-09-01 18:37 Tobias Klausmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1483464598.ed6a2132e43a7d9c00b1bbe6b9a14edc6a0c06f0.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox