blob: 2ae8b1b0abcb9550a0594c2866f0afff7355ee13 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jdictrayapi/jdictrayapi-0.9.1-r3.ebuild,v 1.3 2009/01/14 14:30:05 caster Exp $
JAVA_PKG_IUSE="doc source"
inherit eutils java-pkg-2 java-ant-2
MY_PN="jdic"
MY_P=${MY_PN}-${PV}
DESCRIPTION="The JDesktop Integration Components (JDIC) tray icon API"
HOMEPAGE="https://jdic.dev.java.net/"
SRC_URI="https://jdic.dev.java.net/files/documents/880/16466/${MY_P}-src.zip"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="examples"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip"
RDEPEND="|| ( =virtual/jre-1.4* =virtual/jre-1.5* )"
S="${WORKDIR}/${MY_P}-src/${MY_PN}"
#Patch takes care of it
JAVA_PKG_BSFIX="off"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/0.8.7-gentoo.patch"
epatch "${FILESDIR}/fix-ctray-libarch.patch"
find -type d -name CVS -exec rm -r {} \; >/dev/null 2>&1
}
src_compile() {
eant buildunixjar buildunixjni_tray $(use_doc docs)
}
src_install() {
cd "${S}/dist/linux"
java-pkg_dojar jdic.jar
java-pkg_doso libtray.so
use doc && java-pkg_dojavadoc "${S}/../docs"
use source && java-pkg_dosrc "${S}/src/share/classes/*" "${S}/src/unix/classes/*"
if use examples; then
dodir "/usr/share/doc/${PF}/examples"
cp -r "${S}/demo/Tray/*" "${D}/usr/share/doc/${PF}/examples/"
fi
}
|