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 | df3b2fe5093b3636e79c665db00bfc0f86256338 (patch) | |
tree | dfa39ec217ff0e5303e743296fdc7787f8a9f996 /media-video/bdsup2sub | |
parent | Set SUPPORT_PYTHON_ABIS. (diff) | |
download | historical-df3b2fe5093b3636e79c665db00bfc0f86256338.tar.gz historical-df3b2fe5093b3636e79c665db00bfc0f86256338.tar.bz2 historical-df3b2fe5093b3636e79c665db00bfc0f86256338.zip |
initial commit.
Package-Manager: portage-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/Manifest | 5 | ||||
-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 |
6 files changed, 179 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/Manifest b/media-video/bdsup2sub/Manifest new file mode 100644 index 000000000000..cbd9775f6f7e --- /dev/null +++ b/media-video/bdsup2sub/Manifest @@ -0,0 +1,5 @@ +AUX bdsup2sub-4.0.0-xdg.diff 1068 RMD160 d8dffb47502acd61dd3caa63b5ca12d22490a210 SHA1 7bcf23beaf0e77039f0792d468318dcc7ad7941b SHA256 6f2fcf0968ba800eb14f5247f8845a304eaa54bb4147bb9d872688fbcf99f720 +AUX build-4.0.0.xml 1836 RMD160 c3a2cab5ef0dca3e7c49ed845d2370d7535579b6 SHA1 293bbba2f79a169563bb07088ef3a303209f7506 SHA256 63dc1fa4234893f8155668dfb08ce72ad0160143a787d196f4b28999992a5e86 +EBUILD bdsup2sub-4.0.0.ebuild 1166 RMD160 cf3c481defbeaf8ccf484acf1dd809687e569a9d SHA1 bb23337610e4ace1aca75de247962ae8e4fdae94 SHA256 6b377ae69bcb523d6c1e10349cd0847be4cba90ac5beaaa092785422ccf0880b +MISC ChangeLog 424 RMD160 7e13c031aab8da3b11c61eadae0869c4df5373e4 SHA1 56cab9b4a78f13a24ed057255c3933cf6b6a4edf SHA256 41172109fa99e13f2840abf6609312abbdd0d05d82c08ee872e58e1485957e2b +MISC metadata.xml 382 RMD160 eb2e7e1115347b1228f1c028dfd80ae336ce2d4d SHA1 c82cc68f511b47c070f68474bca5ddcecfa47be2 SHA256 7b3a54f88030a65ef3706ba1b51caa45bca0c9bfdd5273d066ad765b0aabc025 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> |