diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/google2srt |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/google2srt')
-rw-r--r-- | media-video/google2srt/Manifest | 7 | ||||
-rw-r--r-- | media-video/google2srt/files/build.xml | 85 | ||||
-rw-r--r-- | media-video/google2srt/google2srt-0.5.6-r1.ebuild | 63 | ||||
-rw-r--r-- | media-video/google2srt/metadata.xml | 20 |
4 files changed, 175 insertions, 0 deletions
diff --git a/media-video/google2srt/Manifest b/media-video/google2srt/Manifest new file mode 100644 index 000000000000..041194019de8 --- /dev/null +++ b/media-video/google2srt/Manifest @@ -0,0 +1,7 @@ +AUX build.xml 2320 SHA256 545bb2203a03215ae213cab6ba69411b06d49f03c473896add9ddd51122e513b SHA512 057368c9199a41d840b0326647e3a3aef70ddc1c3a286fb53e2d68a9baf3ebd82cc21299af5792d0f0fa0fba4abb399a02c781d83403683a54a895fa04167bf9 WHIRLPOOL 1f308239743609ec25d2200f669d74719c238da70ee18d9fedc71069f2f82a1a4bb6e65b4d2178e290b15fb77c6f3f68b3bdeb8bfb8251e2137a5f061cc28f2e +DIST Google2SRT-0.5.6.zip 355167 SHA256 9f021954ff2ed3b386211a839784ae213403981f53068c51a9d2733865b249bb SHA512 edb7b1ee4440f4962220557c794090edb9b3647a64deb70c19170bb4af3edbb5abc93ddd6061badf458c6cd92c17024b91bbdfa95bb1b366d1092b659db08094 WHIRLPOOL 63b120cf28019c0c39132c99e3877ec264b5396a15003c1a235fd296aab4b178048a45a406c5697adef4ac45ab0ea5ac845a4c4665de2f0fce8b4a360ccea2c7 +DIST google2srt-icon.png 1848 SHA256 d832d20322e79ad74950e0bd2168f402d18f4de2ffeff0ba7d573092b0d6e588 SHA512 051d8ffe8488e2521cdfbfd045d6b5159a18619e12dc1216b1687514cf3f1cebdf2167af372c2ec46d3886412350f5872e8a8c245fee341a30fec51615b5140f WHIRLPOOL 5a9a0c9388a0e2d8e76d87a4ff0446b83399cb5c8ca5d8718982356431a2abc9461517363590cad8dca534e75c172aecc841956392bc01b94ec965bbcb15f98b +EBUILD google2srt-0.5.6-r1.ebuild 1408 SHA256 41b9904a08c43bff9c87d72d9f2fefbc72e5db8f588fda285ac2ffa5c338d6c9 SHA512 486331e74c0dea20650213e68c1611c9dd9705e5f586f03ab0d80388984a62369cc943bbdc60f4ea27abd9274c70b1bb6475462ad21968c651562afb10267fe7 WHIRLPOOL a7e6ea2b06fbae66d2764001e58e121dfab5452948a3c738dd0c088ec7013a18ea337a1adbd9e1095205a9d6b03ae5478245153758814ea5ebe6a3d3f338015d +MISC ChangeLog 2764 SHA256 5e6bd4f97d01712cffa42e53718fb995ff4cdfcfc28134a1f93fe6089b87a8d9 SHA512 7972727c585e47a00616ad7b599c3c3efa8d94a168028167a868c70d837a98b3d74fa5868acf23c941997164342f60f9f0cc34105cd6925924afcf78d16913fe WHIRLPOOL 47be267d3edf2484dad23170c038e34c06c24b7e871c1a77aa21eaa18de1f5755d772d1e5bc1ff945b52aae0bd32b715ed98c7f4a3b7f94ac9b71cf4303a0501 +MISC ChangeLog-2015 930 SHA256 1e9b036768491f9bae6ea5c95dd33457cca792a92d437639b51218b4d6524d39 SHA512 d243700a291ac82c7919881a99fb758f2dc712146ce0b1a139021238ad2ced5e6fcc6565c3a19b2655ffe2f98baa656b85981c0f852937873d012f49e08bc825 WHIRLPOOL ea6256af0818a3f82d87e3eec8be5032c4f255fb8194d586d7d5ad05cac66ebdff585b07644eca2356f0f821887eb9a825a6d1de737a310d513cba300e52218c +MISC metadata.xml 694 SHA256 e946150d553ac325c134b66101321fd95f6270007e406a82ab529c7babec9e6d SHA512 1bb8f8d9e54b9ba4199ec8f92e4a01838ce08cc2c2cda8c1758681932032ba141b57021c7f078bd21f9205a156434c6f29553a2d5279efb476dd9bf52164eb86 WHIRLPOOL e3579a0c99230b39a5b74e62b3479f18db6ee9d1bb7b224cc47712639eb16adbb501f767b51659d7fdd980e1712301fd0daf3a54059691ad268155eda37d8c9f 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.6-r1.ebuild b/media-video/google2srt/google2srt-0.5.6-r1.ebuild new file mode 100644 index 000000000000..3c4143460253 --- /dev/null +++ b/media-video/google2srt/google2srt-0.5.6-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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: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 + 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..e7b5598e5610 --- /dev/null +++ b/media-video/google2srt/metadata.xml @@ -0,0 +1,20 @@ +<?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"> + 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> |