Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 304639
Collapse All | Expand All

(-)channeleditor-1.9.2.1-r1.ebuild (-22 / +8 lines)
Lines 4-9 Link Here
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
JAVA_PKG_IUSE="source"
7
inherit eutils java-pkg-2 java-ant-2
8
inherit eutils java-pkg-2 java-ant-2
8
9
9
DESCRIPTION="Editor for VDR channels.conf"
10
DESCRIPTION="Editor for VDR channels.conf"
Lines 13-28 Link Here
13
LICENSE="GPL-2"
14
LICENSE="GPL-2"
14
SLOT="0"
15
SLOT="0"
15
KEYWORDS="x86"
16
KEYWORDS="x86"
16
IUSE="java5 java6 source"
17
IUSE=""
17
18
18
RDEPEND="java6? ( >=virtual/jre-1.6 )
19
RDEPEND=">=virtual/jre-1.4"
19
	!java6? ( java5? ( >=virtual/jre-1.5 ) )
20
20
	!java6? ( !java5? ( >=virtual/jre-1.4 ) )"
21
DEPEND=" >=virtual/jdk-1.4"
21
22
DEPEND="java6? ( >=virtual/jdk-1.6 )
23
	!java6? ( java5? ( >=virtual/jdk-1.5 ) )
24
	!java6? ( !java5? ( >=virtual/jdk-1.4 ) )
25
	source? ( app-arch/zip )"
26
22
27
S="${WORKDIR}/${PN}"
23
S="${WORKDIR}/${PN}"
28
24
Lines 32-56 Link Here
32
	|| die "reading Main-Class failed"
28
	|| die "reading Main-Class failed"
33
}
29
}
34
30
35
src_prepare() {
31
java_prepare() {
36
	# move files out of build and remove stuff not needed in the package
32
	# move files out of build and remove stuff not needed in the package
37
	mv build/* "${S}" || die "cleaning build dir failed"
33
	mv build/* "${S}" || die "cleaning build dir failed"
38
	rm -f src/java/org/javalobby/icons/{README,COPYRIGHT} \
34
	rm -f src/java/org/javalobby/icons/{README,COPYRIGHT} \
39
		|| die "removing files failed"
35
		|| die "removing files failed"
40
36
41
	# copy build.xml
37
	# copy build.xml
42
	if use java6; then
38
	cp -f "${FILESDIR}/build-${PV}.xml" build.xml \
43
		sed 's:\(value=\"\)1\.4\(\"\):\11.6\2:g' \
39
		|| die "copying build.xml failed"
44
			"${FILESDIR}/build-${PV}.xml" > build.xml \
45
			|| die "copying build.xml failed"
46
	elif use java5; then
47
		sed 's:\(value=\"\)1\.4\(\"\):\11.5\2:g' \
48
			"${FILESDIR}/build-${PV}.xml" > build.xml \
49
			|| die "copying build.xml failed"
50
	else
51
		cp -f "${FILESDIR}/build-${PV}.xml" build.xml \
52
			|| die "copying build.xml failed"
53
	fi
54
40
55
	# convert CRLF to LF
41
	# convert CRLF to LF
56
	edos2unix MANIFEST.MF
42
	edos2unix MANIFEST.MF

Return to bug 304639