1 |
commit: 35c017320368616640c69aa948f72cde06d06035 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 28 21:33:56 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 28 21:43:56 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35c01732 |
7 |
|
8 |
sys-devel/sparse: bump up to 0.6.0, bug #676628 |
9 |
|
10 |
Reported-by: Daniel M. Weeks |
11 |
Closes: https://bugs.gentoo.org/676628 |
12 |
Package-Manager: Portage-2.3.58, Repoman-2.3.12 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
sys-devel/sparse/Manifest | 1 + |
16 |
sys-devel/sparse/sparse-0.6.0.ebuild | 63 ++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 64 insertions(+) |
18 |
|
19 |
diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest |
20 |
index 438d91cbbf8..894cb6a6750 100644 |
21 |
--- a/sys-devel/sparse/Manifest |
22 |
+++ b/sys-devel/sparse/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST sparse-0.5.1.tar.xz 215144 BLAKE2B 209aa7cf34a9135dae38466a0ba41ff4fb888c363ed59a68a5820d4b6ef1636d717b8172a6d638d9dbc61197efb7a3e06ef85830b6f1c359737520b4b3aa0fbe SHA512 f7fc516ef8343a4153b9bda1b50b326dcd55a77fce5acccd9aa4c5636d6510573c7e26b0a7ca1df847082faf2be2d292336ad1cec855e395703a6b1e04d3a8a1 |
25 |
DIST sparse-0.5.2-rc1.tar.gz 282810 BLAKE2B 74d06230ceb06dac427984c365223633ef795b2f6329c69da5183b9f3444457ee05d74b04b18cf400b4d813026a746218edbf9bc0b2aa371c8a3681ac10ce19b SHA512 b58458b97e91b7d02d032a946d9870a3fd227959608fb7847864ad1a92258aeb0461da513f4d6d3b37791ed8d5fc41ac01cfef0fcaf34b229090ff078672ef40 |
26 |
+DIST sparse-0.6.0.tar.xz 284668 BLAKE2B 9bb568fe23ac96d6e179e5c5927ff34e9fc88909d367f6ab49c8862a8e599df83602ba72bc42ba3bf63823b024340f101128c528ebf767f4e29da7f5324a1f40 SHA512 5c6c88f203c941bf0efd28802ef91641c96e7d4b4688a5176d091ff0fd6a650d9147e590b631602a8bd08994a35261977569367861a6d605ccdd25e4a07debf9 |
27 |
|
28 |
diff --git a/sys-devel/sparse/sparse-0.6.0.ebuild b/sys-devel/sparse/sparse-0.6.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..41c95d2e55f |
31 |
--- /dev/null |
32 |
+++ b/sys-devel/sparse/sparse-0.6.0.ebuild |
33 |
@@ -0,0 +1,63 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit eutils multilib toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="C semantic parser" |
42 |
+HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page" |
43 |
+ |
44 |
+if [[ ${PV} == "9999" ]] ; then |
45 |
+ inherit git-r3 |
46 |
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/devel/${PN}/${PN}.git" |
47 |
+ KEYWORDS="" |
48 |
+else |
49 |
+ SRC_URI="mirror://kernel/software/devel/${PN}/dist/${P}.tar.xz" |
50 |
+ KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
51 |
+fi |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+IUSE="gtk llvm test xml" |
56 |
+ |
57 |
+RDEPEND="gtk? ( x11-libs/gtk+:2 ) |
58 |
+ llvm? ( >=sys-devel/llvm-3.0 ) |
59 |
+ xml? ( dev-libs/libxml2 )" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ gtk? ( virtual/pkgconfig ) |
62 |
+ xml? ( virtual/pkgconfig )" |
63 |
+ |
64 |
+_emake() { |
65 |
+ # Makefile does not allow for an easy override of flags. |
66 |
+ # Collect them here and override default phases. |
67 |
+ emake \ |
68 |
+ CC="$(tc-getCC)" \ |
69 |
+ LD="$(tc-getCC)" \ |
70 |
+ AR="$(tc-getAR)" \ |
71 |
+ CFLAGS="${CFLAGS}" \ |
72 |
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \ |
73 |
+ \ |
74 |
+ HAVE_GTK=$(usex gtk) \ |
75 |
+ HAVE_LLVM=$(usex llvm) \ |
76 |
+ HAVE_LIBXML=$(usex xml) \ |
77 |
+ \ |
78 |
+ V=1 \ |
79 |
+ PREFIX="${EPREFIX}/usr" \ |
80 |
+ \ |
81 |
+ "$@" |
82 |
+} |
83 |
+ |
84 |
+src_compile() { |
85 |
+ _emake |
86 |
+} |
87 |
+ |
88 |
+src_test() { |
89 |
+ _emake check |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ _emake DESTDIR="${D}" install |
94 |
+ |
95 |
+ dodoc FAQ README |
96 |
+} |