blob: d80531cbf5ee74480ffba5a74a562fd32ab253cc (
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
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/argouml/argouml-0.19.6.ebuild,v 1.3 2006/02/24 05:11:47 vapier Exp $
inherit java-pkg-2 java-ant-2
DESCRIPTION="modelling tool that helps you do your design using UML"
HOMEPAGE="http://argouml.tigris.org"
MY_PN="ArgoUML"
MY_P="${MY_PN}-${PV}"
SRC_URI="http://argouml-downloads.tigris.org/nonav/${P}/${MY_P}-src.tar.gz
doc? ( http://argouml-downloads.tigris.org/nonav/${P}/argomanual-${PV}.pdf
http://argouml-downloads.tigris.org/nonav/${P}/quickguide-${PV}.pdf
http://argouml-downloads.tigris.org/nonav/${P}/cookbook-${PV}.pdf )"
LICENSE="BSD"
SLOT="0"
#KEYWORDS="~amd64 ~ppc ~ppc-macos ~x86"
KEYWORDS="-*"
IUSE="doc"
RESTRICT="nomirror"
RDEPEND=">=virtual/jre-1.3
dev-java/swidgets
dev-java/gef
dev-java/toolbar
dev-java/log4j"
DEPEND=">=virtual/jdk-1.3
${RDEPEND}"
S=${WORKDIR}/${PN}/src_new
src_compile() {
mkdir -p "${S}/../tests/testmodels"
eant \
-Dswidgets.jar.path="$(java-pkg_getjar swidgets swidgets.jar)" \
-Dgef.jar.path="$(java-pkg_getjar gef gef.jar)" \
-Dtoolbar.jar.path="$(java-pkg_getjar toolbar toolbar.jar)" \
-Dlog4j.jar.path="$(java-pkg_getjar log4j log4j.jar)"
}
src_install() {
dodir /opt/${PN}/lib/
cp -pPR . ${D}/opt/${PN}/lib/ || die
chmod -R 755 ${D}/opt/${PN}
touch ${D}/opt/${PN}/lib/argouml.log
chmod a+w ${D}/opt/${PN}/lib/argouml.log
echo "#!/bin/sh" > ${PN}
echo "cd /opt/${PN}/lib" >> ${PN}
echo 'java -jar argouml.jar' >> ${PN}
into /opt
dobin ${PN}
dodoc README.txt
if use doc ; then
insinto /usr/share/doc/${P}
doins ${DISTDIR}/argomanual-${PV}.pdf
doins ${DISTDIR}/quickguide-${PV}.pdf
doins ${DISTDIR}/cookbook-${PV}.pdf
fi
}
|