From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- media-video/bdsup2sub/Manifest | 2 + media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild | 49 ++++++++++++++++ .../bdsup2sub/files/bdsup2sub-4.0.0-xdg.diff | 37 ++++++++++++ .../bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch | 40 +++++++++++++ media-video/bdsup2sub/files/build-4.0.0.xml | 68 ++++++++++++++++++++++ media-video/bdsup2sub/metadata.xml | 8 +++ 6 files changed, 204 insertions(+) create mode 100644 media-video/bdsup2sub/Manifest create mode 100644 media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild create mode 100644 media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.diff create mode 100644 media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch create mode 100644 media-video/bdsup2sub/files/build-4.0.0.xml create mode 100644 media-video/bdsup2sub/metadata.xml (limited to 'media-video/bdsup2sub') 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + video + + BDSup2Sub - A tool to convert and tweak bitmap based subtitle streams. + + -- cgit v1.2.3-65-gdbad