summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2006-07-10 19:42:53 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2006-07-10 19:42:53 +0000
commit212ac360721d5791aae419ce9ef246ecce4ed297 (patch)
tree2354d6a8d26732e97bc96a4efd30beb019219d3e /media-video/projectx
parentStable on sparc wrt #139612 (diff)
downloadgentoo-2-212ac360721d5791aae419ce9ef246ecce4ed297.tar.gz
gentoo-2-212ac360721d5791aae419ce9ef246ecce4ed297.tar.bz2
gentoo-2-212ac360721d5791aae419ce9ef246ecce4ed297.zip
Always create 'projectx_nogui' wrapper script and symlink 'projectx' corresponding to the 'X' use-flag either to 'projectx_gui' or 'projectx_nogui', solving bug #139883.
(Portage version: 2.1.1_pre2-r6)
Diffstat (limited to 'media-video/projectx')
-rw-r--r--media-video/projectx/ChangeLog10
-rw-r--r--media-video/projectx/files/digest-projectx-0.90.3.002
-rw-r--r--media-video/projectx/files/digest-projectx-0.90.4.00-r26
-rw-r--r--media-video/projectx/projectx-0.90.4.00-r2.ebuild85
4 files changed, 102 insertions, 1 deletions
diff --git a/media-video/projectx/ChangeLog b/media-video/projectx/ChangeLog
index da3b89313a20..ecadc4d533cb 100644
--- a/media-video/projectx/ChangeLog
+++ b/media-video/projectx/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-video/projectx
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/projectx/ChangeLog,v 1.17 2006/07/05 19:21:24 sbriesen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/projectx/ChangeLog,v 1.18 2006/07/10 19:42:53 sbriesen Exp $
+
+*projectx-0.90.4.00-r2 (10 Jul 2006)
+
+ 10 Jul 2006; Stefan Briesenick <sbriesen@gentoo.org>
+ +projectx-0.90.4.00-r2.ebuild:
+ Always create 'projectx_nogui' wrapper script and symlink 'projectx'
+ corresponding to the 'X' use-flag either to 'projectx_gui' or
+ 'projectx_nogui', solving bug #139883.
*projectx-0.90.4.00-r1 (05 Jul 2006)
diff --git a/media-video/projectx/files/digest-projectx-0.90.3.00 b/media-video/projectx/files/digest-projectx-0.90.3.00
index 3b1249dc87a1..17f32b3014c8 100644
--- a/media-video/projectx/files/digest-projectx-0.90.3.00
+++ b/media-video/projectx/files/digest-projectx-0.90.3.00
@@ -1 +1,3 @@
MD5 cce86010313339021d173ea5e1cf40b7 ProjectX_Source_0.90.3.00.zip 903455
+RMD160 c2e1379ec009e8a2032132d790e045b9f53e60dc ProjectX_Source_0.90.3.00.zip 903455
+SHA256 0e1a9311f0702e815f7f2c47130b013ab521c552c96d2712d1aafd31c1c6d4a3 ProjectX_Source_0.90.3.00.zip 903455
diff --git a/media-video/projectx/files/digest-projectx-0.90.4.00-r2 b/media-video/projectx/files/digest-projectx-0.90.4.00-r2
new file mode 100644
index 000000000000..a5702858cd7c
--- /dev/null
+++ b/media-video/projectx/files/digest-projectx-0.90.4.00-r2
@@ -0,0 +1,6 @@
+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 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
diff --git a/media-video/projectx/projectx-0.90.4.00-r2.ebuild b/media-video/projectx/projectx-0.90.4.00-r2.ebuild
new file mode 100644
index 000000000000..9394d23470f5
--- /dev/null
+++ b/media-video/projectx/projectx-0.90.4.00-r2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2006 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-r2.ebuild,v 1.1 2006/07/10 19:42:53 sbriesen Exp $
+
+inherit eutils 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://sourceforge.net/projects/project-x/"
+SRC_URI="mirror://sourceforge/project-x/${MY_PN}_Source_eng_${PV}.zip
+ mirror://sourceforge/project-x/${MY_PN}_LanguagePack_${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="X doc source"
+
+RDEPEND=">=virtual/jre-1.4
+ dev-java/commons-net
+ =dev-java/jakarta-oro-2.0*"
+
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}
+ 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"
+}
+
+ant_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
+
+ # update library packages
+ cd lib
+ rm -f {commons-net,jakarta-oro}*.jar
+ java-pkg_jar-from commons-net
+ java-pkg_jar-from jakarta-oro-2.0
+ java-pkg_ensure-no-bundled-jars
+}
+
+src_compile() {
+ eant jar $(use_doc docs) -Dmanifest.mainclass=$(mainclass)
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ 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_dohtml -r apidocs/
+ use source && java-pkg_dosrc src/.
+}