summaryrefslogtreecommitdiff
path: root/media-video/bdsup2sub
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/bdsup2sub
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/bdsup2sub')
-rw-r--r--media-video/bdsup2sub/Manifest9
-rw-r--r--media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild48
-rw-r--r--media-video/bdsup2sub/bdsup2sub-4.0.0-r2.ebuild56
-rw-r--r--media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch40
-rw-r--r--media-video/bdsup2sub/files/build-4.0.0.xml68
-rw-r--r--media-video/bdsup2sub/metadata.xml11
6 files changed, 232 insertions, 0 deletions
diff --git a/media-video/bdsup2sub/Manifest b/media-video/bdsup2sub/Manifest
new file mode 100644
index 000000000000..10c399afbd4f
--- /dev/null
+++ b/media-video/bdsup2sub/Manifest
@@ -0,0 +1,9 @@
+AUX bdsup2sub-4.0.0-xdg.patch 1036 SHA256 39b4a66ae0ffbeb1ce09344110d018a121776c8f1544afb538ab25c48f4c662d SHA512 4f0232f5906cd685daf2b86cbd24a284a96939c653d36479ff271902af1dae0c558391bbf302fcdaac8a01f29aecfe56850407798d2520e22a1f227664e7c254 WHIRLPOOL 60552300bb1b0952d10cc849a8ad77b189936acefc6ed88c008ac8cc52aab67cafc2b85f8a5e0445d58ec958f57602da1fac3ca62d8b790996ec32fd2fdd5b2d
+AUX build-4.0.0.xml 1836 SHA256 63dc1fa4234893f8155668dfb08ce72ad0160143a787d196f4b28999992a5e86 SHA512 ec2f7c82dd00243a692182e8ecf363674703a11fcc59b81bb290bb9ef2afb0617da506459f7dc7e50018560364b2e5bddfb40e766e33cc15111b6984c18c6119 WHIRLPOOL 2be9403e4a070cbbc86903251d6e2ad58a315bb7754d14165564dcae65a72ea3811b26ff7e53ab56e49970da6d27a0fa4c6e71ea762e07900c6441883e2a3c14
+DIST bdsup2sub-4.0.0.tar.xz 199796 SHA256 72d06f013ab13a89e213ada48e0b43dc8abee87e8eb16ba2d07b5d1a96f69569 SHA512 d12f5ddde2b9fec9dc50a43212db52f068852c972c0ee559dbe7f56490d7082eb1f603413a17737f791450d7f1458ed5ba39fda9a7a1349af03c07a0173c13a6 WHIRLPOOL fd1d5feddb5387bcc26a9f75aba901398e72da3f57f2d85e0a23c4b8bb5c6eaa43955373ff93e0e0a3705f68978b89283c6253b9322e63c02c871cf50fbab7f2
+DIST xdg-20100731.java.xz 648 SHA256 b6a189323fcc25ae5bebc006d870b4191a3bec34c80de7e337e5ed8a39f332c6 SHA512 8b5d8e695f3f052f889002dc93742da8ba9eada173cb10ad1db525e1ad89d1c8f44200d79dc02068ccf93fdbf2e8daa5bb359dae77bacbc89cb6d4895732774b WHIRLPOOL 8a79fe5a73fae9662f0c74d293dbbe43d034484601649f170232e1b79ad0bb337fa8a6b3160683839893cc9e83171ad77e645fc64724c75321b02ef9f47efc85
+EBUILD bdsup2sub-4.0.0-r1.ebuild 1141 SHA256 ebec6ae19775fe96c4e8bb49a94ece1abbeff53ba97090b4f207328801faf46f SHA512 9b4ea1ead50da4073fcd91e4ffe23e786d453526165770926af65ab3d267ecb146350200d02e423a52c49b52a54e93e4de64a67f3bf9e4132a8ed597b59ed5dd WHIRLPOOL 4c5377f496935c6f25b23fb2ea85f643eb355eb5cd3221ed522844100ceba0011cd3775e0fba7f8aeeeec56e2a57b8ebada269aabd693eaffb27e71bc6686202
+EBUILD bdsup2sub-4.0.0-r2.ebuild 1175 SHA256 4be74c0ee8bd613dc9333d314f8464675966de54d23e7c5f21c812822e7f7d0d SHA512 1cf68cb7898a039a58cbcd794466e10c6249895234b6ac3add213cff2b862016b342a2796c550b141291ad7c63416fb3adfa6529b2a0bcadd552c4778093a3b9 WHIRLPOOL ae5132f6db2b2d71598c8edd05e10980035a56087230cec09fba2bb518fe04745642535015ce5babe48396dc00e5d114594317d5eba5285a5392e14574709080
+MISC ChangeLog 2535 SHA256 10f96f99ab990f861369f23206947b5da0388122751a474c485e4d5b15f32dfc SHA512 47dd96b02a202e93e6d1cf7866d170a0e8a15207c9541fa22b687a9b26a57a8e10973f99666d58aebed79863fe6e5586f0501b289ada074e8cba7b4f4e244cfe WHIRLPOOL 7647d5c1266159963ea42b883209ffe91dd5827ddc741c191f58176f1ee5c2bb9684b7e760d3ec95023467891ebea842686e62e7f3438b62a88aa359ea1a8830
+MISC ChangeLog-2015 1061 SHA256 ce68abfeed4e1eb6f644b16b447bb4ceb8fd607b7ab3e5118bee77f75775f270 SHA512 fae933bf2433ef67a40e580fda09df05f3e5f39558532b40aeb9c4703e8a4b33ac01a72377b7ad33c2afc073932675d26087745acf8df0f336ed625abb7231c9 WHIRLPOOL 9041e42999f501e0b576858cf7d090c13a77e5cd4d05e83b6c6185d00161ce64da02c8e1eaded0b537edc313e0d447f5b800687c26edd9612891c9003c5a9352
+MISC metadata.xml 381 SHA256 7b23db87ee7177c2582fb7aab1308e86e05775f9cc9e69614feffbd99445cca7 SHA512 5f9298ee19a292eea7612e7055b7c689f8ad7c86be2f820aec2b6b1afcf2bb5ab01ace028656a0e9daca9791e45c5b1ffdb70d959014b7bd0e42fc5f2f1da8bd WHIRLPOOL 6c4034b7f91372d4d0ea4abf57856fb1ed3e85e055efeae10de23862502705f482e2145842475f35666d0041cd3ff9e0203b05a77aa275b251c84b022e956329
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..7818e675d5d2
--- /dev/null
+++ b/media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/bdsup2sub-4.0.0-r2.ebuild b/media-video/bdsup2sub/bdsup2sub-4.0.0-r2.ebuild
new file mode 100644
index 000000000000..72f449b2a644
--- /dev/null
+++ b/media-video/bdsup2sub/bdsup2sub-4.0.0-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+XDG_P="xdg-20100731"
+
+MY_PN="BDSup2Sub"
+
+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"
+
+RDEPEND="
+ >=virtual/jre-1.6"
+
+DEPEND="
+ >=virtual/jdk-1.6
+ app-arch/xz-utils"
+
+S="${WORKDIR}/${PN}/${PV}"
+
+PATCHES=( "${FILESDIR}/${P}-xdg.patch" )
+
+src_prepare() {
+ default
+
+ # apply XDG patch
+ cp -v "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die
+
+ # copy build.xml
+ cp -f "${FILESDIR}/build-${PV}.xml" build.xml || die
+}
+
+src_compile() {
+ eant build $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar "dist/${MY_PN}.jar"
+ java-pkg_dolauncher "${PN}" --main "${MY_PN}" --java_args -Xmx256m
+ newicon bin_copy/icon_32.png "${MY_PN}.png"
+ make_desktop_entry "${MY_PN}" "${MY_PN}" "${MY_PN}"
+ use doc && java-pkg_dojavadoc apidocs
+ use source && java-pkg_dosrc src
+}
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..3f68beb6d495
--- /dev/null
+++ b/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch
@@ -0,0 +1,40 @@
+--- a/src/deadbeef/SupTools/Core.java 2010-07-29 13:01:48.000000000 +0200
++++ b/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..66883ac6cbda
--- /dev/null
+++ b/media-video/bdsup2sub/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ <name>Gentoo Video project</name>
+ </maintainer>
+ <longdescription lang="en">
+ BDSup2Sub - A tool to convert and tweak bitmap based subtitle streams.
+ </longdescription>
+</pkgmetadata>