diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-video/bdsup2sub | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-video/bdsup2sub')
-rw-r--r-- | media-video/bdsup2sub/Manifest | 2 | ||||
-rw-r--r-- | media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild | 49 | ||||
-rw-r--r-- | media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.diff | 37 | ||||
-rw-r--r-- | media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch | 40 | ||||
-rw-r--r-- | media-video/bdsup2sub/files/build-4.0.0.xml | 68 | ||||
-rw-r--r-- | media-video/bdsup2sub/metadata.xml | 8 |
6 files changed, 204 insertions, 0 deletions
diff --git a/media-video/bdsup2sub/Manifest b/media-video/bdsup2sub/Manifest new file mode 100644 index 000000000000..ed4509dc5ad9 --- /dev/null +++ b/media-video/bdsup2sub/Manifest @@ -0,0 +1,2 @@ +DIST bdsup2sub-4.0.0.tar.xz 199796 SHA256 72d06f013ab13a89e213ada48e0b43dc8abee87e8eb16ba2d07b5d1a96f69569 +DIST xdg-20100731.java.xz 648 SHA256 b6a189323fcc25ae5bebc006d870b4191a3bec34c80de7e337e5ed8a39f332c6 diff --git a/media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild b/media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild new file mode 100644 index 000000000000..d03e9ede7d1f --- /dev/null +++ b/media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-ant-2 + +XDG_P="xdg-20100731" + +DESCRIPTION="A tool to convert and tweak bitmap based subtitle streams" +HOMEPAGE="http://bdsup2sub.javaforge.com/help.htm" +SRC_URI="http://sbriesen.de/gentoo/distfiles/${P}.tar.xz + http://sbriesen.de/gentoo/distfiles/${XDG_P}.java.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6 + app-arch/xz-utils" + +S="${WORKDIR}/${PN}/${PV}" + +java_prepare() { + # apply XDG patch + cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" + epatch "${FILESDIR}/${P}-xdg.patch" + + # copy build.xml + cp -f "${FILESDIR}/build-${PV}.xml" build.xml || die +} + +src_compile() { + eant build $(use_doc) +} + +src_install() { + java-pkg_dojar dist/BDSup2Sub.jar + java-pkg_dolauncher BDSup2Sub --main BDSup2Sub --java_args -Xmx256m + newicon bin_copy/icon_32.png BDSup2Sub.png + make_desktop_entry BDSup2Sub BDSup2Sub BDSup2Sub + use doc && java-pkg_dojavadoc apidocs + use source && java-pkg_dosrc src +} diff --git a/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.diff b/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.diff new file mode 100644 index 000000000000..4a045d31b190 --- /dev/null +++ b/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.diff @@ -0,0 +1,37 @@ +diff -Naur src.orig/deadbeef/SupTools/Core.java src/deadbeef/SupTools/Core.java +--- src.orig/deadbeef/SupTools/Core.java 2010-07-28 22:56:08.319223422 +0200 ++++ src/deadbeef/SupTools/Core.java 2010-07-28 22:56:08.890223411 +0200 +@@ -22,6 +22,8 @@ + import deadbeef.Tools.Props;
+ import deadbeef.Tools.ToolBox;
+
++import java.io.File;
++
+ /*
+ * Copyright 2009 Volker Oth (0xdeadbeef)
+ *
+@@ -768,6 +770,11 @@ + }
+ fnameProps += Core.iniName;
+
++ // use XDG spec
++ fnameProps = System.getenv("XDG_CONFIG_HOME");
++ if (fnameProps == null) fnameProps = System.getProperty("user.home") + "/.config";
++ fnameProps += "/" + Core.iniName;
++
+ // read properties from ini file
+ props = new Props();
+ props.setHeader(Core.progNameVer+" settings - don't modify manually");
+@@ -905,8 +912,11 @@ + * Write properties
+ */
+ public static void storeProps() {
+- if (props != null)
++ if (props != null) {
++ File path = new File(ToolBox.getPathName(fnameProps));
++ path.mkdirs();
+ props.save(fnameProps);
++ }
+ }
+
+ /**
diff --git a/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch b/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch new file mode 100644 index 000000000000..a590ae983201 --- /dev/null +++ b/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch @@ -0,0 +1,40 @@ +--- src/deadbeef/SupTools/Core.java 2010-07-29 13:01:48.000000000 +0200 ++++ src/deadbeef/SupTools/Core.java 2010-08-01 02:19:25.215473885 +0200 +@@ -22,6 +22,8 @@ + import deadbeef.Tools.Props;
+ import deadbeef.Tools.ToolBox;
+
++import xdg.*;
++
+ /*
+ * Copyright 2009 Volker Oth (0xdeadbeef)
+ *
+@@ -750,6 +752,7 @@ + cliMode = false;
+ String s = c.getClass().getName().replace('.','/') + ".class";
+ URL url = c.getClass().getClassLoader().getResource(s);
++ /*
+ int pos;
+ try {
+ fnameProps = URLDecoder.decode(url.getPath(),"UTF-8");
+@@ -767,6 +770,8 @@ + fnameProps = fnameProps.substring(0,pos+1);
+ }
+ fnameProps += Core.iniName;
++ */
++ fnameProps = xdg.config_home() + "/" + Core.iniName;
+
+ // read properties from ini file
+ props = new Props();
+@@ -905,8 +910,10 @@ + * Write properties
+ */
+ public static void storeProps() {
+- if (props != null)
++ if (props != null) {
++ xdg.mkdirs_file(fnameProps);
+ props.save(fnameProps);
++ }
+ }
+
+ /**
diff --git a/media-video/bdsup2sub/files/build-4.0.0.xml b/media-video/bdsup2sub/files/build-4.0.0.xml new file mode 100644 index 000000000000..9aab31c3a5e1 --- /dev/null +++ b/media-video/bdsup2sub/files/build-4.0.0.xml @@ -0,0 +1,68 @@ +<?xml version="1.0"?> + +<project name="BDSup2Sub" 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="resources.dir" value="bin_copy" /> + <property name="project.jar" value="${dist.dir}/${ant.project.name}.jar" /> + <property name="target.jdk" value="1.6" /> + + <!-- 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}" + 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="${ant.project.name}" /> + </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/bdsup2sub/metadata.xml b/media-video/bdsup2sub/metadata.xml new file mode 100644 index 000000000000..93f8bf687fd8 --- /dev/null +++ b/media-video/bdsup2sub/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>video</herd> + <longdescription lang="en"> + BDSup2Sub - A tool to convert and tweak bitmap based subtitle streams. + </longdescription> +</pkgmetadata> |