diff options
Diffstat (limited to 'media-video/projectx')
-rw-r--r-- | media-video/projectx/ChangeLog | 9 | ||||
-rw-r--r-- | media-video/projectx/files/digest-projectx-0.90.4.00-r3 | 12 | ||||
-rw-r--r-- | media-video/projectx/projectx-0.90.4.00-r3.ebuild | 120 |
3 files changed, 140 insertions, 1 deletions
diff --git a/media-video/projectx/ChangeLog b/media-video/projectx/ChangeLog index 08e547c1fce2..c6997ad4b9b5 100644 --- a/media-video/projectx/ChangeLog +++ b/media-video/projectx/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-video/projectx # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/projectx/ChangeLog,v 1.22 2007/03/11 22:11:27 sbriesen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/projectx/ChangeLog,v 1.23 2007/05/01 23:48:22 sbriesen Exp $ + +*projectx-0.90.4.00-r3 (01 May 2007) + + 01 May 2007; Stefan Briesenick <sbriesen@gentoo.org> + +projectx-0.90.4.00-r3.ebuild: + added patches (BrowserLauncher2, subtitle clut, subtitle charset), added + fast IDCT implementation. 11 Mar 2007; Stefan Briesenick <sbriesen@gentoo.org> files/build-0.90.4.xml, projectx-0.90.4.00-r2.ebuild: diff --git a/media-video/projectx/files/digest-projectx-0.90.4.00-r3 b/media-video/projectx/files/digest-projectx-0.90.4.00-r3 new file mode 100644 index 000000000000..ed9c945ec9bf --- /dev/null +++ b/media-video/projectx/files/digest-projectx-0.90.4.00-r3 @@ -0,0 +1,12 @@ +MD5 edfe8d04bd3d403eec4d9e27d1b976d2 ProjectX_LanguagePack_0.90.4.00.zip 124257 +RMD160 09f63b0761568f5934960663e52a0043a48727ee ProjectX_LanguagePack_0.90.4.00.zip 124257 +SHA256 eff00b1b623e8a0c986eb79472622fd771c1c44b9d9d83062e6cc0772e9fd841 ProjectX_LanguagePack_0.90.4.00.zip 124257 +MD5 d6e0ff5df64d1cd524bc3902bbc19b7a ProjectX_Source_0.90.4-portable.zip 47775 +RMD160 206deb5abb2e05a12ffe45994604fe4e6a4d80eb ProjectX_Source_0.90.4-portable.zip 47775 +SHA256 e655315ba55ea9fdce96eff177eac9fd62453959a7a0259714aaca267e640434 ProjectX_Source_0.90.4-portable.zip 47775 +MD5 92d7b5aea50b8811307f27b6e01ceb5c ProjectX_Source_eng_0.90.4.00.zip 825784 +RMD160 8914557a5e04f02ba574a48711ecb6b24e651482 ProjectX_Source_eng_0.90.4.00.zip 825784 +SHA256 fe41e409381a988201404338bb3dd178caa71ab6058151ae49a1e97b0aa58537 ProjectX_Source_eng_0.90.4.00.zip 825784 +MD5 6d471345f35408e6a251c54776bc6be4 projectx-patches-0.90.4.00-r3.tbz2 1394 +RMD160 05e2c2936bcbbcb3344ca22ae0379e9e1d33a37c projectx-patches-0.90.4.00-r3.tbz2 1394 +SHA256 57cb89ac50fc6418ae30cc68a4003fc3cc2c0eace8c7f9e108a863a1424fcde6 projectx-patches-0.90.4.00-r3.tbz2 1394 diff --git a/media-video/projectx/projectx-0.90.4.00-r3.ebuild b/media-video/projectx/projectx-0.90.4.00-r3.ebuild new file mode 100644 index 000000000000..4f9afc5c96c6 --- /dev/null +++ b/media-video/projectx/projectx-0.90.4.00-r3.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/projectx/projectx-0.90.4.00-r3.ebuild,v 1.1 2007/05/01 23:48:22 sbriesen Exp $ + +inherit eutils toolchain-funcs java-pkg-2 java-ant-2 + +MY_PN="ProjectX" + +# micro-release == 0 ? +if [ 0${PV##*.} -eq 0 ]; then + MY_P="${MY_PN}_Source_${PV%.*}" +else + MY_P="${MY_PN}_Source_${PV}" +fi + +DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings" +HOMEPAGE="http://project-x.sourceforge.net/" +SRC_URI="mirror://sourceforge/project-x/${MY_PN}_Source_eng_${PV}.zip + mirror://sourceforge/project-x/${MY_PN}_LanguagePack_${PV}.zip + http://sbriesen.de/gentoo/distfiles/${PN}-patches-${PVR}.tbz2 + http://sbriesen.de/gentoo/distfiles/${MY_P}-portable.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="X doc source mmx" + +COMMON_DEP="dev-java/commons-net + X? ( =dev-java/browserlauncher2-1.0* )" + +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" + +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP} + app-arch/unzip + dev-java/ant-core + source? ( app-arch/zip )" + +S="${WORKDIR}/${MY_P}" + +mainclass() { + # read Main-Class from MANIFEST.MF + sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # copy build.xml + cp -f "${FILESDIR}/build-${PV%.*}.xml" build.xml + + # patch location of executable + sed -i -e "s:^\(Exec=\).*:\1${PN}:g" *.desktop + + # convert CRLF to LF + edos2unix *.txt MANIFEST.MF + + # apply subtitle clut patch + epatch "${WORKDIR}/${PN}-${PV%.*}-clut.diff" + + # apply subtitle charset patch + epatch "${WORKDIR}/${PN}-${PV%.*}-charset.diff" + + # apply BrowserLauncher2 patch + use X && epatch "${WORKDIR}/${PN}-${PV%.*}-bl2.diff" + rm -rf src/edu + + # cleanup idctfast patchset + rm -f lib/PORTABLE/*.{o,so} + rm -f src/net/sourceforge/dvb/projectx/video/IDCT{Ref,Sse}Native.java + sed -i -e "s:gcc:\$(CC):g" -e "s: -O2::g" lib/PORTABLE/Makefile + + # merge/remove resources depending on USE="X" + if use X; then + mv -f htmls resources/ + else + rm -rf src/net/sourceforge/dvb/projectx/gui + rm resources/*.gif + fi + + # update library packages + cd lib + rm -f {commons-net,jakarta-oro}*.jar + java-pkg_jar-from commons-net + use X && java-pkg_jar-from browserlauncher2-1.0 + java-pkg_ensure-no-bundled-jars +} + +src_compile() { + local IDCT="idct-mjpeg" # default IDCT implementation + use x86 && use mmx && IDCT="idct-mjpeg-mmx" + + eant build $(use_doc) -Dmanifest.mainclass=$(mainclass) + + cd lib/PORTABLE + emake CC=$(tc-getCC) IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \ + CPLAT="${CFLAGS} -ffast-math -fPIC" || die "emake failed" +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + java-pkg_doso lib/PORTABLE/libidctfast.so + + java-pkg_dolauncher ${PN}_nogui --main $(mainclass) \ + --java_args "-Djava.awt.headless=true" + + if use X; then + java-pkg_dolauncher ${PN}_gui --main $(mainclass) + dosym ${PN}_gui /usr/bin/${PN} + domenu *.desktop + else + dosym ${PN}_nogui /usr/bin/${PN} + fi + + dodoc *.txt + use doc && java-pkg_dojavadoc apidocs + use source && java-pkg_dosrc src +} |