diff --git a/dev-libs/liblist/ChangeLog b/dev-libs/liblist/ChangeLog new file mode 100644 --- /dev/null +++ b/dev-libs/liblist/ChangeLog @@ -0,0 +1,28 @@ +# ChangeLog for dev-libs/liblist +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblist/ChangeLog,v 1.4 2010/06/19 16:37:01 nerdboy Exp $ + +*liblist-2.3.1 (19 Jun 2010) + + 19 Jun 2010; Steve Arnold +liblist-2.3.1.ebuild: + Updated to new 'binki-version' who is now the upstream maintainer (yay). + + 03 Jan 2010; Steve Arnold liblist-2.1-r1.ebuild, + files/liblist-2.1-sharedlib.patch: + Updated patch and converted to EAPI2. + +*liblist-2.1-r1 (05 Dec 2009) + + 05 Dec 2009; Steve Arnold +liblist-2.1-r1.ebuild, + +files/liblist-2.1-sharedlib.patch: + Lemony-fresh rev-bump, now with shared library support. Closes bug #294788. + Manifest issue also fixed (closes bug #294785). + +*liblist-2.1 (20 Apr 2009) + + 20 Apr 2009; Steve Arnold +metadata.xml, + +liblist-2.1.ebuild: + New ebuild for a generic list library, a required dependency for ferret. + Updated source code hosted by me (no upstream URL anymore). Comes with + a nice technical paper and example routines. + diff --git a/dev-libs/liblist/Manifest b/dev-libs/liblist/Manifest new file mode 100644 --- /dev/null +++ b/dev-libs/liblist/Manifest @@ -0,0 +1,8 @@ +AUX liblist-2.1-sharedlib.patch 1611 RMD160 c52418b6002fd441dafe3bae2758067d82852d2c SHA1 0ede888d88e4f8dcb83070db191c43241fc40dc7 SHA256 8d38f0afd52d25d7b480a81eb2249c9a80151c95b986d9a71db9417e5aba89d0 +DIST liblist-2.1.tar.gz 107284 RMD160 174b777d4479af9459e5d47a21d7eee7083bd795 SHA1 eead30d6c5f9b3522ac7b168bc43f6c7f20a2ef2 SHA256 0835c5b58bad54ca7ad684fb9d51fd1ce8c80a7875698a4bd8367dc3375e623f +DIST liblist-2.3.1.tar.bz2 257253 RMD160 f42ea23c7a6ba46e8361e3c3fb06852308abc212 SHA1 377bb4a18ab04eae938265226c9d73ac24bb0876 SHA256 a956e9c48a5aadecafdc3916eacf2b6cff1eb23e1c40a3119bba2f2a1b4d82a3 +EBUILD liblist-2.1-r1.ebuild 1687 RMD160 9b11c283a987aa2906594519fd71731fb48fac2a SHA1 3833e5a069f2025541bf672439de93bac6576d80 SHA256 f978511b9bd2e4c88ddeb9ae327d43378353a843efb62b8735325f757e2caa03 +EBUILD liblist-2.1.ebuild 1612 RMD160 9e3f94f56b138531910ff6e3cd659dcacf8a8374 SHA1 af80a7602a9d750074c117b5d562cda3af18ddc2 SHA256 fa64c66669c0e2e843977cbfc404f7afda0faa53b85e0086988b4f0d5a22e12c +EBUILD liblist-2.3.1.ebuild 1365 RMD160 dd548848522d34674aa0bce256577cbc8caaab47 SHA1 441799fe9e1d85375273383150fb68fb8aa27a80 SHA256 c9edae52497c0cda1a9b2c17bf9674eaefd55be9de963d41a52f9d20205fedf2 +MISC ChangeLog 1117 RMD160 1e190c22046d790b5a5438af413eb07f1b6ea7e8 SHA1 e0aab96183792b97df2bc0801ae710e1d4f2b97c SHA256 e7f28e8114ca4a102e1062a579efb7bdfe77c91043acaafa338f587838d28603 +MISC metadata.xml 473 RMD160 97667dfa400a624c3ba66fbaefa5bb5bf592c485 SHA1 8ab2e330cbc7993d95c0492ae14540ab5e0177ac SHA256 197f1543dd37a80c8de5ee4083d4eb659c8be038483895e11225c68e93da11f1 diff --git a/dev-libs/liblist/files/liblist-2.1-sharedlib.patch b/dev-libs/liblist/files/liblist-2.1-sharedlib.patch new file mode 100644 --- /dev/null +++ b/dev-libs/liblist/files/liblist-2.1-sharedlib.patch @@ -0,0 +1,57 @@ +--- Makefile.orig 2009-11-27 12:04:33.000000000 -0800 ++++ Makefile 2009-11-27 12:11:47.786739617 -0800 +@@ -25,12 +25,22 @@ + LIBS = -L. -llist + #LIBS = -L . -llist # Use this for HP-UX; great loader guys! + CPP = cpp -E -P -C ++CC = cc ++LD = cc + MANDIR = /usr/share/man + LIBDIR = /usr/lib + INCDIR = /usr/include + + #add macro for ranlib 4/96 *kob* - ranlib doesn't exist on solaris + RANLIB = ls ++LN = ln -s ++ ++# try making shared lib (SLA 11/2009) ++SHARED = liblist.so ++LDFLAGS += -L$(LIBDIR) ++MKOBJ = $(CC) -fPIC -c list.c -I$(INCDIR) ++MKSO = -shared -Wl,-soname,$(SHARED) ++SOVER = 0.0 + + # We specify some goofy dependencies between the man pages and the source, + # because the man page reflects whether USE_MACROS was specified. Thus, +@@ -42,8 +52,16 @@ + (cd examples; make) + + liblist.a: list.o ++ @echo "Making static lib ..." + ar rc liblist.a list.o + $(RANLIB) liblist.a ++ @echo "done" ++ @echo "Making shared lib $(SHARED) ..." ++ $(MKOBJ) -I. ++ $(LD) -I. $(MKSO) list.o -o $(SHARED).$(SOVER) $(LDFLAGS) ++ $(LN) $(SHARED).$(SOVER) $(SHARED).0 ++ $(LN) $(SHARED).$(SOVER) $(SHARED) ++ @echo "done" + + list.o: list.h list.3 Makefile + +@@ -62,6 +80,7 @@ + install: + install -c liblist.a $(DESTDIR)$(LIBDIR) + $(RANLIB) $(DESTDIR)$(LIBDIR)/liblist.a ++ install -c liblist.so $(DESTDIR)$(LIBDIR) + install -c list.h $(DESTDIR)$(INCDIR) + install -c queue.h $(DESTDIR)$(INCDIR) + install -c stack.h $(DESTDIR)$(INCDIR) +@@ -73,5 +92,5 @@ + install -c stack.3 $(DESTDIR)$(MANDIR)/man3 + + clean: +- rm -f *.o *.a list.h *.3 core ++ rm -f *.o *.a *.so list.h *.3 core + (cd examples; make clean) diff --git a/dev-libs/liblist/liblist-2.1-r1.ebuild b/dev-libs/liblist/liblist-2.1-r1.ebuild new file mode 100644 --- /dev/null +++ b/dev-libs/liblist/liblist-2.1-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblist/liblist-2.1-r1.ebuild,v 1.2 2010/01/03 05:27:01 nerdboy Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="This package provides generic linked-list manipulation routines, plus queues and stacks." +HOMEPAGE="http://www.gentoogeek.org/viewvc/C/liblist/" +SRC_URI="http://www.gentoogeek.org/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc examples" + +src_prepare() { + epatch "${FILESDIR}"/${P}-sharedlib.patch + sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" Makefile \ + examples/cache/Makefile || die "sed 1 failed" +} + +src_compile() { + make CC="$(tc-getCC)" LD="$(tc-getCC)" \ + || die "make failed" +} + +src_install() { + newman list.3 llist.3 + newman stack.man lstack.3 + newman queue.man lqueue.3 + dolib.a ${PN}.a + dolib.so ${PN}.so* + insinto /usr/include + doins list.h queue.h stack.h + dodoc README + + if use examples; then + dolib.a examples/cache/libcache.a + dobin examples/cache/cachetest + newman cache.3 lcache.3 + insinto /usr/share/doc/${P}/examples + doins examples/{*.c,Makefile,README} + insinto /usr/share/doc/${P}/examples/cache + doins examples/cache/{*.c,Makefile,README} + doins + fi + + if use doc; then + insinto /usr/share/doc/${P} + doins paper/paper.ps + fi +} + +pkg_postinst() { + elog "Note the man pages for this package have been renamed to avoid" + elog "name collisions with some system functions, however, the libs" + elog "and header files have not been changed." + elog "The new names are llist, lcache, lqueue, and lstack." +} diff --git a/dev-libs/liblist/liblist-2.1.ebuild b/dev-libs/liblist/liblist-2.1.ebuild new file mode 100644 --- /dev/null +++ b/dev-libs/liblist/liblist-2.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblist/liblist-2.1.ebuild,v 1.1 2009/04/20 05:44:09 nerdboy Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="This package provides generic linked-list manipulation routines, plus queues and stacks." +HOMEPAGE="http://www.gentoogeek.org/viewvc/C/liblist/" +SRC_URI="http://www.gentoogeek.org/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc examples" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" Makefile \ + examples/cache/Makefile || die "sed 1 failed" +} + +src_compile() { + make CC="$(tc-getCC)" || die "make failed" +} + +src_install() { + newman list.3 llist.3 + newman stack.man lstack.3 + newman queue.man lqueue.3 + dolib.a liblist.a + insinto /usr/include + doins list.h queue.h stack.h + dodoc README + + if use examples; then + dolib.a examples/cache/libcache.a + dobin examples/cache/cachetest + newman cache.3 lcache.3 + insinto /usr/share/doc/${P}/examples + doins examples/{*.c,Makefile,README} + insinto /usr/share/doc/${P}/examples/cache + doins examples/cache/{*.c,Makefile,README} + doins + fi + + if use doc; then + insinto /usr/share/doc/${P} + doins paper/paper.ps + fi +} + +pkg_postinst() { + elog "Note the man pages for this package have been renamed to avoid" + elog "name collisions with some system functions, however, the libs" + elog "and header files have not been changed." + elog "The new names are llist, lcache, lqueue, and lstack." +} diff --git a/dev-libs/liblist/liblist-2.3.1.ebuild b/dev-libs/liblist/liblist-2.3.1.ebuild new file mode 100644 --- /dev/null +++ b/dev-libs/liblist/liblist-2.3.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblist/liblist-2.3.1.ebuild,v 1.1 2010/06/19 16:37:01 nerdboy Exp $ + +EAPI=2 + +inherit multilib + +DESCRIPTION="This package provides generic linked-list manipulation routines, plus queues and stacks" +HOMEPAGE="http://ohnopub.net/liblist" +SRC_URI="ftp://ohnopublishing.net/mirror/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc examples static-libs" + +src_configure() { + econf $(use_enable doc docs) \ + $(use_enable examples) \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc README || die + + if use examples; then + insinto /usr/share/doc/${P}/examples + doins examples/{*.c,Makefile,README} || die + insinto /usr/share/doc/${P}/examples/cache + doins examples/cache/{*.c,README} || die + fi + + if ! use static-libs; then + rm -v "${D}"/usr/$(get_libdir)/liblist.la || die + if use examples; then + rm -v "${D}"/usr/$(get_libdir)/libcache.la || die + fi + fi +} + +pkg_postinst() { + elog "Note the man pages for this package have been renamed to avoid" + elog "name collisions with some system functions, however, the libs" + elog "and header files have not been changed." + elog "The new names are llist, lcache, lqueue, and lstack." +} diff --git a/dev-libs/liblist/metadata.xml b/dev-libs/liblist/metadata.xml new file mode 100644 --- /dev/null +++ b/dev-libs/liblist/metadata.xml @@ -0,0 +1,13 @@ + + + + dev-tools + + nerdboy@gentoo.org + Primary maintainer + + + This package provides generic linked-list manipulation routines. In addition, + queue and stack abstractions are provided by single header files. + +