summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2007-08-04 18:45:49 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2007-08-04 18:45:49 +0000
commitf5d889a71756b95b393a06843652e7828be73e3c (patch)
tree7f5a048558560eebd36538adad2197c8137af332 /media-video/jubler
parentSparc stable --- part of Bug #178690 (diff)
downloadhistorical-f5d889a71756b95b393a06843652e7828be73e3c.tar.gz
historical-f5d889a71756b95b393a06843652e7828be73e3c.tar.bz2
historical-f5d889a71756b95b393a06843652e7828be73e3c.zip
Initial ebuild, submitted by Serkan Kaba <serkan_kaba@yahoo.com>, bug #153992.
Package-Manager: portage-2.1.3.3
Diffstat (limited to 'media-video/jubler')
-rw-r--r--media-video/jubler/ChangeLog10
-rw-r--r--media-video/jubler/Manifest20
-rw-r--r--media-video/jubler/files/digest-jubler-3.3.03
-rw-r--r--media-video/jubler/files/jubler-3.3.0.patch346
-rw-r--r--media-video/jubler/jubler-3.3.0.ebuild69
-rw-r--r--media-video/jubler/metadata.xml8
6 files changed, 456 insertions, 0 deletions
diff --git a/media-video/jubler/ChangeLog b/media-video/jubler/ChangeLog
new file mode 100644
index 000000000000..0ce0d1f21610
--- /dev/null
+++ b/media-video/jubler/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-video/jubler
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/jubler/ChangeLog,v 1.1 2007/08/04 18:45:49 fordfrog Exp $
+
+*jubler-3.3.0 (04 Aug 2007)
+
+ 04 Aug 2007; Miroslav Šulc <fordfrog@gentoo.org>
+ +files/jubler-3.3.0.patch, +metadata.xml, +jubler-3.3.0.ebuild:
+ Initial ebuild, submitted by Serkan Kaba <serkan_kaba@yahoo.com>, bug #153992.
+
diff --git a/media-video/jubler/Manifest b/media-video/jubler/Manifest
new file mode 100644
index 000000000000..23efb8316f2d
--- /dev/null
+++ b/media-video/jubler/Manifest
@@ -0,0 +1,20 @@
+AUX jubler-3.3.0.patch 11428 RMD160 957506b555d13d13c8a15b4bd39e0924ee1b1ea5 SHA1 f3a0f7e108afc02b1504ebeeecf7d31816c057f5 SHA256 4592b74b38267c7bb39fa872a9c620095d5dbce3124cb06100c9970ceca16f11
+MD5 e63d3eaeda765325bd184282edc3a46e files/jubler-3.3.0.patch 11428
+RMD160 957506b555d13d13c8a15b4bd39e0924ee1b1ea5 files/jubler-3.3.0.patch 11428
+SHA256 4592b74b38267c7bb39fa872a9c620095d5dbce3124cb06100c9970ceca16f11 files/jubler-3.3.0.patch 11428
+DIST Jubler-src-3.3.0.tar.bz2 1707747 RMD160 0af1db4e41b56acc0b9c80ad3e45e0090043914b SHA1 68ab46ba172755217f49df582babd260f7687707 SHA256 48b431600210160b2643a794bcf4054b6a12553c5d3daad16b4ab991f269c16c
+EBUILD jubler-3.3.0.ebuild 1932 RMD160 747d3dcf33d54dcef1770ede6020ee3a147819d7 SHA1 1af341d50a4dfb657eedfc577e4d160d4fe2a429 SHA256 af5da2e00f9f38aa7253d8d7e433a57e525e0d926cb2aed0f4dc0bf624e1a122
+MD5 3d584745d8494ac72b1745220b7f9fe5 jubler-3.3.0.ebuild 1932
+RMD160 747d3dcf33d54dcef1770ede6020ee3a147819d7 jubler-3.3.0.ebuild 1932
+SHA256 af5da2e00f9f38aa7253d8d7e433a57e525e0d926cb2aed0f4dc0bf624e1a122 jubler-3.3.0.ebuild 1932
+MISC ChangeLog 440 RMD160 ce633cadc54d81931559050e693ce64cbab90adb SHA1 2c8313cd9c3f52ba86da756ba9909002466d1108 SHA256 3087b0b6bdbec9c03b7e2161070ecd62b25bb1f633349a901aac97fe34ff9c5c
+MD5 4227bd70928284f221dc3ed4f9f6d560 ChangeLog 440
+RMD160 ce633cadc54d81931559050e693ce64cbab90adb ChangeLog 440
+SHA256 3087b0b6bdbec9c03b7e2161070ecd62b25bb1f633349a901aac97fe34ff9c5c ChangeLog 440
+MISC metadata.xml 216 RMD160 05d4d9c2f1c459ea9309346016001e26bad574ce SHA1 98783559fec44d27f1294db2e9549af2fe38f1b3 SHA256 94b55a2ec67c524728d32249d59a6a1545fd37d61c83259b5f05163ca47e87e1
+MD5 f975e6f37c20a73d4d486a0c24ff4c78 metadata.xml 216
+RMD160 05d4d9c2f1c459ea9309346016001e26bad574ce metadata.xml 216
+SHA256 94b55a2ec67c524728d32249d59a6a1545fd37d61c83259b5f05163ca47e87e1 metadata.xml 216
+MD5 e1ead37e38523b99793852a8fd27b7d5 files/digest-jubler-3.3.0 256
+RMD160 ed2ebdc7f9856d1dc327c60abb53eb8804043b73 files/digest-jubler-3.3.0 256
+SHA256 185a1c17b28d13e72293e0d93cc09eb4b9962947a3f5c7113806bfdf317e1811 files/digest-jubler-3.3.0 256
diff --git a/media-video/jubler/files/digest-jubler-3.3.0 b/media-video/jubler/files/digest-jubler-3.3.0
new file mode 100644
index 000000000000..78702b464ee6
--- /dev/null
+++ b/media-video/jubler/files/digest-jubler-3.3.0
@@ -0,0 +1,3 @@
+MD5 4f938b16cfcf90cd103e76512de10b3d Jubler-src-3.3.0.tar.bz2 1707747
+RMD160 0af1db4e41b56acc0b9c80ad3e45e0090043914b Jubler-src-3.3.0.tar.bz2 1707747
+SHA256 48b431600210160b2643a794bcf4054b6a12553c5d3daad16b4ab991f269c16c Jubler-src-3.3.0.tar.bz2 1707747
diff --git a/media-video/jubler/files/jubler-3.3.0.patch b/media-video/jubler/files/jubler-3.3.0.patch
new file mode 100644
index 000000000000..f14189beb618
--- /dev/null
+++ b/media-video/jubler/files/jubler-3.3.0.patch
@@ -0,0 +1,346 @@
+diff -Nur Jubler-3.3.0/build.xml Jubler-3.3.0_patched/build.xml
+--- Jubler-3.3.0/build.xml 2007-07-21 19:32:19.000000000 +0300
++++ Jubler-3.3.0_patched/build.xml 2007-08-04 03:00:30.000000000 +0300
+@@ -69,22 +69,6 @@
+
+
+
+- <!-- Define new ant tasks -->
+-
+- <taskdef name="izpack"
+- onerror="report"
+- classpath="../TOOLS/IzPack/standalone-compiler.jar"
+- classname="com.izforge.izpack.ant.IzPackTask"/>
+-
+- <taskdef name="launch4j"
+- onerror="report"
+- classpath="../TOOLS/launch4j/launch4j.jar:../TOOLS/launch4j/lib/xstream.jar"
+- classname="net.sf.launch4j.ant.Launch4jTask"/>
+-
+- <taskdef name="jarbundler"
+- onerror="report"
+- classpath="../TOOLS/jarbundler/jarbundler-1.9.jar"
+- classname="net.sourceforge.jarbundler.JarBundler" />
+
+
+
+@@ -407,9 +391,6 @@
+ </target>
+
+ <target name="noMacSystem" depends="findsystem" if="isNotMac">
+- <copy todir="src/com">
+- <fileset dir="resources/system/no_mac"/>
+- </copy>
+ </target>
+
+ <target name="MacSystem" depends="findsystem" if="isMac">
+diff -Nur Jubler-3.3.0/resources/ffdecode/Makefile Jubler-3.3.0_patched/resources/ffdecode/Makefile
+--- Jubler-3.3.0/resources/ffdecode/Makefile 2007-07-19 01:30:08.000000000 +0300
++++ Jubler-3.3.0_patched/resources/ffdecode/Makefile 2007-08-04 05:13:00.000000000 +0300
+@@ -12,9 +12,6 @@
+ # Name of the produced library
+ PROJ=ffdecode
+
+-# Paths of include files
+-JAVA_HOME=${shell /bin/sh ../system/findjava.sh -j}
+-
+ # Path of the local ffmpeg source structure (already inside the source version of Jubler)
+ FFMPEG=../ffmpeg-svn
+
+@@ -41,11 +38,7 @@
+ OBJS=${SRCS:.c=.o}
+
+
+-ifeq (${CFLAGS},)
+- COMPFLAGS=-std=c99 -pedantic -O3 -Wall
+-else
+- COMPFLAGS=${CFLAGS}
+-endif
++COMPFLAGS=${CFLAGS} -std=c99 -pedantic -Wall -fPIC
+
+ ifeq (${STATIC},no)
+ FFMPEGREQ=
+@@ -101,7 +94,6 @@
+
+ FCONFCOMMON=--disable-debug --enable-gpl --enable-a52 --disable-ffmpeg --disable-ffserver --disable-ffplay --disable-encoders --disable-vhook --disable-ipv6 --disable-network --disable-dv1394 --disable-bktr --disable-v4l2 --disable-v4l --disable-audio-beos --disable-audio-oss
+
+-CC=${PREF}gcc ${ARCH}
+ RANLIB=${PREF}ranlib
+
+
+@@ -155,8 +147,7 @@
+ LIB:${LIBNAME}
+
+ ${LIBNAME}:${FFMPEGREQ} ${OBJS} ${RANLIBREQ}
+- ${LD} ${ARCH} -o ${LIBNAME} ${OBJS} ${LIBS}
+- ${STRIP} ${LIBNAME}
++ ${LD} -o ${LIBNAME} ${OBJS} ${LIBS}
+
+
+ clean:
+diff -Nur Jubler-3.3.0/src/com/panayotis/jubler/information/HelpBrowser.java Jubler-3.3.0_patched/src/com/panayotis/jubler/information/HelpBrowser.java
+--- Jubler-3.3.0/src/com/panayotis/jubler/information/HelpBrowser.java 2007-07-19 01:30:05.000000000 +0300
++++ Jubler-3.3.0_patched/src/com/panayotis/jubler/information/HelpBrowser.java 2007-08-04 03:18:39.000000000 +0300
+@@ -31,7 +31,7 @@
+
+ history = new ArrayList<String>();
+
+- String initpage = "file:"+SystemFileFinder.getJublerAppPath()+"/help/jubler-faq.html";
++ String initpage = "file:"+SystemFileFinder.getJublerAppPath()+"/../help/jubler-faq.html";
+ setPage(initpage);
+ history.add(initpage);
+
+diff -Nur Jubler-3.3.0/src/com/panayotis/jubler/os/SystemDependent.java Jubler-3.3.0_patched/src/com/panayotis/jubler/os/SystemDependent.java
+--- Jubler-3.3.0/src/com/panayotis/jubler/os/SystemDependent.java 2007-07-21 19:23:13.000000000 +0300
++++ Jubler-3.3.0_patched/src/com/panayotis/jubler/os/SystemDependent.java 2007-08-04 03:39:16.000000000 +0300
+@@ -25,10 +25,6 @@
+
+ import static com.panayotis.jubler.i18n.I18N._;
+
+-import com.apple.eawt.Application;
+-import com.apple.eawt.ApplicationAdapter;
+-import com.apple.eawt.ApplicationEvent;
+-
+ import com.panayotis.jubler.Jubler;
+ import com.panayotis.jubler.Main;
+ import com.panayotis.jubler.StaticJubler;
+@@ -50,23 +46,6 @@
+ */
+ public class SystemDependent {
+
+- private final static String OS;
+-
+- static {
+- OS = System.getProperty("os.name").toLowerCase();
+- }
+-
+- private static boolean isLinux() {
+- return OS.indexOf("linux") >= 0;
+- }
+-
+- private static boolean isWindows() {
+- return OS.indexOf("windows") >= 0;
+- }
+- private static boolean isMacOSX() {
+- return OS.indexOf("mac") >= 0;
+- }
+-
+ public static int getSliderLOffset() {
+ return 7;
+ }
+@@ -77,15 +56,6 @@
+
+
+ public final static void setLookAndFeel() {
+- try {
+- if (isWindows() || isMacOSX()) {
+- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+- }
+- } catch ( ClassNotFoundException e ) {
+- } catch ( InstantiationException e ) {
+- } catch (IllegalAccessException e) {
+- } catch (UnsupportedLookAndFeelException e) {
+- }
+ }
+
+
+@@ -95,25 +65,16 @@
+ * In Unix-like O.S. there shouldn't be a problem.
+ */
+ public static boolean shouldWaitForProccess() {
+- return !isWindows();
++ return true;
+ }
+
+
+
+ public static void hideSystemMenus(JMenuItem about, JMenuItem prefs, JMenuItem quit) {
+- if (isMacOSX()) {
+- about.setVisible(false);
+- prefs.setVisible(false);
+- quit.setVisible(false);
+- }
+ }
+
+
+ public static void initApplication() {
+- /* In Linux this is a dummy function */
+- if (isMacOSX()) {
+- JublerApp japp = new JublerApp();
+- }
+ }
+
+
+@@ -121,16 +82,6 @@
+ return 4;
+ }
+ public static String getKeyMods(boolean [] mods) {
+- if (isMacOSX()) {
+- StringBuffer res = new StringBuffer();
+- if (mods[0]) res.append("\u2318");
+- if (mods[1]) res.append("\u2325");
+- if (mods[2]) res.append("\u2303");
+- if (mods[3]) res.append("\u21e7");
+- if (res.length()>0) res.append(' ');
+- return res.toString();
+- }
+-
+ StringBuffer res = new StringBuffer();
+ if (mods[0]) res.append("+Meta");
+ if (mods[1]) res.append("+Alt");
+@@ -144,29 +95,19 @@
+ }
+
+ public static int getDefaultKeyModifier() {
+- if (isMacOSX()) return 0;
+ return 2;
+ }
+
+ public static String getCanonicalFilename(String filename) {
+- if (isWindows()) return filename.toLowerCase()+".exe";
+ return filename.toLowerCase();
+ }
+
+ public static int getBundleOrFileID() {
+- if (isMacOSX()) return ExtPath.BUNDLE_ONLY;
+ return ExtPath.FILE_ONLY;
+ }
+
+ public static void openURL(String url) {
+ try {
+- if (isMacOSX()) {
+- Class fileMgr = Class.forName("com.apple.eio.FileManager");
+- Method openURL = fileMgr.getDeclaredMethod("openURL", new Class[] {String.class});
+- openURL.invoke(null, new Object[] {url});
+- } else if (isWindows())
+- Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
+- else { //assume Unix or Linux
+ String[] browsers = {
+ "firefox", "konqueror", "opera", "epiphany", "mozilla", "netscape" };
+ String browser = null;
+@@ -178,30 +119,14 @@
+ throw new Exception(_("Could not find web browser"));
+ else
+ Runtime.getRuntime().exec(new String[] {browser, url});
+- }
+ } catch (Exception e) {
+ DEBUG.warning("URL selected: " + url);
+ }
+ }
+
+ public static String getDefaultMPlayerArgs() {
+- String fontconfig = "";
+- String font = "";
+-
+- if (isLinux()) {
+- font = " -font %f";
+- fontconfig=" -fontconfig";
+- } else {
+- if (isWindows()) {
+- font=" -font c:\\Windows\\fonts\\arial.ttf";
+- } else {
+- File freesans = new File(SystemFileFinder.getJublerAppPath()+"/lib/freesans.ttf");
+- if (freesans.exists()) {
+- font = " -font %j/lib/freesans.ttf";
+- }
+- }
+- }
+-
++ String font = " -font %f";
++ String fontconfig=" -fontconfig";
+ return "%p -slave -identify -ontop -utf8 -noquiet -nofs"+fontconfig+" -subfont-autoscale 0 -volstep 10"+
+ " -sub %s -ss %t -geometry +%x+%y"+font+" -subfont-text-scale %z %(-audiofile %a%) %v";
+ }
+@@ -209,7 +134,7 @@
+
+ /* Force ASpell to use UTF-8 encoding - broken on Windows */
+ public static boolean forceASpellEncoding() {
+- return !isWindows();
++ return true;
+ }
+
+
+@@ -218,26 +143,9 @@
+ * Under other platforms does not do anything
+ */
+ public static void appendSpotlightApplication(String name, Vector<ExtPath> res) {
+- if (!isMacOSX()) return;
+- if (name==null) return;
+- Process proc = null;
+- String[] cmd = new String[2];
+- cmd[0] = "mdfind";
+- cmd[1] = "kMDItemDisplayName == '"+name+"*'"; // Use this trick to avoid spaces problems inside the filename
+- try {
+- String line;
+- proc = Runtime.getRuntime().exec(cmd);
+- proc.waitFor();
+- BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
+- while ( (line = in.readLine()) != null) {
+- if (line.endsWith(".app"))
+- res.add(new ExtPath(line, ExtPath.BUNDLE_ONLY));
+- }
+- } catch (Exception ex) {}
+ }
+
+ public static void appendLocateApplication(String name, Vector<ExtPath> res) {
+- if (isWindows()) return;
+ if (name==null) return;
+
+ name = name.toLowerCase();
+@@ -271,36 +179,3 @@
+ }
+
+ }
+-
+-
+-
+-class JublerApp extends Application {
+- public JublerApp() {
+- setEnabledPreferencesMenu(true);
+- addApplicationListener(new ApplicationHandler());
+- }
+-}
+-
+-class ApplicationHandler extends ApplicationAdapter {
+-
+- public ApplicationHandler() {}
+-
+- public void handleAbout(ApplicationEvent event) {
+- StaticJubler.showAbout();
+- event.setHandled(true);
+- }
+-
+- public void handlePreferences(ApplicationEvent event) {
+- Jubler.prefs.showPreferencesDialog();
+- event.setHandled(true);
+- }
+-
+- public void handleQuit(ApplicationEvent event) {
+- StaticJubler.quitAll();
+- event.setHandled(true);
+- }
+-
+- public void handleOpenFile(ApplicationEvent event) {
+- Main.asyncAddSubtitle(event.getFilename());
+- }
+-}
+diff -Nur Jubler-3.3.0/src/com/panayotis/jubler/os/SystemFileFinder.java Jubler-3.3.0_patched/src/com/panayotis/jubler/os/SystemFileFinder.java
+--- Jubler-3.3.0/src/com/panayotis/jubler/os/SystemFileFinder.java 2007-07-19 01:30:05.000000000 +0300
++++ Jubler-3.3.0_patched/src/com/panayotis/jubler/os/SystemFileFinder.java 2007-08-04 03:34:35.000000000 +0300
+@@ -58,15 +58,12 @@
+ }
+
+ public static boolean loadLibrary(String name) {
+- File libfile = findFile("lib"+pathseparator+System.mapLibraryName(name));
+- if (libfile!=null) {
+ try {
+- System.load(libfile.getAbsolutePath());
++ System.loadLibrary(name);
+ return true;
+ } catch (UnsatisfiedLinkError e) {
+ e.printStackTrace();
+ }
+- }
+ return false;
+ }
+
diff --git a/media-video/jubler/jubler-3.3.0.ebuild b/media-video/jubler/jubler-3.3.0.ebuild
new file mode 100644
index 000000000000..03734f08c50a
--- /dev/null
+++ b/media-video/jubler/jubler-3.3.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/jubler/jubler-3.3.0.ebuild,v 1.1 2007/08/04 18:45:49 fordfrog Exp $
+
+inherit eutils java-pkg-2 java-utils-2 java-ant-2 toolchain-funcs flag-o-matic
+
+MY_PN=${PN/#j/J}
+DESCRIPTION="Java subtitle editor"
+HOMEPAGE="http://www.panayotis.com/jubler/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-src-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="nls spell kde"
+
+RDEPEND=">=virtual/jre-1.5
+ media-video/ffmpeg
+ spell?
+ (
+ app-text/aspell
+ >=dev-java/zemberek-2.0
+ )"
+
+DEPEND=">=virtual/jdk-1.5
+ media-video/ffmpeg
+ app-text/docbook-sgml-utils
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+pkg_setup() {
+ if use spell && ! built_with_use zemberek linguas_tr; then
+ die "Zemberek should be built with Turkish language support"
+ fi
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}.patch
+}
+
+src_compile() {
+ local anttasks_opt
+ use nls && anttasks_opt="i18n"
+ eant ${anttasks_opt} jar faq || die "eant failed"
+ cp -v dist/help/jubler-faq.html build/classes/help || die "cp failed"
+ cd resources/ffdecode
+ CC=$(tc-getCC) emake linuxdyn
+}
+
+src_install() {
+ java-pkg_dojar dist/Jubler.jar
+ use spell && java-pkg_register-dependency zemberek zemberek2-cekirdek.jar
+ use spell && java-pkg_register-dependency zemberek zemberek2-tr.jar
+ java-pkg_doso resources/ffdecode/libffdecode.so
+ doicon resources/installers/linux/jubler.png
+ newicon resources/installers/linux/subtitle-32.png subtitle.png
+ java-pkg_dolauncher jubler --main com.panayotis.jubler.Main
+ make_desktop_entry ${PN} "Jubler" ${PN}.png
+ doman resources/installers/linux/jubler.1
+ insinto /usr/share/jubler/help
+ doins dist/help/*
+ insinto /usr/share/mimelnk/application
+ use kde && doins resources/installers/linux/sub-*.desktop
+}
diff --git a/media-video/jubler/metadata.xml b/media-video/jubler/metadata.xml
new file mode 100644
index 000000000000..a2ac2e03bfbd
--- /dev/null
+++ b/media-video/jubler/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+<maintainer>
+ <email>java@gentoo.org</email>
+</maintainer>
+</pkgmetadata>