summaryrefslogtreecommitdiff
blob: 8a0078dea45a899b32005daf4ec039c2de84cb9b (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/projectx/projectx-0.81.7.ebuild,v 1.2 2004/08/03 12:05:38 dholm Exp $

inherit java-pkg

MY_PN=ProjectX

DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
HOMEPAGE="http://www.lucike.info/"
SRC_URI="http://www.lucike.info/download/software/projectx/${MY_PN}_Source_${PV}.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND=">=virtual/jdk-1.4
		>=dev-java/ant-1.4.1"

S="${WORKDIR}/${MY_PN}_Source"

src_unpack() {
	unpack "${A}"
	cd ${S}
	# fix html help location
	sed -i "s|htmls/index.html|/usr/share/doc/${P}/html/index.html|g" src/Html.java
	# copy selfmade ant build.xml
	cp "${FILESDIR}/build.xml" .
}

src_compile() {
	local antflags="dist -DJARNAME=${P}"
	ant ${antflags} || die "compile problem"
}

src_install() {
	# create shellscript wrapper
	echo -e "#!/bin/sh\nexec \${JAVA_HOME}/bin/java -jar /usr/share/${PN}/${P}.jar \"\$@\"" > ${MY_PN}

	insinto "/usr/share/${PN}"
	doins dist/lib/*.jar ac3.bin

	dodoc Copying *.txt

	dohtml -r htmls/
	dobin ${MY_PN}
}