1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools-utils multilib
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 RDEPEND="doc? ( media-gfx/transfig
19 dev-texlive/texlive-metapost
25 --docdir="${EPREFIX}"/usr/share/doc/${PF}
26 $(use_enable doc docs)
27 $(use_enable examples)
30 autotools-utils_src_configure
34 autotools-utils_src_install
39 insinto /usr/share/doc/${PF}/examples
40 doins examples/{*.c,Makefile,README}
41 insinto /usr/share/doc/${PF}/examples/cache
42 doins examples/cache/{*.c,README}
45 docompress -x /usr/share/doc/${PF}/{list.0,paper.dvi,examples}
49 elog "Note that man pages for this package have been renamed to avoid"
50 elog "name collisions with some system functions. However, the libs"
51 elog "and header files have not been changed."
52 elog "The new names are liblist, lcache, liblist_queue, and liblist_stack."