blob: 436f113ad658285880422c8da0b32348fb0828e8 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Plugin framework for look-and-feels"
HOMEPAGE="http://java.net/projects/laf-plugin"
SRC_URI="http://www.hartwork.org/public/${P}.tar.bz2"
# i.e. a snapshot of https://svn.java.net/svn/laf-plugin~svn/tags/release_1_0_vile_weed/
LICENSE="BSD"
SLOT="1.0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=virtual/jdk-1.5"
RDEPEND=">=virtual/jre-1.5"
src_prepare() {
mv build{5.0,}.xml || die
# Fix java home
sed \
-e 's|\(<property name="jdk\.home\.java_version_5\.0" value="\)[^"]\+\(" />\)|\1'"${JAVA_HOME}\2|" \
-i build.xml || die
# Remove hard-coded memory limits
sed \
-e 's|memoryMaximumSize="[^"]*" *||g' \
-i build.xml || die
java-pkg-2_src_prepare
mkdir -p build/classes50 || die
}
src_compile() {
eant || die
}
src_install() {
java-pkg_newjar drop/laf-plugin-50.jar laf-plugin.jar || die
dodoc www/index.html || die
}
|