public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-video/projectx/files/
@ 2019-03-24 11:23 Daniel Pielmeier
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Pielmeier @ 2019-03-24 11:23 UTC (permalink / raw
  To: gentoo-commits

commit:     cc07a449bd92fe67283a166cf55d3c645e89ccd9
Author:     Daniel Pielmeier <billie <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 24 11:23:38 2019 +0000
Commit:     Daniel Pielmeier <billie <AT> gentoo <DOT> org>
CommitDate: Sun Mar 24 11:23:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc07a449

media-video/projectx: Add missing patches.

Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 media-video/projectx/files/build-0.91.0.10.xml     | 77 ++++++++++++++++++++++
 .../projectx/files/projectx-0.91.0.10-bl2.patch    | 15 +++++
 .../files/projectx-0.91.0.10-idctfast.patch        | 37 +++++++++++
 .../files/projectx-0.91.0.10-stdout-corrupt.patch  | 11 ++++
 .../projectx/files/projectx-0.91.0.10-xdg.patch    | 44 +++++++++++++
 5 files changed, 184 insertions(+)

diff --git a/media-video/projectx/files/build-0.91.0.10.xml b/media-video/projectx/files/build-0.91.0.10.xml
new file mode 100644
index 00000000000..f35638733b1
--- /dev/null
+++ b/media-video/projectx/files/build-0.91.0.10.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+
+<project name="projectx" default="jar">
+	<!-- some properties -->
+	<property name="src.dir" value="src" />
+	<property name="build.dir" value="build" />
+	<property name="docs.dir" value="apidocs" />
+	<property name="dist.dir" value="dist" />
+	<property name="lib.dir" value="lib" />
+	<property name="resources.dir" value="resources" />
+	<property name="project.jar" value="${dist.dir}/${ant.project.name}.jar" />
+	<property name="target.jdk" value="1.5" />
+
+	<!-- classpath -->
+	<path id="refcp">
+		<fileset dir="${lib.dir}">
+			<include name="**/*.jar" />
+		</fileset>
+	</path>
+	
+	<!-- init -->
+	<target name="init">
+		<mkdir dir="${dist.dir}" />
+		<mkdir dir="${docs.dir}" />
+		<mkdir dir="${build.dir}" />
+	</target>	
+
+	<!-- compile everything -->
+	<target name="compile" depends="init">
+		<javac srcdir="${src.dir}"
+			destdir="${build.dir}"
+			source="${target.jdk}"
+			target="${target.jdk}"
+			classpathref="refcp"
+			encoding="ISO-8859-1"/>
+		<copy todir="${build.dir}">
+			<fileset dir="${resources.dir}" />
+		</copy>
+	</target>
+
+	<!-- build the jar files -->
+	<target name="build" depends="compile">
+		<jar jarfile="${project.jar}" basedir="${build.dir}">
+			<manifest>
+				<attribute name="Main-Class" value="${manifest.mainclass}" />
+			</manifest>
+		</jar>
+	</target>
+	
+	<!-- generate javadocs -->
+	<target name="javadoc" depends="init">
+		<javadoc sourcepath="${src.dir}"
+			packagenames="*"
+           		destdir="${docs.dir}"
+           		author="true"
+           		version="true"
+			use="true"
+			charset="UTF-8"
+			encoding="ISO-8859-1"
+           		windowtitle="${ant.project.name} API" />
+	</target>
+	
+	<!-- clean up -->
+	<target name="clean">
+		<delete dir="${build.dir}" />
+		<delete dir="${docs.dir}" />
+		<delete dir="${dist.dir}" />
+	</target>
+
+        <!-- zip the sources -->
+        <target name="sourcezip">
+		<zip destfile="${dist.dir}/${ant.project.name}-src.zip">
+                        <zipfileset dir="${src.dir}" />
+                </zip>
+        </target>
+
+</project>

diff --git a/media-video/projectx/files/projectx-0.91.0.10-bl2.patch b/media-video/projectx/files/projectx-0.91.0.10-bl2.patch
new file mode 100644
index 00000000000..3799c15e19c
--- /dev/null
+++ b/media-video/projectx/files/projectx-0.91.0.10-bl2.patch
@@ -0,0 +1,15 @@
+--- Project-X/src/net/sourceforge/dvb/projectx/gui/Html.java	2006-11-25 22:28:52.000000000 +0100
++++ Project-X/src/net/sourceforge/dvb/projectx/gui/Html.java	2007-06-10 13:37:59.000000000 +0200
+@@ -159,9 +159,10 @@
+ 		{
+ 			try 
+ 			{
+-				BrowserLauncher.openURL(u.toString());
++				BrowserLauncher launcher = new BrowserLauncher();
++				launcher.openURLinBrowser(u.toString());
+ 			} 
+-			catch (IOException e) 
++			catch (Exception e) 
+ 			{
+ 				Common.setMessage(Resource.getString("msg.browser.launcher.error") + " " + e);
+ 			}

diff --git a/media-video/projectx/files/projectx-0.91.0.10-idctfast.patch b/media-video/projectx/files/projectx-0.91.0.10-idctfast.patch
new file mode 100644
index 00000000000..84b7893c835
--- /dev/null
+++ b/media-video/projectx/files/projectx-0.91.0.10-idctfast.patch
@@ -0,0 +1,37 @@
+--- Project-X/src/net/sourceforge/dvb/projectx/video/MpvDecoder.java	2009-12-31 15:24:13.000000000 +0100
++++ Project-X/src/net/sourceforge/dvb/projectx/video/MpvDecoder.java	2010-07-31 14:32:19.945223425 +0200
+@@ -72,7 +72,7 @@
+ 
+ public class MpvDecoder extends Object {
+ 
+-	private IDCTRefNative idct;
++	private IDCTFast idct;
+ 	private IDCTSseNative idctsse;
+ 
+ 	private int preview_horizontal_size = 512;
+@@ -134,13 +134,13 @@
+ 	{
+ 		Arrays.fill(pixels2, 0xFF505050);
+ 
+-		idct = new IDCTRefNative();
++		idct = new IDCTFast();
+ 		idctsse = new IDCTSseNative();
+ 
+-		if (IDCTRefNative.isLibraryLoaded())
++		if (IDCTFast.isLibraryLoaded())
+ 			idct.init();
+ 
+-		if (IDCTRefNative.isLibraryLoaded() || IDCTSseNative.isLibraryLoaded())
++		if (IDCTFast.isLibraryLoaded() || IDCTSseNative.isLibraryLoaded())
+ 			acceleration = true;
+ 	}
+ 
+@@ -2407,7 +2407,7 @@
+ 			}
+ 		}
+ 
+-		else if (IDCTRefNative.isLibraryLoaded() && isAccelerated())
++		else if (IDCTFast.isLibraryLoaded() && isAccelerated())
+ 		{
+ 			/* copy or add block data into picture */
+ 			for (comp=0; comp<block_count; comp++)

diff --git a/media-video/projectx/files/projectx-0.91.0.10-stdout-corrupt.patch b/media-video/projectx/files/projectx-0.91.0.10-stdout-corrupt.patch
new file mode 100644
index 00000000000..7ea80201979
--- /dev/null
+++ b/media-video/projectx/files/projectx-0.91.0.10-stdout-corrupt.patch
@@ -0,0 +1,11 @@
+--- Project-X/src/net/sourceforge/dvb/projectx/common/GuiInterface.java	2008-12-04 01:47:03.000000000 +0100
++++ Project-X/src/net/sourceforge/dvb/projectx/common/GuiInterface.java	2008-12-04 02:21:11.342918380 +0100
+@@ -190,7 +190,7 @@
+ 			impl.updateProgressBar(percent);
+ 
+ 		else
+-			System.out.print("\r" + percent + " %");
++			System.out.print(percent + " %");
+ 	}
+ 
+ 	/**

diff --git a/media-video/projectx/files/projectx-0.91.0.10-xdg.patch b/media-video/projectx/files/projectx-0.91.0.10-xdg.patch
new file mode 100644
index 00000000000..fcb8b0e67e3
--- /dev/null
+++ b/media-video/projectx/files/projectx-0.91.0.10-xdg.patch
@@ -0,0 +1,44 @@
+--- Project-X/src/net/sourceforge/dvb/projectx/common/Settings.java	2008-02-18 19:34:48.000000000 +0100
++++ Project-X/src/net/sourceforge/dvb/projectx/common/Settings.java	2010-07-31 19:44:59.151224244 +0200
+@@ -46,6 +46,8 @@
+ import java.util.Set;
+ import java.util.TreeMap;
+ 
++import xdg.*;
++
+ import net.sourceforge.dvb.projectx.xinput.XInputDirectory;
+ 
+ /**
+@@ -56,7 +58,7 @@
+ public class Settings extends Object {
+ 
+ 	/** the default ini filename */
+-	private static final String DEFAULT_INI = "X.ini";
++	private static final String DEFAULT_INI = "Project-X.ini";
+ 
+ 	/** the current ini filename */
+ 	private String inifile = "";
+@@ -75,7 +77,7 @@
+ 	 */
+ 	public Settings()
+ 	{
+-		this(Resource.workdir + Resource.filesep + DEFAULT_INI);
++		this(xdg.config_home() + Resource.filesep + DEFAULT_INI);
+ 	}
+ 
+ 	/**
+@@ -161,6 +163,7 @@
+ 			str = inifile;
+ 
+ 		try {
++			xdg.mkdirs_file(str);
+ 			PrintWriter w = new PrintWriter(new FileWriter(str));
+ 
+ 			String base_key = "# Project-X INI";
+@@ -714,4 +717,4 @@
+ 		return inifile;
+ 	}
+ 
+-}
+\ Kein Zeilenumbruch am Dateiende.
++}


^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-video/projectx/files/
@ 2024-06-22 18:54 Conrad Kostecki
  0 siblings, 0 replies; 2+ messages in thread
From: Conrad Kostecki @ 2024-06-22 18:54 UTC (permalink / raw
  To: gentoo-commits

commit:     61c9c683e4df0fe523b321e7d139e9e97ad8a1c9
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Tue Jun 18 17:26:12 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Jun 22 18:50:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61c9c683

media-video/projectx: remove unused file

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 media-video/projectx/files/build-0.91.0.10.xml | 77 --------------------------
 1 file changed, 77 deletions(-)

diff --git a/media-video/projectx/files/build-0.91.0.10.xml b/media-video/projectx/files/build-0.91.0.10.xml
deleted file mode 100644
index f35638733b13..000000000000
--- a/media-video/projectx/files/build-0.91.0.10.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="projectx" default="jar">
-	<!-- some properties -->
-	<property name="src.dir" value="src" />
-	<property name="build.dir" value="build" />
-	<property name="docs.dir" value="apidocs" />
-	<property name="dist.dir" value="dist" />
-	<property name="lib.dir" value="lib" />
-	<property name="resources.dir" value="resources" />
-	<property name="project.jar" value="${dist.dir}/${ant.project.name}.jar" />
-	<property name="target.jdk" value="1.5" />
-
-	<!-- classpath -->
-	<path id="refcp">
-		<fileset dir="${lib.dir}">
-			<include name="**/*.jar" />
-		</fileset>
-	</path>
-	
-	<!-- init -->
-	<target name="init">
-		<mkdir dir="${dist.dir}" />
-		<mkdir dir="${docs.dir}" />
-		<mkdir dir="${build.dir}" />
-	</target>	
-
-	<!-- compile everything -->
-	<target name="compile" depends="init">
-		<javac srcdir="${src.dir}"
-			destdir="${build.dir}"
-			source="${target.jdk}"
-			target="${target.jdk}"
-			classpathref="refcp"
-			encoding="ISO-8859-1"/>
-		<copy todir="${build.dir}">
-			<fileset dir="${resources.dir}" />
-		</copy>
-	</target>
-
-	<!-- build the jar files -->
-	<target name="build" depends="compile">
-		<jar jarfile="${project.jar}" basedir="${build.dir}">
-			<manifest>
-				<attribute name="Main-Class" value="${manifest.mainclass}" />
-			</manifest>
-		</jar>
-	</target>
-	
-	<!-- generate javadocs -->
-	<target name="javadoc" depends="init">
-		<javadoc sourcepath="${src.dir}"
-			packagenames="*"
-           		destdir="${docs.dir}"
-           		author="true"
-           		version="true"
-			use="true"
-			charset="UTF-8"
-			encoding="ISO-8859-1"
-           		windowtitle="${ant.project.name} API" />
-	</target>
-	
-	<!-- clean up -->
-	<target name="clean">
-		<delete dir="${build.dir}" />
-		<delete dir="${docs.dir}" />
-		<delete dir="${dist.dir}" />
-	</target>
-
-        <!-- zip the sources -->
-        <target name="sourcezip">
-		<zip destfile="${dist.dir}/${ant.project.name}-src.zip">
-                        <zipfileset dir="${src.dir}" />
-                </zip>
-        </target>
-
-</project>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-22 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-24 11:23 [gentoo-commits] repo/gentoo:master commit in: media-video/projectx/files/ Daniel Pielmeier
  -- strict thread matches above, loose matches on Subject: below --
2024-06-22 18:54 Conrad Kostecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox