blob: 3c92f5d90dd9df26020f95de6e0bb8adadec1558 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/argtable/argtable-2.4.ebuild,v 1.3 2005/05/06 12:09:07 ka0ttic Exp $
inherit eutils
DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss"
HOMEPAGE="http://argtable.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE="doc debug"
RDEPEND="virtual/libc"
S="${WORKDIR}/argtable2"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-fix-makefile.diff
}
src_compile() {
econf $(use_enable debug) || die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc history.txt readme.txt
if use doc ; then
cd ${S}/doc
dohtml *.html *.gif
dodoc *.pdf *.ps
cd ${S}/example
docinto examples
dodoc Makefile *.[ch] README.txt
fi
}
|