diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2010-08-02 23:44:00 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2010-08-02 23:44:00 +0000 |
commit | e3e422cc41ee9bba0059273442f8df139b5e2994 (patch) | |
tree | c148ecf219107c022f077738e522c270c8be1c83 /media-video/google2srt/files | |
parent | Version bump. No noteworthy changes. (diff) | |
download | gentoo-2-e3e422cc41ee9bba0059273442f8df139b5e2994.tar.gz gentoo-2-e3e422cc41ee9bba0059273442f8df139b5e2994.tar.bz2 gentoo-2-e3e422cc41ee9bba0059273442f8df139b5e2994.zip |
initial commit
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-video/google2srt/files')
-rw-r--r-- | media-video/google2srt/files/build.xml | 85 | ||||
-rw-r--r-- | media-video/google2srt/files/icon.png | bin | 0 -> 1848 bytes |
2 files changed, 85 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 000000000000..1693b02512fa --- /dev/null +++ b/media-video/google2srt/files/icon.png |