From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-text/hnb/Manifest | 8 +++ app-text/hnb/files/hnb-1.9.18-flags.patch | 83 +++++++++++++++++++++++++++++ app-text/hnb/files/hnb-1.9.18-include.patch | 13 +++++ app-text/hnb/files/hnb-1.9.18-printf.patch | 11 ++++ app-text/hnb/hnb-1.9.18-r1.ebuild | 40 ++++++++++++++ app-text/hnb/metadata.xml | 14 +++++ 6 files changed, 169 insertions(+) create mode 100644 app-text/hnb/Manifest create mode 100644 app-text/hnb/files/hnb-1.9.18-flags.patch create mode 100644 app-text/hnb/files/hnb-1.9.18-include.patch create mode 100644 app-text/hnb/files/hnb-1.9.18-printf.patch create mode 100644 app-text/hnb/hnb-1.9.18-r1.ebuild create mode 100644 app-text/hnb/metadata.xml (limited to 'app-text/hnb') diff --git a/app-text/hnb/Manifest b/app-text/hnb/Manifest new file mode 100644 index 000000000000..36b0ff34d400 --- /dev/null +++ b/app-text/hnb/Manifest @@ -0,0 +1,8 @@ +AUX hnb-1.9.18-flags.patch 2527 SHA256 f416fc5021b03b1229cfa3aa59ef5d0d19e44212a639219ef5ccac92886d6622 SHA512 672e8836a0766d0b922359572aff8319aa701a10863fb618bcd74c52980303d0e3158f3de7ca50cb05367296c7121c510a4e900d60721dee33b4e657a8a07e5a WHIRLPOOL e9449ed3f9743b1d9935bd36e0729ff73e2104e77d47348a9172e4f92f4fa08b9e9ffc8bec85d80b5428fc636be939802e3930b26e275902aa1566a82bf9908a +AUX hnb-1.9.18-include.patch 244 SHA256 f16316a5f26ae4e279a3a9c275089b925065817dd7541aca4b56ff81c6cf71ed SHA512 5fa1b46221068885d9d2e2bde2f647c9f6756173af2f6568e4f32a00f64d6d753ed2aa2b841f7c1206afbd3d6af849bc374e8a29e84d2140c68cfa6627f4cb62 WHIRLPOOL 86702ebebca9133c308e6f6cbfe6f8cc4d37becd910adf774fa9e934e2d3667912a39c6f9673c38334c6742c25424492006dc8e0f22da9305261aa61beca579c +AUX hnb-1.9.18-printf.patch 216 SHA256 91a6b0397a0f01104b76eb49e9ddc4aa2792eb420be8f28bb5f36481b7c17371 SHA512 2638a268020ca55619be92921698e82d540b1f7bf75af3014339ae7e5f674e9f28e3618bd195f0e946f5276c0c2464e2336883db90af2036d2b356f1c9680e53 WHIRLPOOL 53c83e579c09883eec2eb39749743abda7dc9bf3dc5cdc86f623c6687315950f093a3ba855792b346a16309c919225660a84a530fdb3d5e0b36637e23b059af4 +DIST hnb-1.9.18.tar.gz 166043 SHA256 b9a1e567d904dc9d3eb262e4f6fd46a4494339452333c35d77e154c7b0d5031f SHA512 9919a5d6512b6da3d19cc8efbed21d4452a2f6a343a38758c36728f73415b6e8ad57e24ff3eec17eb4e1e53b458d579c165ae1ad906f5b75f2fd42897159a30f WHIRLPOOL 713bb592a3122e7fcaad0a6378134dbf6055d41004020bef4ddff0d1ac59ff596337b41b54792726cb170c8155ac4bf2ce4e9d0ebddb1ea5f403c0802e45330e +EBUILD hnb-1.9.18-r1.ebuild 794 SHA256 bfaeade11a4f5352f1d042c1bcc8aa4e8b93320b3e0814ab5a227306a45322bd SHA512 642fde554203fa300e8b883a8580a85207d0ad34e4c5382f90ca5f79f9152a8c8bdcfb376b7211ecf6f0618fb7eb0b79e277cb04c75ca9c39054b927afa8a833 WHIRLPOOL 9d7fb8a08b5cff5e248a4e41578ec27abcffebaa307be7db0fd579efe667361c899c834816992574462125471e214187ace059dce69aec3804ccca96403a3929 +MISC ChangeLog 3162 SHA256 e82f1c20d4e0b69cd54027ee385691a4f5c0134a789329def26b3221edb5ff7b SHA512 bd8621947db620f63fe4e21114bc03a1c0f299c8f41e792af60c391da25a7d7c73aa76f77659b2296dcdfc0a45831eb32c40f43e38e50a715e0da834ab5c2d55 WHIRLPOOL 4d8b6db4cda1657082ca2304bdc050a79d6ebc3c835ce0f06c5c82f1a128a6468170838a3ca4b1c7a24f0b7c95894e4b0501288d3887c63083ba04775139d43e +MISC ChangeLog-2015 3673 SHA256 6b81cb55e5f4cfc990e4b2d37e09a6b7bdf398341e421e2a9465dfa0abcd0b72 SHA512 b92030ac8b3f7e8bdf548b5947bb5ca3cbac6ec91b2c45694f0b2fa081db50fe9c0868a3ab160014ab6c937c6fb42b605a952879348b4d1e1614dbb6a102542f WHIRLPOOL cca085abfd2bf7f9cc43648c7d82e18c71e3f89da7f36b48c6e629297ab62c865890a301cc191504c15f21bb69438fcd267e381c4e5c1d1803bb9b18effaf159 +MISC metadata.xml 521 SHA256 e3f47ea9872680c9a8a6e553f94c10e5b4bb4131765b173ade539c8b22b5d4f3 SHA512 109d368df00aef9bb47380f20afb9695a877425a557ff188d16c37037160c6342cd6533f858ca224d197ce1b4c21e7b456584753de264e412d0b22a3cb16d903 WHIRLPOOL 11730725762e609f0f101309716c60b4dd31fb7d81b62a21fbe72dc3abce7658f4c0c99d8523bf4d845ead504e1c92129ddf1ecb2e3f7ed7a88b3204f7a13b86 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..4111b7078d70 --- /dev/null +++ b/app-text/hnb/files/hnb-1.9.18-flags.patch @@ -0,0 +1,83 @@ +--- a/Makefile ++++ b/Makefile +@@ -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 +--- a/src/Makefile ++++ b/src/Makefile +@@ -1,5 +1,6 @@ +-LIBS=-lncurses libcli/libcli.a +-CFLAGS=-I.. -Ilibcli -DHAVE_CONFIG_H -Wall -pedantic -g ++LIBS=$(shell ${PKG_CONFIG} --libs ncurses) libcli/libcli.a ++CFLAGS+=-Wall -pedantic ++CPPFLAGS+=-I.. -Ilibcli -DHAVE_CONFIG_H + + CFILES=$(wildcard *.c) + OBJS=$(patsubst %.c,%.o,$(CFILES)) +@@ -8,22 +9,22 @@ + $(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) +-init_subsystems.c: *.c ++ (cd libcli;$(MAKE) libcli_p.a) ++init_subsystems.c: $(CFILES) + echo "/* this file is autogenerated, do not edit */">init_subsystems.c +- cat *.c | grep "^\!init_" | sort | sed -e "s/^\!/void /g">>init_subsystems.c ++ cat $(CFILES) | grep "^\!init_" | sort | sed -e "s/^\!/void /g">>init_subsystems.c + echo "">>init_subsystems.c + echo "void init_subsystems(){">>init_subsystems.c +- cat *.c | grep "^\!init_" | sort | sed -e "s/^\!/ /g">>init_subsystems.c ++ cat $(CFILES) | grep "^\!init_" | sort | sed -e "s/^\!/ /g">>init_subsystems.c + 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 + +--- a/src/libcli/Makefile ++++ b/src/libcli/Makefile +@@ -7,11 +7,11 @@ + clean: + rm -f *.o *.a *.so test-s* *~ + libcli.a: $(OBJS) +- ar rc libcli.a cli*.o ++ $(AR) rc libcli.a cli*.o + libcli_p.a: + $(CC) -pg -c cli.c + $(CC) -pg -c cli_history.c +- ar rcs libcli_p.a cli*.o ++ $(AR) rcs libcli_p.a cli*.o + libcli.so: $(OBJS) + $(CC) -shared cli*.o -o libcli.so $(CFLAGS) $(LIBS) + test-static: test.o libcli.a diff --git a/app-text/hnb/files/hnb-1.9.18-include.patch b/app-text/hnb/files/hnb-1.9.18-include.patch new file mode 100644 index 000000000000..9ee57a351d51 --- /dev/null +++ b/app-text/hnb/files/hnb-1.9.18-include.patch @@ -0,0 +1,13 @@ +--- a/src/expanded.c ++++ b/src/expanded.c +@@ -18,9 +18,9 @@ + * Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include + #include "tree.h" + #include "cli.h" +-#define NULL 0 + + #include "evilloop.h" + #include "ctype.h" diff --git a/app-text/hnb/files/hnb-1.9.18-printf.patch b/app-text/hnb/files/hnb-1.9.18-printf.patch new file mode 100644 index 000000000000..d8ac27efb643 --- /dev/null +++ b/app-text/hnb/files/hnb-1.9.18-printf.patch @@ -0,0 +1,11 @@ +--- a/src/libcli/cli.c ++++ b/src/libcli/cli.c +@@ -57,7 +57,7 @@ + wp=word; + *wp='\0'; + } else { +- printf(tbuf);printf("\n"); ++ printf("%s\n", tbuf); + bp=tbuf; + *bp='\0'; + strcpy(bp,word); 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..a38796bc73be --- /dev/null +++ b/app-text/hnb/hnb-1.9.18-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="A program to organize many kinds of data in one place" +HOMEPAGE="http://hnb.sourceforge.net/" +SRC_URI="http://hnb.sourceforge.net/.files/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 ppc ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" + +RDEPEND="sys-libs/ncurses" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + rm -r ${P} || die + rm src/cli_history.o || die + + epatch \ + "${FILESDIR}"/${P}-flags.patch \ + "${FILESDIR}"/${P}-include.patch \ + "${FILESDIR}"/${P}-printf.patch + + tc-export AR CC PKG_CONFIG + + # bug #532552 + export LC_ALL=C +} + +src_install() { + dodoc README doc/hnbrc + doman doc/hnb.1 + dobin src/hnb +} diff --git a/app-text/hnb/metadata.xml b/app-text/hnb/metadata.xml new file mode 100644 index 000000000000..b426f3b5f745 --- /dev/null +++ b/app-text/hnb/metadata.xml @@ -0,0 +1,14 @@ + + + + + + hnb is a program to organize many kinds of data in one place, including + addresses, TODO lists, ideas, book reviews, brainstorming, speech + outlines, etc. It stores data in XML format, and is capable of native + export to ASCII and HTML. + + + hnb + + -- cgit v1.2.3