diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2010-07-28 21:59:13 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2010-07-28 21:59:13 +0000 |
commit | 8622e77e288f3044623ed5754b00784b31efa723 (patch) | |
tree | ec3d6dd7165796661b3ca1f1bce7cb08cd43ffed /media-video/bdsup2sub | |
parent | Set SUPPORT_PYTHON_ABIS. (diff) | |
download | gentoo-2-8622e77e288f3044623ed5754b00784b31efa723.tar.gz gentoo-2-8622e77e288f3044623ed5754b00784b31efa723.tar.bz2 gentoo-2-8622e77e288f3044623ed5754b00784b31efa723.zip |
initial commit.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-video/bdsup2sub')
-rw-r--r-- | media-video/bdsup2sub/ChangeLog | 11 | ||||
-rw-r--r-- | media-video/bdsup2sub/bdsup2sub-4.0.0.ebuild | 46 | ||||
-rw-r--r-- | media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.diff | 37 | ||||
-rw-r--r-- | media-video/bdsup2sub/files/build-4.0.0.xml | 68 | ||||
-rw-r--r-- | media-video/bdsup2sub/metadata.xml | 12 |
5 files changed, 174 insertions, 0 deletions
diff --git a/media-video/bdsup2sub/ChangeLog b/media-video/bdsup2sub/ChangeLog new file mode 100644 index 000000000000..de175273b142 --- /dev/null +++ b/media-video/bdsup2sub/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for media-video/bdsup2sub +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/bdsup2sub/ChangeLog,v 1.1 2010/07/28 21:59:12 sbriesen Exp $ + +*bdsup2sub-4.0.0 (28 Jul 2010) + + 28 Jul 2010; Stefan Briesenick <sbriesen@gentoo.org> + +bdsup2sub-4.0.0.ebuild, +files/bdsup2sub-4.0.0-xdg.diff, + +files/build-4.0.0.xml, +metadata.xml: + initial commit. + diff --git a/media-video/bdsup2sub/bdsup2sub-4.0.0.ebuild b/media-video/bdsup2sub/bdsup2sub-4.0.0.ebuild new file mode 100644 index 000000000000..84aaccea75d4 --- /dev/null +++ b/media-video/bdsup2sub/bdsup2sub-4.0.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/bdsup2sub/bdsup2sub-4.0.0.ebuild,v 1.1 2010/07/28 21:59:12 sbriesen Exp $ + +EAPI="2" + +ESVN_REPO_URI="http://javaforge.com/svn/bdsup2sub/tags/${PV}/" +ESVN_USER="anonymous" +ESVN_PASSWORD="anon" + +JAVA_PKG_IUSE="doc source" + +inherit eutils subversion java-pkg-2 java-ant-2 + +DESCRIPTION="A tool to convert and tweak bitmap based subtitle streams" +HOMEPAGE="http://bdsup2sub.javaforge.com/help.htm" +SRC_URI="" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6" + +java_prepare() { + # Use XDG spec for INI file + epatch "${FILESDIR}//${P}-xdg.diff" + + # 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/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..5edc8a67c7e4 --- /dev/null +++ b/media-video/bdsup2sub/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>sbriesen@gentoo.org</email> + <name>Stefan Briesenick</name> + </maintainer> + <longdescription lang="en"> + BDSup2Sub - A tool to convert and tweak bitmap based subtitle streams. + </longdescription> +</pkgmetadata> |