[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2022-06-16 Thread Sam James
commit: 470d200484f4d1a4a8052f679d3576186870b1e1
Author: Sam James  gentoo  org>
AuthorDate: Thu Jun 16 11:43:16 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Jun 16 11:43:31 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=470d2004

sys-devel/sparse: revbump for changed LLVM_COMPAT

Closes: https://bugs.gentoo.org/840607
Signed-off-by: Sam James  gentoo.org>

 sys-devel/sparse/{sparse-0.6.4-r1.ebuild => sparse-0.6.4-r2.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/sys-devel/sparse/sparse-0.6.4-r1.ebuild 
b/sys-devel/sparse/sparse-0.6.4-r2.ebuild
similarity index 100%
rename from sys-devel/sparse/sparse-0.6.4-r1.ebuild
rename to sys-devel/sparse/sparse-0.6.4-r2.ebuild



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2022-06-16 Thread Michał Górny
commit: dc2da095c5ac4a6dfeebac812f3cd4f7485c56a2
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Jun 16 07:41:47 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Jun 16 07:42:17 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc2da095

sys-devel/sparse: Allow up to LLVM 14

sparse seems to build fine, pass tests and sparse-llvm executable seems
to work on a trivial test case with LLVM 14.

Closes: https://bugs.gentoo.org/840607
Signed-off-by: Michał Górny  gentoo.org>

 sys-devel/sparse/sparse-0.6.4-r1.ebuild | 2 +-
 sys-devel/sparse/sparse-.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-devel/sparse/sparse-0.6.4-r1.ebuild 
b/sys-devel/sparse/sparse-0.6.4-r1.ebuild
index a7c5b9dbc728..726fd8b0cfe3 100644
--- a/sys-devel/sparse/sparse-0.6.4-r1.ebuild
+++ b/sys-devel/sparse/sparse-0.6.4-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-LLVM_MAX_SLOT=12
+LLVM_MAX_SLOT=14
 inherit llvm toolchain-funcs
 
 DESCRIPTION="C semantic parser"

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index a7c5b9dbc728..726fd8b0cfe3 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-LLVM_MAX_SLOT=12
+LLVM_MAX_SLOT=14
 inherit llvm toolchain-funcs
 
 DESCRIPTION="C semantic parser"



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2022-04-14 Thread Matt Turner
commit: 51564faa4dfefe84e7b9def184ab105823beaf88
Author: Matt Turner  gentoo  org>
AuthorDate: Fri Apr 15 01:57:21 2022 +
Commit: Matt Turner  gentoo  org>
CommitDate: Fri Apr 15 02:00:05 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51564faa

sys-devel/sparse: Depend on x11-libs/gtk+:3, not :2

Upstream commit 52ac1749 ("test-inspect: Detect gtk3 then gtk2 package")
in 2017 changed the default to GTK 3 and we didn't notice apparently.

Signed-off-by: Matt Turner  gentoo.org>

 sys-devel/sparse/metadata.xml| 2 +-
 sys-devel/sparse/{sparse-0.6.4.ebuild => sparse-0.6.4-r1.ebuild} | 4 ++--
 sys-devel/sparse/sparse-.ebuild  | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys-devel/sparse/metadata.xml b/sys-devel/sparse/metadata.xml
index aec196782c68..4eec8f82d259 100644
--- a/sys-devel/sparse/metadata.xml
+++ b/sys-devel/sparse/metadata.xml
@@ -10,7 +10,7 @@
Gentoo Toolchain Project


-   Build the test-inspect utility (requires 
x11-libs/gtk+ version 2)
+   Build the test-inspect utility (requires 
x11-libs/gtk+:3)
Build the sparse-llvm utility
Build the c2xml utility (requires 
dev-libs/libxml2)


diff --git a/sys-devel/sparse/sparse-0.6.4.ebuild 
b/sys-devel/sparse/sparse-0.6.4-r1.ebuild
similarity index 95%
rename from sys-devel/sparse/sparse-0.6.4.ebuild
rename to sys-devel/sparse/sparse-0.6.4-r1.ebuild
index 6fbcc28e1552..a7c5b9dbc728 100644
--- a/sys-devel/sparse/sparse-0.6.4.ebuild
+++ b/sys-devel/sparse/sparse-0.6.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,7 +22,7 @@ SLOT="0"
 IUSE="gtk llvm sqlite test xml"
 RESTRICT="!test? ( test )"
 
-RDEPEND="gtk? ( x11-libs/gtk+:2 )
+RDEPEND="gtk? ( x11-libs/gtk+:3 )
llvm? ( 

[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2021-11-08 Thread Michał Górny
commit: 158e4b715bde0f48c4bb3dd9dd9a45411f8dcb53
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Nov  8 11:03:26 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Nov  8 11:25:23 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=158e4b71

sys-devel/sparse: Remove versions requiring LLVM 10

Signed-off-by: Michał Górny  gentoo.org>

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

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index 7c1cf179d14..283b98fc148 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1,2 +1 @@
-DIST sparse-0.6.3.tar.xz 350676 BLAKE2B 
5c8f54f3b7d2095df30b9a59a151e307ebedac5dbb6910ab5684b298c2b427e55dd43697e698fd289fb0d8e824ba4d72c2761772babb9f438e622f439ab3448d
 SHA512 
33170065ea5967d7c640a7551acc78d7efee9f7aa6a9edf6afe2cdd8a04ea5cebe7b5dcdeebf791d384542b8bcdd4e818c75e7ae2e7aa4e1edbd56b68367b28f
 DIST sparse-0.6.4.tar.xz 370840 BLAKE2B 
4b21d26c87df65f08928438c311582a45f4cbbb5ed2bb399c3521d1e40630006d794b4f1e545693e82225f086968cf686c5bfb29059644a31812120f07caebe2
 SHA512 
4ada31e588469d15862579dd7eb926ce1ad717bf96d38d425b9153f2efe73949fdda5bc59d05d926614a08d70e656e4ff531a5f0a1cf8e7725c596dcdba169f9

diff --git a/sys-devel/sparse/sparse-0.6.3.ebuild 
b/sys-devel/sparse/sparse-0.6.3.ebuild
deleted file mode 100644
index 0c2099d4c27..000
--- a/sys-devel/sparse/sparse-0.6.3.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit llvm toolchain-funcs
-
-DESCRIPTION="C semantic parser"
-HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
-
-if [[ ${PV} == "" ]] ; 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
-}



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2021-09-18 Thread Sam James
commit: f336e8bc9cb902d61882358e57531f9269c206e6
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 19 03:11:41 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 19 03:11:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f336e8bc

sys-devel/sparse: improve llvm_check_deps logic

Bug: https://bugs.gentoo.org/812551
Signed-off-by: Sam James  gentoo.org>

 sys-devel/sparse/sparse-0.6.4.ebuild | 5 ++---
 sys-devel/sparse/sparse-.ebuild  | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/sys-devel/sparse/sparse-0.6.4.ebuild 
b/sys-devel/sparse/sparse-0.6.4.ebuild
index 8e6b268ec5b..6fbcc28e155 100644
--- a/sys-devel/sparse/sparse-0.6.4.ebuild
+++ b/sys-devel/sparse/sparse-0.6.4.ebuild
@@ -31,9 +31,8 @@ BDEPEND="gtk? ( virtual/pkgconfig )
xml? ( virtual/pkgconfig )"
 
 llvm_check_deps() {
-   has_version "sys-devel/llvm:${LLVM_MAX_SLOT}" || \
-   has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 1))" \
-   has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 2))"
+   has_version "sys-devel/llvm:${LLVM_SLOT}" && \
+   has_version -r "sys-devel/llvm:${LLVM_SLOT}"
 }
 
 pkg_setup() {

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index 8e6b268ec5b..6fbcc28e155 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -31,9 +31,8 @@ BDEPEND="gtk? ( virtual/pkgconfig )
xml? ( virtual/pkgconfig )"
 
 llvm_check_deps() {
-   has_version "sys-devel/llvm:${LLVM_MAX_SLOT}" || \
-   has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 1))" \
-   has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 2))"
+   has_version "sys-devel/llvm:${LLVM_SLOT}" && \
+   has_version -r "sys-devel/llvm:${LLVM_SLOT}"
 }
 
 pkg_setup() {



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2021-09-18 Thread Sam James
commit: c5ea3c2cc75ac22165cd80e75298a75b30031294
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 19 02:15:23 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 19 02:24:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ea3c2c

sys-devel/sparse: add 0.6.4

Closes: https://bugs.gentoo.org/812551
Signed-off-by: Sam James  gentoo.org>

 sys-devel/sparse/Manifest  |  1 +
 .../sparse/{sparse-.ebuild => sparse-0.6.4.ebuild} | 18 ++
 sys-devel/sparse/sparse-.ebuild| 18 ++
 3 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index a706e2ac3fc..7c1cf179d14 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1 +1,2 @@
 DIST sparse-0.6.3.tar.xz 350676 BLAKE2B 
5c8f54f3b7d2095df30b9a59a151e307ebedac5dbb6910ab5684b298c2b427e55dd43697e698fd289fb0d8e824ba4d72c2761772babb9f438e622f439ab3448d
 SHA512 
33170065ea5967d7c640a7551acc78d7efee9f7aa6a9edf6afe2cdd8a04ea5cebe7b5dcdeebf791d384542b8bcdd4e818c75e7ae2e7aa4e1edbd56b68367b28f
+DIST sparse-0.6.4.tar.xz 370840 BLAKE2B 
4b21d26c87df65f08928438c311582a45f4cbbb5ed2bb399c3521d1e40630006d794b4f1e545693e82225f086968cf686c5bfb29059644a31812120f07caebe2
 SHA512 
4ada31e588469d15862579dd7eb926ce1ad717bf96d38d425b9153f2efe73949fdda5bc59d05d926614a08d70e656e4ff531a5f0a1cf8e7725c596dcdba169f9

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-0.6.4.ebuild
similarity index 80%
copy from sys-devel/sparse/sparse-.ebuild
copy to sys-devel/sparse/sparse-0.6.4.ebuild
index 0fcda784733..3304272807e 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-0.6.4.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=7
 
+LLVM_MAX_SLOT=12
 inherit llvm multilib toolchain-funcs
 
 DESCRIPTION="C semantic parser"
@@ -21,16 +22,20 @@ 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}= )
+   llvm? ( 

[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2021-09-18 Thread Sam James
commit: 8bccc3057c8bf26ca2be2b58ad89171ecaa71dc0
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 19 02:24:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 19 02:24:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bccc305

sys-devel/sparse: drop unused multilib inherit

Signed-off-by: Sam James  gentoo.org>

 sys-devel/sparse/sparse-0.6.3.ebuild | 2 +-
 sys-devel/sparse/sparse-0.6.4.ebuild | 2 +-
 sys-devel/sparse/sparse-.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-devel/sparse/sparse-0.6.3.ebuild 
b/sys-devel/sparse/sparse-0.6.3.ebuild
index 0fcda784733..0c2099d4c27 100644
--- a/sys-devel/sparse/sparse-0.6.3.ebuild
+++ b/sys-devel/sparse/sparse-0.6.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit llvm multilib toolchain-funcs
+inherit llvm toolchain-funcs
 
 DESCRIPTION="C semantic parser"
 HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";

diff --git a/sys-devel/sparse/sparse-0.6.4.ebuild 
b/sys-devel/sparse/sparse-0.6.4.ebuild
index 3304272807e..8e6b268ec5b 100644
--- a/sys-devel/sparse/sparse-0.6.4.ebuild
+++ b/sys-devel/sparse/sparse-0.6.4.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 LLVM_MAX_SLOT=12
-inherit llvm multilib toolchain-funcs
+inherit llvm toolchain-funcs
 
 DESCRIPTION="C semantic parser"
 HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index 3304272807e..8e6b268ec5b 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 LLVM_MAX_SLOT=12
-inherit llvm multilib toolchain-funcs
+inherit llvm toolchain-funcs
 
 DESCRIPTION="C semantic parser"
 HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2021-04-16 Thread David Seifert
commit: e1fb1d3d6b59a01661c22ce7d82e8f4e4787e669
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 16 10:13:51 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Fri Apr 16 10:13:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1fb1d3d

sys-devel/sparse: eutils--

Signed-off-by: Sam James  gentoo.org>
Signed-off-by: David Seifert  gentoo.org>

 sys-devel/sparse/sparse-0.6.3.ebuild | 2 +-
 sys-devel/sparse/sparse-.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-devel/sparse/sparse-0.6.3.ebuild 
b/sys-devel/sparse/sparse-0.6.3.ebuild
index 34da20a600a..0fcda784733 100644
--- a/sys-devel/sparse/sparse-0.6.3.ebuild
+++ b/sys-devel/sparse/sparse-0.6.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit eutils llvm multilib toolchain-funcs
+inherit llvm multilib toolchain-funcs
 
 DESCRIPTION="C semantic parser"
 HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index 34da20a600a..0fcda784733 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit eutils llvm multilib toolchain-funcs
+inherit llvm multilib toolchain-funcs
 
 DESCRIPTION="C semantic parser"
 HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2021-02-26 Thread Sergei Trofimovich
commit: 6921ced734c393729d25a99bde8a6d8b67e0d397
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Feb 26 10:22:32 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Feb 26 10:25:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6921ced7

sys-devel/sparse: drop old

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

 sys-devel/sparse/Manifest|  1 -
 sys-devel/sparse/sparse-0.6.2.ebuild | 71 
 2 files changed, 72 deletions(-)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index 5539731c02c..a706e2ac3fc 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1,2 +1 @@
-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.2.ebuild 
b/sys-devel/sparse/sparse-0.6.2.ebuild
deleted file mode 100644
index 34da20a600a..000
--- a/sys-devel/sparse/sparse-0.6.2.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# 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} == "" ]] ; 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
-}



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2021-02-25 Thread Sergei Trofimovich
commit: 4bbd96b2a5e8ca66775082c6dc238ab216a3ac0a
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Feb 25 09:18:48 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Feb 25 09:18:54 2021 +
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  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 000..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} == "" ]] ; 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
+}



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2021-02-14 Thread Sam James
commit: e61b2b917ac108ddae1fa2dd551fe66cda777900
Author: Sam James  gentoo  org>
AuthorDate: Sun Feb 14 23:27:49 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Feb 15 00:32:04 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e61b2b91

