diff options
author | Jeroen Roovers <jer@gentoo.org> | 2009-10-23 12:31:51 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2009-10-23 12:31:51 +0000 |
commit | 0320d0cbbbee9f891bd3bcd06b98372752ce0bfb (patch) | |
tree | c1e2b50ed63c4da91c8d0416f2325920dcba296d /app-text | |
parent | QA mask for media-video/avidemux-2.5.1_p* (diff) | |
download | historical-0320d0cbbbee9f891bd3bcd06b98372752ce0bfb.tar.gz historical-0320d0cbbbee9f891bd3bcd06b98372752ce0bfb.tar.bz2 historical-0320d0cbbbee9f891bd3bcd06b98372752ce0bfb.zip |
Respect CFLAGS, LDFLAGS (bug #240132), build parallel, separate CFLAGS and CPPFLAGS.
Package-Manager: portage-2.2_rc46/cvs/Linux i686
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/hnb/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/hnb/Manifest | 4 | ||||
-rw-r--r-- | app-text/hnb/files/hnb-1.9.18-flags.patch | 106 | ||||
-rw-r--r-- | app-text/hnb/hnb-1.9.18-r1.ebuild | 37 |
4 files changed, 154 insertions, 2 deletions
diff --git a/app-text/hnb/ChangeLog b/app-text/hnb/ChangeLog index 8e0fffa55510..b7acc350ea22 100644 --- a/app-text/hnb/ChangeLog +++ b/app-text/hnb/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-text/hnb # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/hnb/ChangeLog,v 1.19 2009/07/23 22:31:07 vostorga Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/hnb/ChangeLog,v 1.20 2009/10/23 12:31:50 jer Exp $ + +*hnb-1.9.18-r1 (23 Oct 2009) + + 23 Oct 2009; Jeroen Roovers <jer@gentoo.org> +hnb-1.9.18-r1.ebuild, + +files/hnb-1.9.18-flags.patch: + Respect CFLAGS, LDFLAGS (bug #240132), build parallel, separate CFLAGS and + CPPFLAGS. 23 Jul 2009; VĂctor Ostorga <vostorga@gentoo.org> hnb-1.9.17.ebuild, hnb-1.9.18.ebuild: diff --git a/app-text/hnb/Manifest b/app-text/hnb/Manifest index 7624e3d0c0ed..06f5187968c5 100644 --- a/app-text/hnb/Manifest +++ b/app-text/hnb/Manifest @@ -1,6 +1,8 @@ +AUX hnb-1.9.18-flags.patch 3198 RMD160 9dda00853ffc17baeaefe0fba6baaa0ead38e645 SHA1 d503a9852adec828b762720ebd9860ec4bfdb018 SHA256 d12d00d02bb9d493dc8ff06928406f72366115279b512d0fd93c101c84bbf487 DIST hnb-1.9.17.tar.gz 143700 RMD160 1363eac8a785a3bad2ac319ae38726cd826268cf SHA1 b5204a9bda13b42ef04921e71f52e5bfe5412f13 SHA256 c233c00aaef5b7fb93759d7888c885f99f40aec689a7f3e0d5d8b5797bf80cd4 DIST hnb-1.9.18.tar.gz 166043 RMD160 d2a5da7a5501d83630074703de12fbff6eb3df09 SHA1 dde18ce916cec31d473ac7f95f5106b120422854 SHA256 b9a1e567d904dc9d3eb262e4f6fd46a4494339452333c35d77e154c7b0d5031f EBUILD hnb-1.9.17.ebuild 603 RMD160 fb536e559cc6c44dc192b552f248c95e6c61957f SHA1 8621900f82a75f05185d35bc6fdea8c4c6f9d098 SHA256 5c3f7af44f764bf795d32bfbf232576cdd8203996f95ba45fdc04d8cf2b65c05 +EBUILD hnb-1.9.18-r1.ebuild 766 RMD160 50028d08945ad214a40bd686a9c1478443a4f30c SHA1 af4bb570ffc0da3521b2777583936027ae35732a SHA256 4f49300c3cb13159770c26542800cb3957a0ec7a96110183b1f0bca1db2da83f EBUILD hnb-1.9.18.ebuild 618 RMD160 a2ff09c27e08d2e8ccfb07072b9a7cd0c15cfd04 SHA1 2840a85a69f9d1f4a853d0a7e58c315531f2dd9b SHA256 86a1b0b24f5a8036b767f3e97eaecdfd4ff8d7f6f873728374616cdae45a1f7c -MISC ChangeLog 1983 RMD160 fdfcc2805d47b58ad24e934e9cd10b2cb7dc3a1a SHA1 76c21f9bb929e3751d1db6149aad9f865ba217a5 SHA256 71ee42b97e20cf23c2023b2d3c3f463871f3f971a371783d0a4860dc0920897b +MISC ChangeLog 2201 RMD160 af7b6432e360de8b841594f951bf277602da0408 SHA1 d4c22762baec8b0d05a55a65dd29aa6f3fac1681 SHA256 7d41cdd43f2e72d667310e17d83485a03a61513ae4a1924423b6ea6a7e8f223e MISC metadata.xml 517 RMD160 666ee03634660440df9f4520af06c83da1c5cf97 SHA1 b60dd709e2d2924594843e1bfb5e2043a172bb3b SHA256 846bc7fd7e9c81b772e323e60ac25cebe78e8c16f255c4e73b21f158324678b3 diff --git a/app-text/hnb/files/hnb-1.9.18-flags.patch b/app-text/hnb/files/hnb-1.9.18-flags.patch new file mode 100644 index 000000000000..325ec1187103 --- /dev/null +++ b/app-text/hnb/files/hnb-1.9.18-flags.patch @@ -0,0 +1,106 @@ +--- ./hnb-1.9.18/Makefile.orig 2003-08-27 04:50:58.000000000 +0200 ++++ ./hnb-1.9.18/Makefile 2009-10-23 14:23:16.000000000 +0200 +@@ -1,19 +1,19 @@ + + src/hnb: src/*.c src/*.h src/*.inc src/hnbrc.inc +- (cd src;make) ++ (cd src;$(MAKE)) + install: src/hnb + install -D src/hnb /usr/local/bin/hnb + install -D -m444 doc/hnb.1 /usr/local/man/man1/hnb.1 + clean: +- (cd src;make clean) +- (cd util;make clean) ++ (cd src;$(MAKE) clean) ++ (cd util;$(MAKE) clean) + rm -f *~ + + rcupdate: updaterc + updaterc: src/hnbrc.inc + + src/hnbrc.inc: doc/hnbrc +- (cd util;make) ++ (cd util;$(MAKE)) + echo -n "\"">src/hnbrc.inc + cat doc/hnbrc | util/asc2c >> src/hnbrc.inc + echo "\"">>src/hnbrc.inc +--- ./hnb-1.9.18/hnb-1.9.18/Makefile.orig 2003-08-27 04:50:58.000000000 +0200 ++++ ./hnb-1.9.18/hnb-1.9.18/Makefile 2009-10-23 14:23:16.000000000 +0200 +@@ -1,19 +1,19 @@ + + src/hnb: src/*.c src/*.h src/*.inc src/hnbrc.inc +- (cd src;make) ++ (cd src;$(MAKE)) + install: src/hnb + install -D src/hnb /usr/local/bin/hnb + install -D -m444 doc/hnb.1 /usr/local/man/man1/hnb.1 + clean: +- (cd src;make clean) +- (cd util;make clean) ++ (cd src;$(MAKE) clean) ++ (cd util;$(MAKE) clean) + rm -f *~ + + rcupdate: updaterc + updaterc: src/hnbrc.inc + + src/hnbrc.inc: doc/hnbrc +- (cd util;make) ++ (cd util;$(MAKE)) + echo -n "\"">src/hnbrc.inc + cat doc/hnbrc | util/asc2c >> src/hnbrc.inc + echo "\"">>src/hnbrc.inc +--- ./hnb-1.9.18/src/Makefile.orig 2003-08-27 04:50:58.000000000 +0200 ++++ ./hnb-1.9.18/src/Makefile 2009-10-23 14:23:16.000000000 +0200 +@@ -1,5 +1,6 @@ + LIBS=-lncurses libcli/libcli.a +-CFLAGS=-I.. -Ilibcli -DHAVE_CONFIG_H -Wall -pedantic -g ++CFLAGS+=-Wall -pedantic ++CPPFLAGS+=-I.. -Ilibcli -DHAVE_CONFIG_H + + CFILES=$(wildcard *.c) + OBJS=$(patsubst %.c,%.o,$(CFILES)) +@@ -8,12 +9,12 @@ + $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< + + hnb: libcli/libcli.a Makefile $(OBJS) init_subsystems.c *.h *.inc +- $(CC) -o hnb $(OBJS) $(LIBS) $(CFLAGS) ++ $(CC) -o hnb $(OBJS) $(LIBS) $(CFLAGS) $(LDFLAGS) + # strip hnb + libcli/libcli.a: libcli/*.c +- (cd libcli;make libcli.a) ++ (cd libcli;$(MAKE) libcli.a) + libcli/libcli_p.a: libcli/*.c +- (cd libcli;make libcli_p.a) ++ (cd libcli;$(MAKE) libcli_p.a) + init_subsystems.c: *.c + echo "/* this file is autogenerated, do not edit */">init_subsystems.c + cat *.c | grep "^\!init_" | sort | sed -e "s/^\!/void /g">>init_subsystems.c +@@ -23,7 +24,7 @@ + echo "}">>init_subsystems.c + clean: + rm -f xml_debug hnb $(OBJS) *~ cli_*.inc +- (cd libcli;make clean) ++ (cd libcli;$(MAKE) clean) + hnb_p: *.c libcli/libcli_p.a init_subsystems.c + $(CC) -o hnb_p *.c -pg -lncurses_p libcli/libcli_p.a -I.. -Ilibcli -DHAVE_CONFIG_H + +--- ./hnb-1.9.18/src/libcli/Makefile.orig 2003-08-27 04:50:59.000000000 +0200 ++++ ./hnb-1.9.18/src/libcli/Makefile 2009-10-23 14:25:37.000000000 +0200 +@@ -1,5 +1,3 @@ +-CFLAGS = -Wall +- + OBJS = cli.o cli_history.o cli_tokenize.o + + all: libcli.a libcli.so test-static test-shared +@@ -9,8 +7,8 @@ + libcli.a: $(OBJS) + ar rc libcli.a cli*.o + libcli_p.a: +- $(CC) -pg -c cli.c +- $(CC) -pg -c cli_history.c ++ $(CC) -pg -c cli.c $(CFLAGS) ++ $(CC) -pg -c cli_history.c $(CFLAGS) + ar rcs libcli_p.a cli*.o + libcli.so: $(OBJS) + $(CC) -shared cli*.o -o libcli.so $(CFLAGS) $(LIBS) diff --git a/app-text/hnb/hnb-1.9.18-r1.ebuild b/app-text/hnb/hnb-1.9.18-r1.ebuild new file mode 100644 index 000000000000..b20a85e21cde --- /dev/null +++ b/app-text/hnb/hnb-1.9.18-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/hnb/hnb-1.9.18-r1.ebuild,v 1.1 2009/10/23 12:31:50 jer Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="A program to organize many kinds of data in one place." +SRC_URI="http://hnb.sourceforge.net/.files/${P}.tar.gz" +HOMEPAGE="http://hnb.sourceforge.net/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + for i in $(find . -name Makefile); do + cp -av "${i}"{,.orig} + done + epatch "${FILESDIR}/${P}-flags.patch" +} + +src_compile() { + tc-export CC + default_src_compile +} + +src_install() { + dodoc README doc/hnbrc + doman doc/hnb.1 + dobin src/hnb +} |