summaryrefslogtreecommitdiff
blob: fdd127d902c9c0fac896a486e2171ebdcadc2c5a (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-ada/adadoc/adadoc-2.01.ebuild,v 1.6 2005/01/01 17:22:44 eradicator Exp $

inherit eutils gnat

DESCRIPTION="A tool for Ada95 to create documentation from specification packages."

HOMEPAGE="http://adadoc.sourceforge.net"

SRC_URI="mirror://sourceforge/adadoc/${PN}-v${PV}.src.tar.bz2
	mirror://sourceforge/adadoc/UserGuide.pdf
	mirror://sourceforge/adadoc/HowToWriteModule.pdf"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"

IUSE=""

DEPEND="dev-lang/gnat
	>=dev-ada/xmlada-0.7.1-r2"

RDEPEND=""

S=${WORKDIR}/dev

src_unpack() {
	unpack ${PN}-v${PV}.src.tar.bz2
	cd ${S}
	epatch ${FILESDIR}/${P}-xmlada.patch || die "epatch failed"
}

src_compile() {
	${ADAMAKE} adadoc -cargs ${ADACFLAGS} -Itools -Iparser -Imodules `xmlada-config`
}

src_install() {
	dobin adadoc
	insinto /usr/share/doc/adadoc-${PV}
	doins ${DISTDIR}/UserGuide.pdf
	doins ${DISTDIR}/HowToWriteModule.pdf
	insinto /usr/share/adadoc
	doins adadoc_tags.cfg
}