diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2011-09-26 17:18:22 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2011-09-26 17:21:31 +0200 |
commit | 3ce085e0060459941e433cdf42e2a4db9ed7ddce (patch) | |
tree | b0860e314dd20aeff5a5c60b69fb88e5661e67df /dev-util | |
parent | x11-themes/light-themes: 0.1.8.24 (diff) | |
download | betagarden-3ce085e0060459941e433cdf42e2a4db9ed7ddce.tar.gz betagarden-3ce085e0060459941e433cdf42e2a4db9ed7ddce.tar.bz2 betagarden-3ce085e0060459941e433cdf42e2a4db9ed7ddce.zip |
dev-util/ncc: 2.8
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/ncc/Manifest | 4 | ||||
-rw-r--r-- | dev-util/ncc/files/ncc-2.8-flags.patch | 11 | ||||
-rw-r--r-- | dev-util/ncc/metadata.xml | 8 | ||||
-rw-r--r-- | dev-util/ncc/ncc-2.8.ebuild | 57 |
4 files changed, 80 insertions, 0 deletions
diff --git a/dev-util/ncc/Manifest b/dev-util/ncc/Manifest new file mode 100644 index 0000000..51fcb5f --- /dev/null +++ b/dev-util/ncc/Manifest @@ -0,0 +1,4 @@ +AUX ncc-2.8-flags.patch 470 RMD160 e30d6a5b82af57e4f9a4f82c9b74dce3339bc45a SHA1 324c8931c9003d30a8c7d031d7a03d82db2e7194 SHA256 fd646520907bfa4ce965b9319f25a4b174a0d3fea1e9213c15a4916213fc8766 +DIST ncc-2.8.tar.gz 104536 RMD160 dcd8998ff31d1291208bf9ea4ff5a08b2525745d SHA1 96f6d8d76dc0e67a436b7f1acf67503998ad5771 SHA256 669fdd4a747432e8f0a168bd590ce72d042fb706f065c9169468af9301d8a1ae +EBUILD ncc-2.8.ebuild 1166 RMD160 deb1ed1a766fd5605a10ff0cf22bd83358f8d8cb SHA1 322c68d602ab28eb0083e8bb8e7a5089b0392768 SHA256 4d88f8c894363ff9bb878c586563a53308ac3968cd2044f2ecdf0ab2e21c766a +MISC metadata.xml 235 RMD160 e964157be48c204555d79827e1bf79c9d9fb23a5 SHA1 767b5eb408113ae55d84adcb94d44a692285d175 SHA256 095e4ee6b3ae673e7ddf0d4e166a632d3384d6374c6dd86d8c401a8f5c43f7fe diff --git a/dev-util/ncc/files/ncc-2.8-flags.patch b/dev-util/ncc/files/ncc-2.8-flags.patch new file mode 100644 index 0000000..14fdcce --- /dev/null +++ b/dev-util/ncc/files/ncc-2.8-flags.patch @@ -0,0 +1,11 @@ +--- nccnav/Makefile 2011-09-26 17:03:35.747851946 +0200 ++++ nccnav/Makefile 2011-09-26 17:04:25.183234135 +0200 +@@ -6,7 +6,7 @@ + OBJDIR = ../objdir + + $(OBJDIR)/nccnav: nccnav.C $(OBJDIR)/dbstree.o $(OBJDIR)/inttree.o +- $(CC) -g nccnav.C -I.. -lncurses -o nccnav $(OBJDIR)/dbstree.o $(OBJDIR)/inttree.o ++ $(CC) $(LDFLAGS) nccnav.C -I.. -lncurses -o nccnav $(OBJDIR)/dbstree.o $(OBJDIR)/inttree.o + + $(OBJDIR)/dbstree.o: ../dbstree.[Ch] + $(CC) $(CFLAGS) ../dbstree.C -c diff --git a/dev-util/ncc/metadata.xml b/dev-util/ncc/metadata.xml new file mode 100644 index 0000000..16bcc9f --- /dev/null +++ b/dev-util/ncc/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sping@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> +</pkgmetadata> diff --git a/dev-util/ncc/ncc-2.8.ebuild b/dev-util/ncc/ncc-2.8.ebuild new file mode 100644 index 0000000..8b60509 --- /dev/null +++ b/dev-util/ncc/ncc-2.8.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" + +inherit eutils toolchain-funcs + +DESCRIPTION="Compiler that produces program analysis information, an alternative to cflow or cscope" +HOMEPAGE="http://students.ceid.upatras.gr/~sxanth/ncc/" +SRC_URI="http://students.ceid.upatras.gr/~sxanth/${PN}/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch +} + +src_compile() { + emake \ + -C nccnav \ + CC=$(tc-getCXX) \ + CFLAGS="${CFLAGS} -c" \ + LCFLAGS="${CFLAGS} ${LDFLAGS}" \ + -j1 \ + || die + + emake \ + CC=$(tc-getCXX) \ + LCFLAGS="${CFLAGS} ${LDFLAGS}" \ + -j1 \ + || die +} + +src_install() { + dodir \ + /usr/bin \ + /usr/include \ + /usr/share/man/man1 \ + || die + + emake DESTDIR="${D}"/usr install || die + + dodoc doc/{CHANGES,TROUBLES,hacking.*,int8_t.redefined.error,KEYS.txt,NCC} || die + insinto /usr/share/doc/${PF}/ + doins doc/*.c || die + newdoc nccnav/README NCCNAV || die + + newbin scripts/gengraph.py nccgengraph || die + newman scripts/gengraph.py.1 nccgengraph.1 || die +} |