diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-devel/sparse |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-devel/sparse')
-rw-r--r-- | sys-devel/sparse/Manifest | 11 | ||||
-rw-r--r-- | sys-devel/sparse/files/sparse-0.4.3-gentoo.patch | 49 | ||||
-rw-r--r-- | sys-devel/sparse/metadata.xml | 18 | ||||
-rw-r--r-- | sys-devel/sparse/sparse-0.4.3.ebuild | 64 | ||||
-rw-r--r-- | sys-devel/sparse/sparse-0.4.4.ebuild | 46 | ||||
-rw-r--r-- | sys-devel/sparse/sparse-0.5.0.ebuild | 47 | ||||
-rw-r--r-- | sys-devel/sparse/sparse-9999.ebuild | 47 |
7 files changed, 282 insertions, 0 deletions
diff --git a/sys-devel/sparse/Manifest b/sys-devel/sparse/Manifest new file mode 100644 index 000000000000..d3f887759851 --- /dev/null +++ b/sys-devel/sparse/Manifest @@ -0,0 +1,11 @@ +AUX sparse-0.4.3-gentoo.patch 1446 SHA256 e353bee56776054bbd7c60b4b41424eb2eba565bf303b2eaf382c129880c27aa SHA512 a270266af0ce1728b114092271e627f63f8e55339b06c67634825a7c89a7cf7e1af17cdd47b5dab7475ef7eca39b95026264c870dee2c3a228c63af0bbdec461 WHIRLPOOL b14145d483d29151060b153c52f24d5dd218a49be6f2bd8691d61ae6f861cfa994c2f86e11f30114aedf9fdf304ade78b590e865dd99181c33b491e50841c061 +DIST sparse-0.4.3.tar.bz2 172431 SHA256 9059bc649ca8c9309e542d0015091ccf72ac9e3300db0adb4eba838cdcc82f9c SHA512 ff3dbd3e28b1a95dc9d6abf9a4ffdfaa0f470047b8232bd50930839432ae66a2249adb861c880e8eef1a906b007fd7d1c1ef8683c48c763eb523aedc9e1df631 WHIRLPOOL d2fad751e0d9594b467a457843a8beb153d9744683cfe9112ae38484f25eb2bb1784fa58d8ec1c6c5341450e966478e42c16027de271452804e5607c0c393354 +DIST sparse-0.4.4.tar.bz2 174074 SHA256 57ce3b7e33567e67dc0b5c74142aff60a8a78257664a2160c3e3d345d00765af SHA512 5cd5e660ea863170e86f1abaa040434c43a5cc7e92560f1bcbcce9ce906ae7355c066168bfc1dcc551e41e4c0f864122be288ed69eb1c4cda8b7c0825b5b647f WHIRLPOOL 2e61fcbee4e2f603d80db37f69050c130aef9d5df5e43dc475504a29e5d53eed3d599499fc5e3ca9139535f68a7f19e701ee3003f2b20ffe16681ffa524b05d0 +DIST sparse-0.5.0.tar.xz 187576 SHA256 921fcf918c6778d1359f3886ac8cb4cf632faa6242627bc2ae2db75e983488d5 SHA512 0cb70a74034c4bc4d5340ab7d19288a438f4b6d0c4c63ac95d1f4cc3c5fdfe1370a27a607605a6f0c85ea6f371141c55abfdb4438d9e87b2d544fff5674f7ce4 WHIRLPOOL 328027ab5fab473d5819659bb91ab6d655cebc6cf5ec5f5c102217fc11aee5c0e5e56e694260784a315f14b7ce84c25a19b5cd70e98db92cfa9ba19f7e7c8944 +EBUILD sparse-0.4.3.ebuild 1322 SHA256 959ded3287a3527f65fa7c73d8630d04bcecc30d8ce9c774b1fa66b819507add SHA512 6fd02eeb079aa4d042dbb541943c3a7b3e2c53dca0f06230fa627bb89558259a9bd78c7b54f4f5f87a4fc9318db0894aa7d3e6fa924d5d841099ab95913d8d83 WHIRLPOOL 7ca031d05eeaa4cbdc9689895189ab3b5951f518d86547bb49cf9628e3c6fd2962c55a5fb317df7cf2be72a0e2688b8e82b0df71a5bd652e15e8202b5a0611f1 +EBUILD sparse-0.4.4.ebuild 1167 SHA256 45540fe883a55dbe3cc7e1c9ffbff696f017a243a79438ae946ac2c16fc623c4 SHA512 02606f9f9925a0c10b40512dc292a16d9ef98a8cb40194bb5a00950e1f3efe68074d1b00b438b38e7bb2a61f4b076b05dbad68f2eeaa8d4506fbb45070ab1cdc WHIRLPOOL 269643f0032195be21ef805fabc8d27e85e110a231a6a0eab1ab7ef6107a6fc3fc5e55627284cbf2ac8576e2be543fdb7f0df6c18a87bab51a51e413373eea63 +EBUILD sparse-0.5.0.ebuild 1226 SHA256 30b86bca516bb9cb371ca9e8ce1406ce547615d07b28d1199f651b26cbd45fa7 SHA512 2bad4ec621b8e2998fc8cd909031060b15df6d93343582aa2f51553aa681ab58a0b3a9b58999d7e9dfe7d332baf57a4c6ed6b448389efe3e3db44399cf1aca2e WHIRLPOOL 70af0f349740f167f272db922f39b1244775ec50be65602a8948e566cc86bd98f8006e98097136d5a54456c73b228cb8192b1539a14664ed44d3a6fe1c4bc867 +EBUILD sparse-9999.ebuild 1226 SHA256 30b86bca516bb9cb371ca9e8ce1406ce547615d07b28d1199f651b26cbd45fa7 SHA512 2bad4ec621b8e2998fc8cd909031060b15df6d93343582aa2f51553aa681ab58a0b3a9b58999d7e9dfe7d332baf57a4c6ed6b448389efe3e3db44399cf1aca2e WHIRLPOOL 70af0f349740f167f272db922f39b1244775ec50be65602a8948e566cc86bd98f8006e98097136d5a54456c73b228cb8192b1539a14664ed44d3a6fe1c4bc867 +MISC ChangeLog 3453 SHA256 f7e06173e7f2bc18ce8747809e7640786a9d0264f145ed2b8f492a55abaffd52 SHA512 91b6878a0b3e25e23f8d2aad89c1e8b686f74831784cbbd88343a067f60016094b97ab6ad2f2ef8980731cd3502565d997870d50ef4088529df4f5595a61091d WHIRLPOOL 8ad1a4283f50dad466822aab90c9587641bc38d33d4bdcd9aa21897d71fc58b6c61331c85116873a94c689536a874422a1b510f029a05c38513f2651a80084c7 +MISC ChangeLog-2015 7547 SHA256 fc530756d30499d5fb1f675fd92bca59f1d30162d0dbcdf4663bd5a9af3994e4 SHA512 3871273d15dc3a4a68164a4db4782a2e4db5f8bd6199ecad2d1d614cddf8bb6bad9f31f75bac2360cf1d40ca33f28d79a06e311a055dbfaeee196428f2a9cbf5 WHIRLPOOL fd997fa49fdd97f84d01631085f58aa64adaaf02718af292623a8ccb07fd59b24597b9fef0f874797e943e206bd6bdcddb2909ae7445e085bf9523ca6b9ace06 +MISC metadata.xml 567 SHA256 50a6c953098cf5bb5486cfe458817d74b1365ff26e4f46c90799f4b2dc4c4623 SHA512 c69a32bcedce10ce3574d769eb347d8370bb6c5c84ccd04a092846643cb02fef30c6edcb3b60958f1e1b34a9b315500d619858a5bc509e82b900b26bf6898b5f WHIRLPOOL bbc0a0a3b05f66346f5fa4a2ea1b285bd05240d51dc075fa87dd350b87a50abf2c8506be43d442d487ba59c9dbea1d498a68d02427e976b5c4c9c61f8e21d0ff diff --git a/sys-devel/sparse/files/sparse-0.4.3-gentoo.patch b/sys-devel/sparse/files/sparse-0.4.3-gentoo.patch new file mode 100644 index 000000000000..6f46687d78b3 --- /dev/null +++ b/sys-devel/sparse/files/sparse-0.4.3-gentoo.patch @@ -0,0 +1,49 @@ +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/metadata.xml b/sys-devel/sparse/metadata.xml new file mode 100644 index 000000000000..b07d40e90439 --- /dev/null +++ b/sys-devel/sparse/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>toolchain@gentoo.org</email> + <name>Gentoo Toolchain Project</name> + </maintainer> + <use> + <flag name="gtk"> + Build the test-inspect utility (requires + <pkg>x11-libs/gtk+</pkg> version 2) + </flag> + <flag name="llvm">Build the sparse-llvm utility</flag> + <flag name="xml"> + Build the c2xml utility (requires <pkg>dev-libs/libxml2</pkg>). + </flag> + </use> +</pkgmetadata> diff --git a/sys-devel/sparse/sparse-0.4.3.ebuild b/sys-devel/sparse/sparse-0.4.3.ebuild new file mode 100644 index 000000000000..c351211de29d --- /dev/null +++ b/sys-devel/sparse/sparse-0.4.3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" + +inherit eutils multilib flag-o-matic toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/sparse/sparse.git" + inherit git +fi + +DESCRIPTION="C semantic parser" +HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page" + +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" + #KEYWORDS="" +else + SRC_URI="mirror://kernel/software/devel/sparse/dist/${P}.tar.bz2" + KEYWORDS="amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86" +fi + +LICENSE="OSL-1.1" +SLOT="0" +IUSE="gtk xml test" + +RDEPEND="gtk? ( x11-libs/gtk+:2 ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + gtk? ( virtual/pkgconfig ) + xml? ( virtual/pkgconfig )" + +src_prepare() { + # https://cgit.gentoo.org/proj/sparse.git + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +mymake() { + usex() { use $1 && echo ${2:-yes} || echo ${3:-no} ; } + + emake \ + V=1 \ + CC="$(tc-getCC)" \ + GCC_BASE="$(gcc-config -L | cut -d : -f1)" \ + HAVE_LIBXML=$(usex xml) \ + HAVE_GTK2=$(usex gtk) \ + PREFIX=/usr \ + LIBDIR="/usr/$(get_libdir)" \ + DESTDIR="${D}" \ + "$@" \ + || die +} + +src_compile() { + append-flags -fno-strict-aliasing + + mymake \ + $(use test && echo all) all-installable +} + +src_install() { + mymake install + dodoc FAQ README +} diff --git a/sys-devel/sparse/sparse-0.4.4.ebuild b/sys-devel/sparse/sparse-0.4.4.ebuild new file mode 100644 index 000000000000..51173588d3c2 --- /dev/null +++ b/sys-devel/sparse/sparse-0.4.4.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils multilib toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/sparse/sparse.git" + inherit git-2 +fi + +DESCRIPTION="C semantic parser" +HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page" + +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" + #KEYWORDS="" +else + SRC_URI="mirror://kernel/software/devel/sparse/dist/${P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +LICENSE="OSL-1.1" +SLOT="0" +IUSE="gtk test xml" + +RDEPEND="gtk? ( x11-libs/gtk+:2 ) + xml? ( dev-libs/libxml2 )" +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 '/^CFLAGS =/{s:=:+= $(CPPFLAGS):;s:-O2 -finline-functions::}' \ + -e "s:pkg-config:${PKG_CONFIG}:" \ + Makefile || die + export MAKEOPTS+=" V=1 AR=${AR} CC=${CC} HAVE_GTK2=$(usex gtk) HAVE_LIBXML=$(usex xml)" +} + +src_compile() { + emake $(usex test all all-installable) +} diff --git a/sys-devel/sparse/sparse-0.5.0.ebuild b/sys-devel/sparse/sparse-0.5.0.ebuild new file mode 100644 index 000000000000..8771de72828a --- /dev/null +++ b/sys-devel/sparse/sparse-0.5.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils multilib toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/sparse/sparse.git" + inherit git-2 +fi + +DESCRIPTION="C semantic parser" +HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page" + +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" + #KEYWORDS="" +else + SRC_URI="mirror://kernel/software/devel/sparse/dist/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +LICENSE="OSL-1.1" +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 )" + +src_prepare() { + tc-export AR CC PKG_CONFIG + sed -i \ + -e '/^PREFIX=/s:=.*:=/usr:' \ + -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \ + -e '/^CFLAGS =/{s:=:+= $(CPPFLAGS):;s:-O2 -finline-functions::}' \ + -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)" +} + +src_compile() { + emake $(usex test all all-installable) +} diff --git a/sys-devel/sparse/sparse-9999.ebuild b/sys-devel/sparse/sparse-9999.ebuild new file mode 100644 index 000000000000..8771de72828a --- /dev/null +++ b/sys-devel/sparse/sparse-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils multilib toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/sparse/sparse.git" + inherit git-2 +fi + +DESCRIPTION="C semantic parser" +HOMEPAGE="https://sparse.wiki.kernel.org/index.php/Main_Page" + +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" + #KEYWORDS="" +else + SRC_URI="mirror://kernel/software/devel/sparse/dist/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +LICENSE="OSL-1.1" +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 )" + +src_prepare() { + tc-export AR CC PKG_CONFIG + sed -i \ + -e '/^PREFIX=/s:=.*:=/usr:' \ + -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \ + -e '/^CFLAGS =/{s:=:+= $(CPPFLAGS):;s:-O2 -finline-functions::}' \ + -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)" +} + +src_compile() { + emake $(usex test all all-installable) +} |