blob: 92962aa7a24bb10701942181927b213410af86e3 (
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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jakartacommons/jakartacommons-0.4.3.ebuild,v 1.2 2004/10/20 07:50:41 absinthe Exp $
inherit java-pkg eutils
DESCRIPTION="jedit plugin: The JakartaCommons plugin provides a single point of dependency for plugins needing to use Apache Jakarta libraries. Currently included are BCEL, commons-collections, and commons-logging."
HOMEPAGE="http://plugins.jedit.org/plugins/?JakartaCommons"
SRC_URI="mirror://sourceforge/jedit-plugins/JakartaCommons-${PV}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=app-editors/jedit-4.2
dev-java/ant"
RDEPEND="dev-java/bcel
dev-java/commons-collections
>=dev-java/commons-httpclient-2.0.1
>=dev-java/commons-lang-2.0
dev-java/commons-logging
dev-java/log4j"
S=${WORKDIR}/JakartaCommons
src_unpack() {
unpack ${A}
rm -f *.jar
cd ${S}
epatch ${FILESDIR}/props.patch
}
src_compile() {
ant dist -Djedit.install.dir=/usr/share/jedit -Dinstall.dir=. || die "compile failed"
}
src_install() {
java-pkg_dojar JakartaCommons.jar
dodir /usr/share/jedit/jars
dosym /usr/share/${PN}/lib/JakartaCommons.jar /usr/share/jedit/jars/JakartaCommons.jar
local libs="bcel commons-collections commons-httpclient commons-lang commons-logging log4j"
for lib in ${libs}; do
dosym /usr/share/${lib}/lib/${lib}.jar /usr/share/jedit/jars/${lib}.jar
done
}
|