blob: 55edd027ca51a4c8d0c632e17b8fd42a2cf9a45a (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/channeleditor/channeleditor-1.9.2.ebuild,v 1.3 2008/06/22 15:41:32 maekke Exp $
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="Editor for VDR channels.conf"
HOMEPAGE="http://renier.re.funpic.de/"
SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=">=virtual/jdk-1.5"
RDEPEND=">=virtual/jre-1.5"
S="${WORKDIR}/${PN}"
mainclass() {
# read Main-Class from MANIFEST.MF
sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF"
}
src_unpack() {
unpack ${A}
cd "${S}"
# move files out of build and remove stuff not needed in the package
mv build/* "${S}"
rm -f src/java/org/javalobby/icons/{README,COPYRIGHT}
# copy build.xml
cp -f "${FILESDIR}/build.xml" build.xml
# convert CRLF to LF
edos2unix MANIFEST.MF
}
src_compile() {
eant build -Dmanifest.mainclass=$(mainclass)
}
src_install() {
java-pkg_dojar dist/${PN}.jar
java-pkg_dolauncher ${PN} --main $(mainclass)
make_desktop_entry channeleditor Channeleditor "" "Utility" || \
die "Couldn't make desktop entry"
}
|