blob: 8a3a6d96eb88642c383cedb8b6b0030d5c01efe6 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ognl/ognl-3.0.8.ebuild,v 1.2 2013/10/02 18:54:44 tomwij Exp $
EAPI="5"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Object-Graph Navigation Language"
HOMEPAGE="http://www.ognl.org/"
SRC_URI="https://github.com/jkuhnert/ognl/archive/OGNL_${PV//./_}.tar.gz
https://ognl.dev.java.net/source/browse/*checkout*/ognl/osbuild.xml"
LICENSE="Apache-1.1"
SLOT="3.0"
KEYWORDS="~amd64 ~x86"
CDEPEND="dev-java/javassist:3"
RDEPEND=">=virtual/jre-1.5
${CDEPEND}"
DEPEND=">=virtual/jdk-1.5
app-arch/unzip
${CDEPEND}"
S="${WORKDIR}/${PN}-OGNL_${PV//./_}"
java_prepare() {
find -name '*.jar' -exec rm -v {} + || die
cp "${DISTDIR}/osbuild.xml" "${S}/" || die
sed "s/\(name=\"compile.version\" value=\"\)1.3\"/\1$(java-pkg_get-source)\"/" \
-i osbuild.xml || die
cd lib/build
java-pkg_jar-from javassist-3
}
EANT_DOC_TARGET="javadocs"
src_install() {
java-pkg_newjar build/ognl-2.7.2.jar ${PN}.jar
use doc && java-pkg_dohtml -r dist/docs/api
use source && java-pkg_dosrc src/java/*
}
|