From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/
Date: Mon, 28 Jan 2019 21:44:11 +0000 (UTC) [thread overview]
Message-ID: <1548711833.589994af5895f33871c58b02ceceaef139907e53.slyfox@gentoo> (raw)
commit: 589994af5895f33871c58b02ceceaef139907e53
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 28 21:29:59 2019 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Jan 28 21:43:53 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=589994af
sys-devel/sparse: install into /usr, not $HOME, bug #676626
Daniel noticed sparse-9999 installs into /tmp due to
upstream switch to 'PREFIX ?= $(HOME)'.
Cleaned up live ebuild to stop mangling MAKEOPTS.
Reported-by: Daniel M. Weeks
Closes: https://bugs.gentoo.org/676626
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
sys-devel/sparse/sparse-9999.ebuild | 44 +++++++++++++++++++++++++++----------
1 file changed, 33 insertions(+), 11 deletions(-)
diff --git a/sys-devel/sparse/sparse-9999.ebuild b/sys-devel/sparse/sparse-9999.ebuild
index 8850a866452..41c95d2e55f 100644
--- a/sys-devel/sparse/sparse-9999.ebuild
+++ b/sys-devel/sparse/sparse-9999.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit eutils multilib toolchain-funcs
@@ -28,14 +28,36 @@ DEPEND="${RDEPEND}
gtk? ( virtual/pkgconfig )
xml? ( virtual/pkgconfig )"
-src_prepare() {
- tc-export AR CC PKG_CONFIG
- sed -i \
- -e '/^PREFIX=/s:=.*:=/usr:' \
- -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \
- -e '/^COMMON_CFLAGS =/{s:=:= $(CPPFLAGS):;s:-O2 -finline-functions -fno-strict-aliasing -g:-fno-strict-aliasing:}' \
- -e "s:pkg-config:${PKG_CONFIG}:" \
- Makefile || die
- export MAKEOPTS+=" V=1 AR=${AR} CC=${CC} HAVE_GTK2=$(usex gtk) HAVE_LLVM=$(usex llvm) HAVE_LIBXML=$(usex xml)"
- default
+_emake() {
+ # Makefile does not allow for an easy override of flags.
+ # Collect them here and override default phases.
+ emake \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ CFLAGS="${CFLAGS}" \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+ \
+ HAVE_GTK=$(usex gtk) \
+ HAVE_LLVM=$(usex llvm) \
+ HAVE_LIBXML=$(usex xml) \
+ \
+ V=1 \
+ PREFIX="${EPREFIX}/usr" \
+ \
+ "$@"
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+
+ dodoc FAQ README
}
next reply other threads:[~2019-01-28 21:44 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-28 21:44 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-09-23 19:29 [gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/ Arthur Zamarin
2025-06-09 3:13 Sam James
2022-06-16 11:43 Sam James
2022-06-16 7:42 Michał Górny
2022-04-15 2:00 Matt Turner
2021-11-08 11:25 Michał Górny
2021-09-19 3:25 Sam James
2021-09-19 2:24 Sam James
2021-09-19 2:24 Sam James
2021-04-16 10:25 David Seifert
2021-02-26 10:25 Sergei Trofimovich
2021-02-25 9:18 Sergei Trofimovich
2021-02-15 0:32 Sam James
2020-12-18 9:53 Sergei Trofimovich
2020-07-12 21:37 Sergei Trofimovich
2020-06-28 22:43 Sergei Trofimovich
2020-04-01 7:31 Sergei Trofimovich
2020-02-26 18:46 Sergei Trofimovich
2020-02-26 13:42 Sergei Trofimovich
2019-10-05 18:56 Michał Górny
2019-01-28 21:44 Sergei Trofimovich
2019-01-26 22:08 Sergei Trofimovich
2018-03-09 1:56 Jason Donenfeld
2018-02-25 19:46 Jason Donenfeld
2018-02-22 22:16 Jason Donenfeld
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=1548711833.589994af5895f33871c58b02ceceaef139907e53.slyfox@gentoo \
--to=slyfox@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