summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-video/google2srt
downloadgentoo-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/google2srt')
-rw-r--r--media-video/google2srt/Manifest3
-rw-r--r--media-video/google2srt/files/build.xml85
-rw-r--r--media-video/google2srt/google2srt-0.5.3.ebuild64
-rw-r--r--media-video/google2srt/google2srt-0.5.6.ebuild64
-rw-r--r--media-video/google2srt/metadata.xml17
5 files changed, 233 insertions, 0 deletions
diff --git a/media-video/google2srt/Manifest b/media-video/google2srt/Manifest
new file mode 100644
index 000000000000..dbbdcf598c66
--- /dev/null
+++ b/media-video/google2srt/Manifest
@@ -0,0 +1,3 @@
+DIST Google2SRT-0.5.3.zip 334238 SHA256 bcc43a2b50f82373122382adf0e17b0bd3bb0170fd58d74c4582b52faa73a7de SHA512 948aa0085750db96d16da8a693c16e14c2546aebf305544c13984c043671c81e7e94e03e4659227a9be9edf3dc25d78968c0e6d7e6dbb81d925aa3aa0fedb331 WHIRLPOOL 5cd701ea8c3d93791c1199cfad990c697023ddb9ad8308ddd8ec0e14d50661aa108fec7cd82b9654adbc1a777ca36e8f42c20bb133f704676a55d16bd3055fff
+DIST Google2SRT-0.5.6.zip 355167 SHA256 9f021954ff2ed3b386211a839784ae213403981f53068c51a9d2733865b249bb SHA512 edb7b1ee4440f4962220557c794090edb9b3647a64deb70c19170bb4af3edbb5abc93ddd6061badf458c6cd92c17024b91bbdfa95bb1b366d1092b659db08094 WHIRLPOOL 63b120cf28019c0c39132c99e3877ec264b5396a15003c1a235fd296aab4b178048a45a406c5697adef4ac45ab0ea5ac845a4c4665de2f0fce8b4a360ccea2c7
+DIST google2srt-icon.png 1848 SHA256 d832d20322e79ad74950e0bd2168f402d18f4de2ffeff0ba7d573092b0d6e588 SHA512 051d8ffe8488e2521cdfbfd045d6b5159a18619e12dc1216b1687514cf3f1cebdf2167af372c2ec46d3886412350f5872e8a8c245fee341a30fec51615b5140f WHIRLPOOL 5a9a0c9388a0e2d8e76d87a4ff0446b83399cb5c8ca5d8718982356431a2abc9461517363590cad8dca534e75c172aecc841956392bc01b94ec965bbcb15f98b
diff --git a/media-video/google2srt/files/build.xml b/media-video/google2srt/files/build.xml
new file mode 100644
index 000000000000..b1c7e3c775bb
--- /dev/null
+++ b/media-video/google2srt/files/build.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+
+<project name="Google2SRT" default="jar">
+ <!-- some properties -->
+ <property name="src.dir" value="src" />
+ <property name="lib.dir" value="lib" />
+ <property name="resources.dir" value="resources" />
+ <property name="docs.dir" value="apidocs" />
+ <property name="build.dir" value="build" />
+ <property name="dist.dir" value="dist" />
+ <property name="project.jar" value="${dist.dir}/${ant.project.name}.jar" />
+ <property name="mainclass.jar" value="GUI" />
+ <property name="source.enc" value="UTF-8" />
+ <property name="target.jdk" value="1.6" />
+
+ <!-- classpath -->
+ <path id="refcp">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+
+ <!-- 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}"
+ classpathref="refcp"
+ encoding="${source.enc}"/>
+ <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="${mainclass.jar}" />
+ </manifest>
+ </jar>
+ </target>
+
+ <!-- generate javadocs -->
+ <target name="javadoc" depends="init">
+ <javadoc sourcepath="${src.dir}"
+ destdir="${docs.dir}"
+ packagenames="*"
+ author="true"
+ version="true"
+ use="true"
+ charset="UTF-8"
+ encoding="${source.enc}"
+ defaultexcludes="yes"
+ classpathref="refcp"
+ windowtitle="${ant.project.name} API">
+ <fileset dir="${src.dir}" defaultexcludes="yes">
+ <include name="**/*.java"/>
+ </fileset>
+ </javadoc>
+ </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/google2srt/google2srt-0.5.3.ebuild b/media-video/google2srt/google2srt-0.5.3.ebuild
new file mode 100644
index 000000000000..6bbf61cc8b95
--- /dev/null
+++ b/media-video/google2srt/google2srt-0.5.3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PN="Google2SRT"
+MY_P="${MY_PN}-${PV}"
+MAINCLASS="GUI"
+
+DESCRIPTION="Convert subtitles from Google Video and YouTube to SubRip (.srt) format"
+HOMEPAGE="http://google2srt.sourceforge.net/en/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip
+ http://sbriesen.de/gentoo/distfiles/google2srt-icon.png"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="html"
+
+COMMON_DEP="dev-java/jdom:1.0"
+
+RDEPEND=">=virtual/jre-1.6
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.6
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_P}"
+
+java_prepare() {
+ # copy build.xml
+ cp -f "${FILESDIR}/build.xml" build.xml || die
+
+ # move resources
+ mkdir -p "resources"
+ mv -f src/*.{jpg,properties} "resources/"
+
+ # update library packages
+ cd lib
+ rm -f jdom.jar ../${MY_PN}.jar || die
+ java-pkg_jar-from jdom-1.0
+ java-pkg_ensure-no-bundled-jars
+}
+
+src_compile() {
+ eant build $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar dist/${MY_PN}.jar
+ java-pkg_dolauncher ${MY_PN} --main ${MAINCLASS} --java_args -Xmx256m
+ newicon "${DISTDIR}/${PN}-icon.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
+ use html && dohtml -r doc
+ newdoc Changelog.txt ChangeLog
+ newdoc README.TXT README
+}
diff --git a/media-video/google2srt/google2srt-0.5.6.ebuild b/media-video/google2srt/google2srt-0.5.6.ebuild
new file mode 100644
index 000000000000..ce5e84064429
--- /dev/null
+++ b/media-video/google2srt/google2srt-0.5.6.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PN="Google2SRT"
+MY_P="${MY_PN}-${PV}"
+MAINCLASS="GUI"
+
+DESCRIPTION="Convert subtitles from Google Video and YouTube to SubRip (.srt) format"
+HOMEPAGE="http://google2srt.sourceforge.net/en/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip
+ http://sbriesen.de/gentoo/distfiles/google2srt-icon.png"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="html"
+
+COMMON_DEP="dev-java/jdom:1.0"
+
+RDEPEND=">=virtual/jre-1.6
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.6
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_P}"
+
+java_prepare() {
+ # copy build.xml
+ cp -f "${FILESDIR}/build.xml" build.xml || die
+
+ # move resources
+ mkdir -p "resources"
+ mv -f src/*.{jpg,properties} "resources/"
+
+ # update library packages
+ cd lib
+ rm -f jdom.jar ../${MY_PN}.jar || die
+ java-pkg_jar-from jdom-1.0
+ java-pkg_ensure-no-bundled-jars
+}
+
+src_compile() {
+ eant build $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar dist/${MY_PN}.jar
+ java-pkg_dolauncher ${MY_PN} --main ${MAINCLASS} --java_args -Xmx256m
+ newicon "${DISTDIR}/${PN}-icon.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
+ use html && dohtml -r doc
+ newdoc Changelog.txt ChangeLog
+ newdoc README.TXT README
+}
diff --git a/media-video/google2srt/metadata.xml b/media-video/google2srt/metadata.xml
new file mode 100644
index 000000000000..1d4bb6fd9529
--- /dev/null
+++ b/media-video/google2srt/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>video</herd>
+ <longdescription lang="en">
+ Google2SRT allows you to convert subtitles from Google Video and YouTube
+ to SubRip (.srt) format, which is recognized by most video players. You
+ can download XML subtitles or simply type video's URL, Google2SRT will
+ do the rest.
+ </longdescription>
+ <use>
+ <flag name="html">Install HTML documentation</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">google2srt</remote-id>
+ </upstream>
+</pkgmetadata>