summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2010-08-02 23:44:00 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2010-08-02 23:44:00 +0000
commiteb874045eb3e2514c277102ad55ffce32d7eea8d (patch)
tree3c75c87dd8029be712f04fb016e1a692220c2502 /media-video
parentVersion bump. No noteworthy changes. (diff)
downloadhistorical-eb874045eb3e2514c277102ad55ffce32d7eea8d.tar.gz
historical-eb874045eb3e2514c277102ad55ffce32d7eea8d.tar.bz2
historical-eb874045eb3e2514c277102ad55ffce32d7eea8d.zip
initial commit
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'media-video')
-rw-r--r--media-video/google2srt/ChangeLog11
-rw-r--r--media-video/google2srt/Manifest6
-rw-r--r--media-video/google2srt/files/build.xml85
-rw-r--r--media-video/google2srt/files/icon.pngbin0 -> 1848 bytes
-rw-r--r--media-video/google2srt/google2srt-0.5.2.ebuild63
-rw-r--r--media-video/google2srt/metadata.xml18
6 files changed, 183 insertions, 0 deletions
diff --git a/media-video/google2srt/ChangeLog b/media-video/google2srt/ChangeLog
new file mode 100644
index 000000000000..308d5f7eea83
--- /dev/null
+++ b/media-video/google2srt/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-video/google2srt
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/google2srt/ChangeLog,v 1.1 2010/08/02 23:43:59 sbriesen Exp $
+
+*google2srt-0.5.2 (02 Aug 2010)
+
+ 02 Aug 2010; Stefan Briesenick <sbriesen@gentoo.org>
+ +google2srt-0.5.2.ebuild, +files/build.xml, +files/icon.png,
+ +metadata.xml:
+ initial commit
+
diff --git a/media-video/google2srt/Manifest b/media-video/google2srt/Manifest
new file mode 100644
index 000000000000..f54107c63685
--- /dev/null
+++ b/media-video/google2srt/Manifest
@@ -0,0 +1,6 @@
+AUX build.xml 2320 RMD160 81be9ceea74c2286a8e3d68a33a3c40c50538244 SHA1 26d59d7e727163f6ab0bb8cd8678fb87d7789dfa SHA256 545bb2203a03215ae213cab6ba69411b06d49f03c473896add9ddd51122e513b
+AUX icon.png 1848 RMD160 d220ad5d68350c3a1ba8db73b0d9a03be73d473b SHA1 30eaf51ee09857e97057745d196a29d31dabad74 SHA256 d832d20322e79ad74950e0bd2168f402d18f4de2ffeff0ba7d573092b0d6e588
+DIST Google2SRT-0.5.2.zip 307046 RMD160 2f645b7e3c131144d37674e5856ce6fc8505e847 SHA1 65c3965bbedfac747faaf7203b23e4cdd4eafb84 SHA256 700d182b15ccfcfe52272e5ebd4bd1f1f9e7e4fb370a84f2f019e1e5d3ea71d3
+EBUILD google2srt-0.5.2.ebuild 1477 RMD160 2a7f3df3f891d61d3fd1e23f390b317bd59f243a SHA1 cbcec6a0beda553245358e32f9ae6af79e838fff SHA256 95b948443b9b7d8603af421bfd7127900151c501f5db972a71f81632d1ba9d39
+MISC ChangeLog 405 RMD160 59883ac56e53384634aba64d46a4ea31e2552221 SHA1 5138a7fa5ffed173b23ba690ed8223e132c33bf1 SHA256 a851c1cf149cac5817b40b56f92478f977c8900acbd3d30fec235b25d702801e
+MISC metadata.xml 613 RMD160 c99b26254eeefd61d3fa4a0fe3cc6f1962f29258 SHA1 87eac0d44b08826d64ee0a0dd2d3cd8c36aa85d3 SHA256 461ed8c6e945bb5fa2295869d354c965e27c972e57450675df6c34e518f2311e
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/files/icon.png b/media-video/google2srt/files/icon.png
new file mode 100644
index 000000000000..1693b02512fa
--- /dev/null
+++ b/media-video/google2srt/files/icon.png
Binary files differ
diff --git a/media-video/google2srt/google2srt-0.5.2.ebuild b/media-video/google2srt/google2srt-0.5.2.ebuild
new file mode 100644
index 000000000000..7b1b11a8ff78
--- /dev/null
+++ b/media-video/google2srt/google2srt-0.5.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/google2srt/google2srt-0.5.2.ebuild,v 1.1 2010/08/02 23:43:59 sbriesen Exp $
+
+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"
+
+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 "${FILESDIR}/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..9fe1d2026759
--- /dev/null
+++ b/media-video/google2srt/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>video</herd>
+ <maintainer>
+ <email>sbriesen@gentoo.org</email>
+ <name>Stefan Briesenick</name>
+ </maintainer>
+ <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>
+</pkgmetadata>