summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2009-04-20 05:44:09 +0000
committerSteve Arnold <nerdboy@gentoo.org>2009-04-20 05:44:09 +0000
commit75ad1fe2d29daf6a71338c8ff26797954e6852a7 (patch)
treec27da340a107e53377974187122634d8d2730c1b /dev-libs/liblist
parentSkip pkcs11/kerberos support when USE=static by Alon Bar-Lev #266404 by Jan P... (diff)
downloadhistorical-75ad1fe2d29daf6a71338c8ff26797954e6852a7.tar.gz
historical-75ad1fe2d29daf6a71338c8ff26797954e6852a7.tar.bz2
historical-75ad1fe2d29daf6a71338c8ff26797954e6852a7.zip
New ebuild for a generic list library, a required dependency for ferret.
Package-Manager: portage-2.2_rc30/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/liblist')
-rw-r--r--dev-libs/liblist/ChangeLog12
-rw-r--r--dev-libs/liblist/Manifest4
-rw-r--r--dev-libs/liblist/liblist-2.1.ebuild58
-rw-r--r--dev-libs/liblist/metadata.xml13
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-libs/liblist/ChangeLog b/dev-libs/liblist/ChangeLog
new file mode 100644
index 000000000000..dabb63b440cd
--- /dev/null
+++ b/dev-libs/liblist/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-libs/liblist
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblist/ChangeLog,v 1.1 2009/04/20 05:44:09 nerdboy Exp $
+
+*liblist-2.1 (20 Apr 2009)
+
+ 20 Apr 2009; Steve Arnold <nerdboy@gentoo.org> +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
index 000000000000..e655b0f390ce
--- /dev/null
+++ b/dev-libs/liblist/Manifest
@@ -0,0 +1,4 @@
+DIST liblist-2.1.tar.gz 107284 RMD160 174b777d4479af9459e5d47a21d7eee7083bd795 SHA1 eead30d6c5f9b3522ac7b168bc43f6c7f20a2ef2 SHA256 0835c5b58bad54ca7ad684fb9d51fd1ce8c80a7875698a4bd8367dc3375e623f
+EBUILD liblist-2.1.ebuild 1612 RMD160 9e3f94f56b138531910ff6e3cd659dcacf8a8374 SHA1 af80a7602a9d750074c117b5d562cda3af18ddc2 SHA256 fa64c66669c0e2e843977cbfc404f7afda0faa53b85e0086988b4f0d5a22e12c
+MISC ChangeLog 518 RMD160 e8f48d687aad5dc46487db206ce76e58f7faaad9 SHA1 1e1b820abe02c0151a45e9c92b9132cb85c66c67 SHA256 16308822d03c7fac350ae0c6c668c75b732b1c4772e60aa9990d77415d741abe
+MISC metadata.xml 473 RMD160 97667dfa400a624c3ba66fbaefa5bb5bf592c485 SHA1 8ab2e330cbc7993d95c0492ae14540ab5e0177ac SHA256 197f1543dd37a80c8de5ee4083d4eb659c8be038483895e11225c68e93da11f1
diff --git a/dev-libs/liblist/liblist-2.1.ebuild b/dev-libs/liblist/liblist-2.1.ebuild
new file mode 100644
index 000000000000..35be0f9a4ea3
--- /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/metadata.xml b/dev-libs/liblist/metadata.xml
new file mode 100644
index 000000000000..6029c92531f6
--- /dev/null
+++ b/dev-libs/liblist/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>dev-tools</herd>
+ <maintainer>
+ <email>nerdboy@gentoo.org</email>
+ <description>Primary maintainer</description>
+ </maintainer>
+ <longdescription>
+ This package provides generic linked-list manipulation routines. In addition,
+ queue and stack abstractions are provided by single header files.
+ </longdescription>
+</pkgmetadata>