sys-devel/sparse: fix double KEYWORDS

Double KEYWORDS lines break tools like ekeyword and Nattka.
As per PMS, blank/empty KEYWORDS is implied by not defining
the variable.

See: https://projects.gentoo.org/qa/policy-guide/ebuild-format.html#pg0105
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 sys-devel/sparse/sparse-0.6.2.ebuild | 3 +--
 sys-devel/sparse/sparse-.ebuild  | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys-devel/sparse/sparse-0.6.2.ebuild 
b/sys-devel/sparse/sparse-0.6.2.ebuild
index 8860a29313e..34da20a600a 100644
--- a/sys-devel/sparse/sparse-0.6.2.ebuild
+++ b/sys-devel/sparse/sparse-0.6.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,7 +11,6 @@ HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
 if [[ ${PV} == "" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
-   KEYWORDS=""
 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"

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index 8860a29313e..34da20a600a 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,7 +11,6 @@ HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
 if [[ ${PV} == "" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
-   KEYWORDS=""
 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"



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2020-12-18 Thread Sergei Trofimovich
commit: df03cc4846c465c4c1f685ee599ddd4efe1226a7
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Dec 18 09:43:01 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Dec 18 09:52:36 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df03cc48

sys-devel/sparse: drop old

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-devel/sparse/Manifest|  1 -
 sys-devel/sparse/sparse-0.6.1.ebuild | 70 
 2 files changed, 71 deletions(-)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index 088da04a4f8..e026163b79b 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1,2 +1 @@
-DIST sparse-0.6.1.tar.xz 287880 BLAKE2B 
026e7770460ab576b91e8c401c642e95269ddd7c90c0f855b0246448ca653b95a899b4bf647134c090c06c802757b6415dcc89bc214fb7ff124c2ce3888fccb0
 SHA512 
2faad9b3263f19f941cd6a5891960d2c7d1066c664d3ef68e722d461785aeed2d4a9539df3556bbd98c022e7ee965b8030c49272ab6003113ba3b36f73c00187
 DIST sparse-0.6.2.tar.xz 340100 BLAKE2B 
72463fe93753f2cdced3411d1ccb18cc30dce82c4f6ae6289cf4297c66cee9f52ba96f96cceac1f134b017a7d6691b019c2f22cc801522e7a0fe0c5e0b4c8da4
 SHA512 
43c16b5cb4141077dd51f93e877e28e1a00e69ced58a9c8f643635b6f87a8044cddfe29a734b4a43282748e12f287b19b4fb3ce8c5e0b13931a3355974dff982

diff --git a/sys-devel/sparse/sparse-0.6.1.ebuild 
b/sys-devel/sparse/sparse-0.6.1.ebuild
deleted file mode 100644
index d058d2c9ea4..000
--- a/sys-devel/sparse/sparse-0.6.1.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2020 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} == "" ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
-   KEYWORDS=""
-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 test xml"
-RESTRICT="!test? ( test )"
-
-LLVM_MAX_SLOT=9
-
-RDEPEND="gtk? ( x11-libs/gtk+:2 )
-   llvm? ( sys-devel/llvm:${LLVM_MAX_SLOT}= )
-   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_LIBXML=$(usex xml) \
-   \
-   V=1 \
-   PREFIX="${EPREFIX}/usr" \
-   \
-   "$@"
-}
-
-src_compile() {
-   _emake
-}
-
-src_test() {
-   _emake check
-}
-
-src_install() {
-   _emake DESTDIR="${D}" install
-
-   dodoc FAQ README
-}



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2020-07-12 Thread Sergei Trofimovich
commit: 4496cbadab513d1fad737d48637a5a731b37b537
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Jul 12 21:37:05 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Jul 12 21:37:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4496cbad

sys-devel/sparse: bump up to 0.6.2

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-devel/sparse/Manifest| 1 +
 sys-devel/sparse/{sparse-.ebuild => sparse-0.6.2.ebuild} | 6 --
 sys-devel/sparse/sparse-.ebuild  | 6 --
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index 69ecd80dccb..088da04a4f8 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1 +1,2 @@
 DIST sparse-0.6.1.tar.xz 287880 BLAKE2B 
026e7770460ab576b91e8c401c642e95269ddd7c90c0f855b0246448ca653b95a899b4bf647134c090c06c802757b6415dcc89bc214fb7ff124c2ce3888fccb0
 SHA512 
2faad9b3263f19f941cd6a5891960d2c7d1066c664d3ef68e722d461785aeed2d4a9539df3556bbd98c022e7ee965b8030c49272ab6003113ba3b36f73c00187
+DIST sparse-0.6.2.tar.xz 340100 BLAKE2B 
72463fe93753f2cdced3411d1ccb18cc30dce82c4f6ae6289cf4297c66cee9f52ba96f96cceac1f134b017a7d6691b019c2f22cc801522e7a0fe0c5e0b4c8da4
 SHA512 
43c16b5cb4141077dd51f93e877e28e1a00e69ced58a9c8f643635b6f87a8044cddfe29a734b4a43282748e12f287b19b4fb3ce8c5e0b13931a3355974dff982

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-0.6.2.ebuild
similarity index 92%
copy from sys-devel/sparse/sparse-.ebuild
copy to sys-devel/sparse/sparse-0.6.2.ebuild
index d058d2c9ea4..8860a29313e 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-0.6.2.ebuild
@@ -19,13 +19,14 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE="gtk llvm test xml"
+IUSE="gtk llvm sqlite test xml"
 RESTRICT="!test? ( test )"
 
-LLVM_MAX_SLOT=9
+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 )
@@ -47,6 +48,7 @@ _emake() {
\
HAVE_GTK=$(usex gtk) \
HAVE_LLVM=$(usex llvm) \
+   HAVE_SQLITE=$(usex sqlite) \
HAVE_LIBXML=$(usex xml) \
\
V=1 \

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index d058d2c9ea4..8860a29313e 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -19,13 +19,14 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE="gtk llvm test xml"
+IUSE="gtk llvm sqlite test xml"
 RESTRICT="!test? ( test )"
 
-LLVM_MAX_SLOT=9
+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 )
@@ -47,6 +48,7 @@ _emake() {
\
HAVE_GTK=$(usex gtk) \
HAVE_LLVM=$(usex llvm) \
+   HAVE_SQLITE=$(usex sqlite) \
HAVE_LIBXML=$(usex xml) \
\
V=1 \



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/files/

2020-07-03 Thread Sergei Trofimovich
commit: bbf337adae3e140ffb6450c57ef363f57a379e31
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Thu Jul  2 17:38:09 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Jul  3 18:40:30 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbf337ad

sys-devel/sparse: remove unused patch(es)

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/16544
Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../files/sparse-0.5.1-cmdline-include.patch   | 66 --
 1 file changed, 66 deletions(-)

diff --git a/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch 
b/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch
deleted file mode 100644
index 5ea763001a0..000
--- a/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-diff --git a/validation/include-eval.c b/validation/include-eval.c
-new file mode 100644
-index 0..bf9bf63fe
 /dev/null
-+++ b/validation/include-eval.c
-@@ -0,0 +1,7 @@
-+/* nothing */
-+
-+/*
-+ * check-name: include-eval.c
-+ * check-command: sparse -include ./include-eval.inc $file
-+ * check-known-to-fail
-+ */
-diff --git a/validation/include-eval.inc b/validation/include-eval.inc
-new file mode 100644
-index 0..e2561ca41
 /dev/null
-+++ b/validation/include-eval.inc
-@@ -0,0 +1,12 @@
-+typedef unsigned long long_t;
-+
-+inline
-+static unsigned int ok(void)
-+{
-+  return sizeof(long_t);
-+}
-+
-+static unsigned int ko(void)
-+{
-+  return sizeof(long_t);
-+}
-diff --git a/lib.c b/lib.c
-index 4602cf85d..b255fec14 100644
 a/lib.c
-+++ b/lib.c
-@@ -1351,6 +1351,20 @@ struct symbol_list *sparse_initialize(int argc, char 
**argv, struct string_list
-*/
-   protect_token_alloc();
-   }
-+  /*
-+   * Evaluate the complete symbol list
-+   * Note: This is not needed for normal cases.
-+   *   These symbols should only be predefined defines and
-+   *   declaratons which will be evaluated later, when needed.
-+   *   This is also the case when a file is directly included via
-+   *   '-include ' on the command line *AND* the file only
-+   *   contains defines, declarations and inline definitions.
-+   *   However, in the rare cases where the given file should
-+   *   contain some definitions, these will never be evaluated
-+   *   and thus won't be able to be linearized correctly.
-+   *   Hence the evaluate_symbol_list() here under.
-+   */
-+  evaluate_symbol_list(list);
-   return list;
- }
- 
-diff --git a/validation/include-eval.c b/validation/include-eval.c
-index bf9bf63fe..1a91dab84 100644
 a/validation/include-eval.c
-+++ b/validation/include-eval.c
-@@ -3,5 +3,4 @@
- /*
-  * check-name: include-eval.c
-  * check-command: sparse -include ./include-eval.inc $file
-- * check-known-to-fail
-  */



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2020-06-28 Thread Sergei Trofimovich
commit: a28d87e0ebf5308b62d86b81abeb02f8b0cd5c67
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Jun 28 22:24:28 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Jun 28 22:43:15 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a28d87e0

sys-devel/sparse: drop old

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-devel/sparse/Manifest|  3 --
 sys-devel/sparse/sparse-0.5.1.ebuild | 48 
 sys-devel/sparse/sparse-0.5.2_rc1.ebuild | 50 -
 sys-devel/sparse/sparse-0.6.0.ebuild | 64 
 4 files changed, 165 deletions(-)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index 0b6c7726fdd..69ecd80dccb 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1,4 +1 @@
-DIST sparse-0.5.1.tar.xz 215144 BLAKE2B 
209aa7cf34a9135dae38466a0ba41ff4fb888c363ed59a68a5820d4b6ef1636d717b8172a6d638d9dbc61197efb7a3e06ef85830b6f1c359737520b4b3aa0fbe
 SHA512 
f7fc516ef8343a4153b9bda1b50b326dcd55a77fce5acccd9aa4c5636d6510573c7e26b0a7ca1df847082faf2be2d292336ad1cec855e395703a6b1e04d3a8a1
-DIST sparse-0.5.2-rc1.tar.gz 282810 BLAKE2B 
74d06230ceb06dac427984c365223633ef795b2f6329c69da5183b9f357ee05d74b04b18cf400b4d813026a746218edbf9bc0b2aa371c8a3681ac10ce19b
 SHA512 
b58458b97e91b7d02d032a946d9870a3fd227959608fb7847864ad1a92258aeb0461da513f4d6d3b37791ed8d5fc41ac01cfef0fcaf34b229090ff078672ef40
-DIST sparse-0.6.0.tar.xz 284668 BLAKE2B 
9bb568fe23ac96d6e179e5c5927ff34e9fc88909d367f6ab49c8862a8e599df83602ba72bc42ba3bf63823b024340f101128c528ebf767f4e29da7f5324a1f40
 SHA512 
5c6c88f203c941bf0efd28802ef91641c96e7d4b4688a5176d091ff0fd6a650d9147e590b631602a8bd08994a35261977569367861a6d605ccdd25e4a07debf9
 DIST sparse-0.6.1.tar.xz 287880 BLAKE2B 
026e7770460ab576b91e8c401c642e95269ddd7c90c0f855b0246448ca653b95a899b4bf647134c090c06c802757b6415dcc89bc214fb7ff124c2ce3888fccb0
 SHA512 
2faad9b3263f19f941cd6a5891960d2c7d1066c664d3ef68e722d461785aeed2d4a9539df3556bbd98c022e7ee965b8030c49272ab6003113ba3b36f73c00187

diff --git a/sys-devel/sparse/sparse-0.5.1.ebuild 
b/sys-devel/sparse/sparse-0.5.1.ebuild
deleted file mode 100644
index 45819e26886..000
--- a/sys-devel/sparse/sparse-0.5.1.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="C semantic parser"
-HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
-
-if [[ ${PV} == "" ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
-   KEYWORDS=""
-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 test xml"
-RESTRICT="!test? ( test )"
-
-RDEPEND="gtk? ( x11-libs/gtk+:2 )
-   llvm? ( >=sys-devel/llvm-3.0 )
-   xml? ( dev-libs/libxml2 )"
-DEPEND="${RDEPEND}
-   gtk? ( virtual/pkgconfig )
-   xml? ( virtual/pkgconfig )"
-
-PATCHES=( "${FILESDIR}/${PN}-0.5.1-cmdline-include.patch" )
-
-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
-}
-
-src_compile() {
-   emake $(usex test all all-installable)
-}

diff --git a/sys-devel/sparse/sparse-0.5.2_rc1.ebuild 
b/sys-devel/sparse/sparse-0.5.2_rc1.ebuild
deleted file mode 100644
index ad1d4593113..000
--- a/sys-devel/sparse/sparse-0.5.2_rc1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="C semantic parser"
-HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
-
-RC_COMMIT=d1c2f8d3d4205ca1ae7cf0ec2cbd89a7fce73e5c
-
-if [[ ${PV} == "" ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
-   KEYWORDS=""
-else
-   
SRC_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git/snapshot/${PN}-${RC_COMMIT}.tar.gz
 -> ${PN}-${PV/_/-}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-IUSE="gtk llvm test xml"
-RESTRICT="!test? ( test )"
-
-RDEPEND="gtk? ( x11-libs/gtk+:2 )
-   llvm? ( >=sys-devel/llvm-3.0 )
-   xml? (

[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2020-04-01 Thread Sergei Trofimovich
commit: c2c65397e5216438e57834a908c09c629bbacfa0
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed Apr  1 07:30:34 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Apr  1 07:30:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2c65397

sys-devel/sparse: skip llvm detection for USE=-llvm, bug #715376

Patch by Jeroen Roovers.

Reported-and-Fixed-by: Jeroen Roovers
Closes: https://bugs.gentoo.org/715376
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-devel/sparse/sparse-0.6.1.ebuild | 4 
 sys-devel/sparse/sparse-.ebuild  | 4 
 2 files changed, 8 insertions(+)

diff --git a/sys-devel/sparse/sparse-0.6.1.ebuild 
b/sys-devel/sparse/sparse-0.6.1.ebuild
index ca577f5defa..d058d2c9ea4 100644
--- a/sys-devel/sparse/sparse-0.6.1.ebuild
+++ b/sys-devel/sparse/sparse-0.6.1.ebuild
@@ -31,6 +31,10 @@ 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.

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index ca577f5defa..d058d2c9ea4 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -31,6 +31,10 @@ 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.



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2020-02-26 Thread Sergei Trofimovich
commit: e7f7c4605c082e91ddf8d62b497e5266cb2a8668
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed Feb 26 18:46:00 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Feb 26 18:46:14 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7f7c460

sys-devel/sparse: pin to specific LLVM slot

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-devel/sparse/sparse-0.6.1.ebuild | 6 --
 sys-devel/sparse/sparse-.ebuild  | 8 +---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/sys-devel/sparse/sparse-0.6.1.ebuild 
b/sys-devel/sparse/sparse-0.6.1.ebuild
index 8828d2b9230..8df52ef8a1e 100644
--- a/sys-devel/sparse/sparse-0.6.1.ebuild
+++ b/sys-devel/sparse/sparse-0.6.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit eutils multilib toolchain-funcs
+inherit eutils llvm multilib toolchain-funcs
 
 DESCRIPTION="C semantic parser"
 HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
@@ -22,8 +22,10 @@ SLOT="0"
 IUSE="gtk llvm test xml"
 RESTRICT="!test? ( test )"
 
+LLVM_MAX_SLOT=9
+
 RDEPEND="gtk? ( x11-libs/gtk+:2 )
-   llvm? ( >=sys-devel/llvm-3.0 )
+   llvm? ( sys-devel/llvm:${LLVM_MAX_SLOT}= )
xml? ( dev-libs/libxml2 )"
 DEPEND="${RDEPEND}
gtk? ( virtual/pkgconfig )

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index fa4c7a97fab..8df52ef8a1e 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit eutils multilib toolchain-funcs
+inherit eutils llvm multilib toolchain-funcs
 
 DESCRIPTION="C semantic parser"
 HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
@@ -22,8 +22,10 @@ SLOT="0"
 IUSE="gtk llvm test xml"
 RESTRICT="!test? ( test )"
 
+LLVM_MAX_SLOT=9
+
 RDEPEND="gtk? ( x11-libs/gtk+:2 )
-   llvm? ( >=sys-devel/llvm-3.0 )
+   llvm? ( sys-devel/llvm:${LLVM_MAX_SLOT}= )
xml? ( dev-libs/libxml2 )"
 DEPEND="${RDEPEND}
gtk? ( virtual/pkgconfig )



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2020-02-26 Thread Sergei Trofimovich
commit: 67e02a1ba8aa9f38bae2bde574beed1a8e1ff8b2
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed Feb 26 13:42:34 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Feb 26 13:42:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67e02a1b

sys-devel/sparse: bump up to 0.6.1

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-devel/sparse/Manifest|  1 +
 sys-devel/sparse/sparse-0.6.1.ebuild | 64 
 2 files changed, 65 insertions(+)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index 894cb6a6750..0b6c7726fdd 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1,3 +1,4 @@
 DIST sparse-0.5.1.tar.xz 215144 BLAKE2B 
209aa7cf34a9135dae38466a0ba41ff4fb888c363ed59a68a5820d4b6ef1636d717b8172a6d638d9dbc61197efb7a3e06ef85830b6f1c359737520b4b3aa0fbe
 SHA512 
f7fc516ef8343a4153b9bda1b50b326dcd55a77fce5acccd9aa4c5636d6510573c7e26b0a7ca1df847082faf2be2d292336ad1cec855e395703a6b1e04d3a8a1
 DIST sparse-0.5.2-rc1.tar.gz 282810 BLAKE2B 
74d06230ceb06dac427984c365223633ef795b2f6329c69da5183b9f357ee05d74b04b18cf400b4d813026a746218edbf9bc0b2aa371c8a3681ac10ce19b
 SHA512 
b58458b97e91b7d02d032a946d9870a3fd227959608fb7847864ad1a92258aeb0461da513f4d6d3b37791ed8d5fc41ac01cfef0fcaf34b229090ff078672ef40
 DIST sparse-0.6.0.tar.xz 284668 BLAKE2B 
9bb568fe23ac96d6e179e5c5927ff34e9fc88909d367f6ab49c8862a8e599df83602ba72bc42ba3bf63823b024340f101128c528ebf767f4e29da7f5324a1f40
 SHA512 
5c6c88f203c941bf0efd28802ef91641c96e7d4b4688a5176d091ff0fd6a650d9147e590b631602a8bd08994a35261977569367861a6d605ccdd25e4a07debf9
+DIST sparse-0.6.1.tar.xz 287880 BLAKE2B 
026e7770460ab576b91e8c401c642e95269ddd7c90c0f855b0246448ca653b95a899b4bf647134c090c06c802757b6415dcc89bc214fb7ff124c2ce3888fccb0
 SHA512 
2faad9b3263f19f941cd6a5891960d2c7d1066c664d3ef68e722d461785aeed2d4a9539df3556bbd98c022e7ee965b8030c49272ab6003113ba3b36f73c00187

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



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2019-10-05 Thread Michał Górny
commit: 8c7b7cd9436ed107955a517ed6a55f89d94b14b9
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Sep 30 06:49:07 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Oct  5 18:54:09 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c7b7cd9

sys-devel/sparse: Inline mirror://kernel

Signed-off-by: Michał Górny  gentoo.org>

 sys-devel/sparse/sparse-0.5.1.ebuild | 2 +-
 sys-devel/sparse/sparse-0.6.0.ebuild | 2 +-
 sys-devel/sparse/sparse-.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-devel/sparse/sparse-0.5.1.ebuild 
b/sys-devel/sparse/sparse-0.5.1.ebuild
index a2645e71308..75591c9bf3a 100644
--- a/sys-devel/sparse/sparse-0.5.1.ebuild
+++ b/sys-devel/sparse/sparse-0.5.1.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
KEYWORDS=""
 else
-   SRC_URI="mirror://kernel/software/devel/${PN}/dist/${P}.tar.xz"
+   
SRC_URI="https://www.kernel.org/pub/software/devel/${PN}/dist/${P}.tar.xz";
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
 fi
 

diff --git a/sys-devel/sparse/sparse-0.6.0.ebuild 
b/sys-devel/sparse/sparse-0.6.0.ebuild
index 41c95d2e55f..3276afff198 100644
--- a/sys-devel/sparse/sparse-0.6.0.ebuild
+++ b/sys-devel/sparse/sparse-0.6.0.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
KEYWORDS=""
 else
-   SRC_URI="mirror://kernel/software/devel/${PN}/dist/${P}.tar.xz"
+   
SRC_URI="https://www.kernel.org/pub/software/devel/${PN}/dist/${P}.tar.xz";
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
 fi
 

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index 41c95d2e55f..3276afff198 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
KEYWORDS=""
 else
-   SRC_URI="mirror://kernel/software/devel/${PN}/dist/${P}.tar.xz"
+   
SRC_URI="https://www.kernel.org/pub/software/devel/${PN}/dist/${P}.tar.xz";
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2019-01-28 Thread Sergei Trofimovich
commit: 589994af5895f33871c58b02ceceaef139907e53
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Jan 28 21:29:59 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Jan 28 21:43:53 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=589994af

sys-devel/sparse: install into /usr, not $HOME, bug #676626

Daniel noticed sparse- 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  gentoo.org>

 sys-devel/sparse/sparse-.ebuild | 44 +++--
 1 file changed, 33 insertions(+), 11 deletions(-)

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index 8850a866452..41c95d2e55f 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.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
 }



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2019-01-28 Thread Sergei Trofimovich
commit: 35c017320368616640c69aa948f72cde06d06035
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Jan 28 21:33:56 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Jan 28 21:43:56 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35c01732

sys-devel/sparse: bump up to 0.6.0, bug #676628

Reported-by: Daniel M. Weeks
Closes: https://bugs.gentoo.org/676628
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-devel/sparse/Manifest|  1 +
 sys-devel/sparse/sparse-0.6.0.ebuild | 63 
 2 files changed, 64 insertions(+)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index 438d91cbbf8..894cb6a6750 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1,2 +1,3 @@
 DIST sparse-0.5.1.tar.xz 215144 BLAKE2B 
209aa7cf34a9135dae38466a0ba41ff4fb888c363ed59a68a5820d4b6ef1636d717b8172a6d638d9dbc61197efb7a3e06ef85830b6f1c359737520b4b3aa0fbe
 SHA512 
f7fc516ef8343a4153b9bda1b50b326dcd55a77fce5acccd9aa4c5636d6510573c7e26b0a7ca1df847082faf2be2d292336ad1cec855e395703a6b1e04d3a8a1
 DIST sparse-0.5.2-rc1.tar.gz 282810 BLAKE2B 
74d06230ceb06dac427984c365223633ef795b2f6329c69da5183b9f357ee05d74b04b18cf400b4d813026a746218edbf9bc0b2aa371c8a3681ac10ce19b
 SHA512 
b58458b97e91b7d02d032a946d9870a3fd227959608fb7847864ad1a92258aeb0461da513f4d6d3b37791ed8d5fc41ac01cfef0fcaf34b229090ff078672ef40
+DIST sparse-0.6.0.tar.xz 284668 BLAKE2B 
9bb568fe23ac96d6e179e5c5927ff34e9fc88909d367f6ab49c8862a8e599df83602ba72bc42ba3bf63823b024340f101128c528ebf767f4e29da7f5324a1f40
 SHA512 
5c6c88f203c941bf0efd28802ef91641c96e7d4b4688a5176d091ff0fd6a650d9147e590b631602a8bd08994a35261977569367861a6d605ccdd25e4a07debf9

diff --git a/sys-devel/sparse/sparse-0.6.0.ebuild 
b/sys-devel/sparse/sparse-0.6.0.ebuild
new file mode 100644
index 000..41c95d2e55f
--- /dev/null
+++ b/sys-devel/sparse/sparse-0.6.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="C semantic parser"
+HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
+
+if [[ ${PV} == "" ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
+   KEYWORDS=""
+else
+   SRC_URI="mirror://kernel/software/devel/${PN}/dist/${P}.tar.xz"
+   KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="gtk llvm test xml"
+
+RDEPEND="gtk? ( x11-libs/gtk+:2 )
+   llvm? ( >=sys-devel/llvm-3.0 )
+   xml? ( dev-libs/libxml2 )"
+DEPEND="${RDEPEND}
+   gtk? ( virtual/pkgconfig )
+   xml? ( virtual/pkgconfig )"
+
+_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
+}



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2019-01-26 Thread Sergei Trofimovich
commit: 5175a633115848cad72eeabfc995f2fcc449090d
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Jan 26 22:07:34 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Jan 26 22:07:54 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5175a633

sys-devel/sparse: drop 'install-all' reference, bug #671356

Daniel reports that install-all disappeared in
https://git.kernel.org/pub/scm/devel/sparse/sparse.git/commit/Makefile?id=3b7d5e200ac64de2914b930933491b548b3d0bc0
and now breaks the build.

Use default 'make all' unconditionally.

Reported-by: Daniel M. Weeks
Closes: https://bugs.gentoo.org/671356
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-devel/sparse/sparse-.ebuild | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index 43d03a624df..8850a866452 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -39,7 +39,3 @@ src_prepare() {
export MAKEOPTS+=" V=1 AR=${AR} CC=${CC} HAVE_GTK2=$(usex gtk) 
HAVE_LLVM=$(usex llvm) HAVE_LIBXML=$(usex xml)"
default
 }
-
-src_compile() {
-   emake $(usex test all all-installable)
-}



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2018-03-08 Thread Jason Donenfeld
commit: f97a3b2c17462a50d3b65c53bc0d4fea164c4185
Author: Jason A. Donenfeld  gentoo  org>
AuthorDate: Fri Mar  9 01:56:21 2018 +
Commit: Jason Donenfeld  gentoo  org>
CommitDate: Fri Mar  9 01:56:49 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f97a3b2c

sys-devel/sparse: version bump

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-devel/sparse/Manifest|  1 +
 sys-devel/sparse/sparse-0.5.2_rc1.ebuild | 49 
 2 files changed, 50 insertions(+)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index d6cc9aa6606..438d91cbbf8 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1 +1,2 @@
 DIST sparse-0.5.1.tar.xz 215144 BLAKE2B 
209aa7cf34a9135dae38466a0ba41ff4fb888c363ed59a68a5820d4b6ef1636d717b8172a6d638d9dbc61197efb7a3e06ef85830b6f1c359737520b4b3aa0fbe
 SHA512 
f7fc516ef8343a4153b9bda1b50b326dcd55a77fce5acccd9aa4c5636d6510573c7e26b0a7ca1df847082faf2be2d292336ad1cec855e395703a6b1e04d3a8a1
+DIST sparse-0.5.2-rc1.tar.gz 282810 BLAKE2B 
74d06230ceb06dac427984c365223633ef795b2f6329c69da5183b9f357ee05d74b04b18cf400b4d813026a746218edbf9bc0b2aa371c8a3681ac10ce19b
 SHA512 
b58458b97e91b7d02d032a946d9870a3fd227959608fb7847864ad1a92258aeb0461da513f4d6d3b37791ed8d5fc41ac01cfef0fcaf34b229090ff078672ef40

diff --git a/sys-devel/sparse/sparse-0.5.2_rc1.ebuild 
b/sys-devel/sparse/sparse-0.5.2_rc1.ebuild
new file mode 100644
index 000..69c8ce4c6c7
--- /dev/null
+++ b/sys-devel/sparse/sparse-0.5.2_rc1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="C semantic parser"
+HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page";
+
+RC_COMMIT=d1c2f8d3d4205ca1ae7cf0ec2cbd89a7fce73e5c
+
+if [[ ${PV} == "" ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
+   KEYWORDS=""
+else
+   
SRC_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git/snapshot/${PN}-${RC_COMMIT}.tar.gz
 -> ${PN}-${PV/_/-}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="gtk llvm test xml"
+
+RDEPEND="gtk? ( x11-libs/gtk+:2 )
+   llvm? ( >=sys-devel/llvm-3.0 )
+   xml? ( dev-libs/libxml2 )"
+DEPEND="${RDEPEND}
+   gtk? ( virtual/pkgconfig )
+   xml? ( virtual/pkgconfig )"
+
+S="${WORKDIR}/sparse-${RC_COMMIT}"
+
+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
+}
+
+src_compile() {
+   emake $(usex test all all-installable)
+}



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2018-02-25 Thread Jason Donenfeld
commit: 4ca54e22582ec2da3f687f4a2eb818c54381587c
Author: Jason A. Donenfeld  gentoo  org>
AuthorDate: Sun Feb 25 19:45:24 2018 +
Commit: Jason Donenfeld  gentoo  org>
CommitDate: Sun Feb 25 19:45:59 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ca54e22

sys-devel/sparse: update distribution URI

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-devel/sparse/Manifest| 2 +-
 sys-devel/sparse/sparse-0.5.1.ebuild | 2 +-
 sys-devel/sparse/sparse-.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index 089768e1271..d6cc9aa6606 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1 +1 @@
-DIST sparse-0.5.1.tar.gz 278241 BLAKE2B 
6004631c97e2a126d1e239aa1d8fcc540a92b3f63a6a2615f2f63b79a001495e8b27ffa7377c57b43227f3b50288be24cb4657c7801806f7c6d1d11b0f8c8ee9
 SHA512 
04a26e2b44d99e7402b5e8a8f61ecbd62adbc9c481a0c3c8e0ab2f9599d99f50679ce3f3d0c1ccfd6204c6ec5d9fa272f9fc4c4d21173897ebd592d14c6ee852
+DIST sparse-0.5.1.tar.xz 215144 BLAKE2B 
209aa7cf34a9135dae38466a0ba41ff4fb888c363ed59a68a5820d4b6ef1636d717b8172a6d638d9dbc61197efb7a3e06ef85830b6f1c359737520b4b3aa0fbe
 SHA512 
f7fc516ef8343a4153b9bda1b50b326dcd55a77fce5acccd9aa4c5636d6510573c7e26b0a7ca1df847082faf2be2d292336ad1cec855e395703a6b1e04d3a8a1

diff --git a/sys-devel/sparse/sparse-0.5.1.ebuild 
b/sys-devel/sparse/sparse-0.5.1.ebuild
index aad07d85db7..a2645e71308 100644
--- a/sys-devel/sparse/sparse-0.5.1.ebuild
+++ b/sys-devel/sparse/sparse-0.5.1.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
KEYWORDS=""
 else
-   
SRC_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git/snapshot/${P}.tar.gz";
+   SRC_URI="mirror://kernel/software/devel/${PN}/dist/${P}.tar.xz"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
 fi
 

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index 800ee845a61..43d03a624df 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git";
KEYWORDS=""
 else
-   
SRC_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git/snapshot/${P}.tar.gz";
+   SRC_URI="mirror://kernel/software/devel/${PN}/dist/${P}.tar.xz"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/

2018-02-22 Thread Jason Donenfeld
commit: 3a918ea992cc4f3b8e8f14e748d24435a14fda9e
Author: Jason A. Donenfeld  gentoo  org>
AuthorDate: Thu Feb 22 22:16:05 2018 +
Commit: Jason Donenfeld  gentoo  org>
CommitDate: Thu Feb 22 22:16:18 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a918ea9

sys-devel/sparse: commit landed upstream finally

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-devel/sparse/sparse-.ebuild | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys-devel/sparse/sparse-.ebuild 
b/sys-devel/sparse/sparse-.ebuild
index aad07d85db7..800ee845a61 100644
--- a/sys-devel/sparse/sparse-.ebuild
+++ b/sys-devel/sparse/sparse-.ebuild
@@ -28,8 +28,6 @@ DEPEND="${RDEPEND}
gtk? ( virtual/pkgconfig )
xml? ( virtual/pkgconfig )"
 
-PATCHES=( "${FILESDIR}/${PN}-0.5.1-cmdline-include.patch" )
-
 src_prepare() {
tc-export AR CC PKG_CONFIG
sed -i \



[gentoo-commits] repo/gentoo:master commit in: sys-devel/sparse/files/, sys-devel/sparse/

2018-02-14 Thread Jason Donenfeld
commit: ae3c38350efab149e32d974d8642891f69f375a3
Author: Jason A. Donenfeld  gentoo  org>
AuthorDate: Wed Feb 14 12:32:43 2018 +
Commit: Jason Donenfeld  gentoo  org>
CommitDate: Wed Feb 14 12:37:03 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae3c3835

sys-devel/sparse: modernize

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-devel/sparse/Manifest  |  4 +-
 sys-devel/sparse/files/sparse-0.4.3-gentoo.patch   | 49 
 .../files/sparse-0.5.1-cmdline-include.patch   | 66 ++
 sys-devel/sparse/metadata.xml  |  4 ++
 sys-devel/sparse/sparse-0.4.3.ebuild   | 64 -
 sys-devel/sparse/sparse-0.4.4.ebuild   | 46 ---
 .../{sparse-0.5.0.ebuild => sparse-0.5.1.ebuild}   | 22 
 sys-devel/sparse/sparse-.ebuild| 22 
 8 files changed, 93 insertions(+), 184 deletions(-)

diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest
index e0c8eb16025..089768e1271 100644
--- a/sys-devel/sparse/Manifest
+++ b/sys-devel/sparse/Manifest
@@ -1,3 +1 @@
-DIST sparse-0.4.3.tar.bz2 172431 BLAKE2B 
06864e372e676a5f0426612774f1df2d224e8e6a12b8f7edf7056225b19725e876196c12e4c92a9a2b64eb410c8a840f777b4df2ffb9945079f4903562fb0633
 SHA512 
ff3dbd3e28b1a95dc9d6abf9a4ffdfaa0f470047b8232bd50930839432ae66a2249adb861c880e8eef1a906b007fd7d1c1ef8683c48c763eb523aedc9e1df631
-DIST sparse-0.4.4.tar.bz2 174074 BLAKE2B 
d57c5ec6f837ef1fa8992b5ec21f467583888d9ac3b7699a73e6b8fa80046253cdc554a4c685c2d98474a18fee6fca26fa004d3afa74b18c8f58b05a2900d589
 SHA512 
5cd5e660ea863170e86f1abaa040434c43a5cc7e92560f1bcbcce9ce906ae7355c066168bfc1dcc551e41e4c0f864122be288ed69eb1c4cda8b7c0825b5b647f
-DIST sparse-0.5.0.tar.xz 187576 BLAKE2B 
c525ce2a11143cd2dbeaff3e8cb1eb66b1792a678946ce001f76ac9882cd54cce4d4c5ff740c12e0e54ca91a6a2dc57bc7682ff865014fcc382e662ba596
 SHA512 
0cb70a74034c4bc4d5340ab7d19288a438f4b6d0c4c63ac95d1f4cc3c5fdfe1370a27a607605a6f0c85ea6f371141c55abfdb4438d9e87b2d544fff5674f7ce4
+DIST sparse-0.5.1.tar.gz 278241 BLAKE2B 
6004631c97e2a126d1e239aa1d8fcc540a92b3f63a6a2615f2f63b79a001495e8b27ffa7377c57b43227f3b50288be24cb4657c7801806f7c6d1d11b0f8c8ee9
 SHA512 
04a26e2b44d99e7402b5e8a8f61ecbd62adbc9c481a0c3c8e0ab2f9599d99f50679ce3f3d0c1ccfd6204c6ec5d9fa272f9fc4c4d21173897ebd592d14c6ee852

diff --git a/sys-devel/sparse/files/sparse-0.4.3-gentoo.patch 
b/sys-devel/sparse/files/sparse-0.4.3-gentoo.patch
deleted file mode 100644
index 6f46687d78b..000
--- a/sys-devel/sparse/files/sparse-0.4.3-gentoo.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 74905df..1f2b2b6 100644
 a/Makefile
-+++ b/Makefile
-@@ -4,7 +4,7 @@ OS = linux
- 
- 
- CC = gcc
--CFLAGS = -O2 -finline-functions -fno-strict-aliasing -g
-+CFLAGS ?= -O2 -finline-functions -fno-strict-aliasing -g
- CFLAGS += -Wall -Wwrite-strings
- LDFLAGS += -g
- AR = ar
-@@ -21,7 +21,8 @@ HAVE_GCC_DEP:=$(shell touch .gcc-test.c &&   
\
-   echo 'yes'; rm -f .gcc-test.d .gcc-test.o .gcc-test.c)
- HAVE_GTK2:=$(shell pkg-config --exists gtk+-2.0 2>/dev/null && echo 'yes')
- 
--CFLAGS += -DGCC_BASE=\"$(shell $(CC) --print-file-name=)\"
-+GCC_BASE = $(shell $(CC) --print-file-name=)
-+CFLAGS += -DGCC_BASE=\"$(GCC_BASE)\"
- 
- ifeq ($(HAVE_GCC_DEP),yes)
- CFLAGS += -Wp,-MD,$(@D)/.$(@F).d
-@@ -113,7 +114,9 @@ SED_PC_CMD = 's|@version@|$(VERSION)|g;\
- 
- all: $(PROGRAMS) sparse.pc
- 
--install: $(INST_PROGRAMS) $(LIBS) $(LIB_H) sparse.pc
-+all-installable: $(INST_PROGRAMS) $(LIBS) $(LIB_H) sparse.pc
-+
-+install: all-installable
-   $(Q)install -d $(DESTDIR)$(BINDIR)
-   $(Q)install -d $(DESTDIR)$(LIBDIR)
-   $(Q)install -d $(DESTDIR)$(MAN1DIR)
-diff --git a/parse.h b/parse.h
-index 6b21e23..b26bd03 100644
 a/parse.h
-+++ b/parse.h
-@@ -35,10 +35,6 @@ struct statement {
-   struct /* declaration */ {
-   struct symbol_list *declaration;
-   };
--  struct /* label_arg */ {
--  struct symbol *label;
--  struct statement *label_statement;
--  };
-   struct {
-   struct expression *expression;
-   struct expression *context;

diff --git a/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch 
b/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch
new file mode 100644
index 000..5ea763001a0
--- /dev/null
+++ b/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch
@@ -0,0 +1,66 @@
+diff --git a/validation/include-eval.c b/validation/include-eval.c
+new file mode 100644
+index 0..bf9bf63fe
+--- /dev/null
 b/validation/include-eval.c
+@@ -0,0 +1,7 @@
++/* nothing */
++
++/*
++ * check-name: include-eval.c
++ * check-command: sparse -include ./include-eval.inc $file
++ * check-known-to-fail
++ */
+diff --gi