public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/
Date: Thu, 25 Feb 2021 09:18:57 +0000 (UTC)	[thread overview]
Message-ID: <1614244734.4bbd96b2a5e8ca66775082c6dc238ab216a3ac0a.slyfox@gentoo> (raw)

commit:     4bbd96b2a5e8ca66775082c6dc238ab216a3ac0a
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 25 09:18:48 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Feb 25 09:18:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bbd96b2

sys-devel/sparse: bump up to 0.6.3

Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-devel/sparse/Manifest            |  1 +
 sys-devel/sparse/sparse-0.6.3.ebuild | 71 ++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index e026163b79b..5539731c02c 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1 +1,2 @@
 DIST sparse-0.6.2.tar.xz 340100 BLAKE2B 72463fe93753f2cdced3411d1ccb18cc30dce82c4f6ae6289cf4297c66cee9f52ba96f96cceac1f134b017a7d6691b019c2f22cc801522e7a0fe0c5e0b4c8da4 SHA512 43c16b5cb4141077dd51f93e877e28e1a00e69ced58a9c8f643635b6f87a8044cddfe29a734b4a43282748e12f287b19b4fb3ce8c5e0b13931a3355974dff982
+DIST sparse-0.6.3.tar.xz 350676 BLAKE2B 5c8f54f3b7d2095df30b9a59a151e307ebedac5dbb6910ab5684b298c2b427e55dd43697e698fd289fb0d8e824ba4d72c2761772babb9f438e622f439ab3448d SHA512 33170065ea5967d7c640a7551acc78d7efee9f7aa6a9edf6afe2cdd8a04ea5cebe7b5dcdeebf791d384542b8bcdd4e818c75e7ae2e7aa4e1edbd56b68367b28f

diff --git a/sys-devel/sparse/sparse-0.6.3.ebuild b/sys-devel/sparse/sparse-0.6.3.ebuild
new file mode 100644
index 00000000000..34da20a600a
--- /dev/null
+++ b/sys-devel/sparse/sparse-0.6.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils llvm multilib toolchain-funcs
+
+DESCRIPTION="C semantic parser"
+HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page"
+
+if [[ ${PV} == "9999" ]] ; then
+	inherit git-r3
+	EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git"
+else
+	SRC_URI="https://www.kernel.org/pub/software/devel/${PN}/dist/${P}.tar.xz"
+	KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="gtk llvm sqlite test xml"
+RESTRICT="!test? ( test )"
+
+LLVM_MAX_SLOT=10
+
+RDEPEND="gtk? ( x11-libs/gtk+:2 )
+	llvm? ( sys-devel/llvm:${LLVM_MAX_SLOT}= )
+	sqlite? ( dev-db/sqlite:= )
+	xml? ( dev-libs/libxml2 )"
+DEPEND="${RDEPEND}
+	gtk? ( virtual/pkgconfig )
+	xml? ( virtual/pkgconfig )"
+
+pkg_setup() {
+	use llvm && llvm_pkg_setup
+}
+
+_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_SQLITE=$(usex sqlite) \
+		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
+}


             reply	other threads:[~2021-02-25  9:19 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25  9:18 Sergei Trofimovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-16 11:43 [gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/ 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-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-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=1614244734.4bbd96b2a5e8ca66775082c6dc238ab216a3ac0a.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