blob: 1430d63b5f76f7610553830c13b7cf4486126862 (
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
46
47
48
49
50
51
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/ndoc/ndoc-1.3.1.ebuild,v 1.1 2005/04/02 18:36:42 urilith Exp $
inherit mono
DESCRIPTION=".NET Documentation Tool"
HOMEPAGE="http://ndoc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-devel-v${PV}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="debug"
DEPEND=">=dev-lang/mono-1.0
>=dev-dotnet/nant-0.85_rc2"
RDEPEND=">=dev-lang/mono-1.0"
S=${WORKDIR}
src_compile() {
nant -t:mono-1.0 || die
}
GAC_FILES="NDoc.Core.dll NDoc.Documenter.JavaDoc.dll NDoc.Documenter.Latex.dll NDoc.Documenter.LinearHtml.dll NDoc.Documenter.Msdn.dll NDoc.Documenter.Msdn2.dll NDoc.Documenter.Xml.dll NDoc.ExtendedUI.dll NDoc.VisualStudio.dll"
src_install() {
cd ${S}/bin/mono/1.0
# This installs all of the dll files under the specified gac package
# directory.
for dll in $GAC_FILES; do
gacutil -i $dll -package ndoc -root ${D}/usr/lib || die "Failed to install DLL into the Global Assembly Cache."
done
DEBUG_VAR=""
use debug && DEBUG_VAR="--debug"
cat > ndoc <<- EOF
#!/bin/bash
mono $DEBUG_VAR /usr/share/ndoc/NDocConsole.exe "\$@"
EOF
insinto ${D}/usr/share/ndoc/
doins NDocConsole.exe
dobin ndoc
}
|