1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="This package provides generic linked-list manipulation routines, plus queues and stacks"
10 HOMEPAGE="http://ohnopub.net/liblist"
11 SRC_URI="ftp://ohnopublishing.net/mirror/${P}.tar.bz2"
15 KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux"
16 IUSE="doc examples static-libs"
18 DEPEND="doc? ( media-gfx/transfig
19 dev-texlive/texlive-metapost
23 econf --docdir="${EPREFIX}"/usr/share/doc/${PF} \
24 $(use_enable doc docs) \
25 $(use_enable examples) \
26 $(use_enable static-libs static)
30 emake DESTDIR="${D}" install || die
35 insinto /usr/share/doc/${PF}/examples
36 doins examples/{*.c,Makefile,README} || die
37 insinto /usr/share/doc/${PF}/examples/cache
38 doins examples/cache/{*.c,README} || die
41 if ! use static-libs; then
42 rm -v "${ED}"/usr/$(get_libdir)/liblist.la || die
44 rm -v "${ED}"/usr/$(get_libdir)/libcache.la || die
50 elog "Note the man pages for this package have been renamed to avoid"
51 elog "name collisions with some system functions, however, the libs"
52 elog "and header files have not been changed."
53 elog "The new names are llist, lcache, lqueue, and lstack."