diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-05-31 00:56:34 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-05-31 00:56:34 +0000 |
commit | e80d483689ebbadaf46310aa4f9ed5a3dcdf9dab (patch) | |
tree | faaa22a69a855033c2d8452b2d0493187808ade3 /media-tv | |
parent | Remove old. (diff) | |
download | historical-e80d483689ebbadaf46310aa4f9ed5a3dcdf9dab.tar.gz historical-e80d483689ebbadaf46310aa4f9ed5a3dcdf9dab.tar.bz2 historical-e80d483689ebbadaf46310aa4f9ed5a3dcdf9dab.zip |
Introduce live Subversion ebuild to the tree. Fix bug 300658.
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0x93491BB8
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/tvbrowser/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/tvbrowser/Manifest | 24 | ||||
-rw-r--r-- | media-tv/tvbrowser/files/tvbrowser-9999-build.xml | 965 | ||||
-rw-r--r-- | media-tv/tvbrowser/tvbrowser-9999.ebuild | 175 |
4 files changed, 1157 insertions, 15 deletions
diff --git a/media-tv/tvbrowser/ChangeLog b/media-tv/tvbrowser/ChangeLog index 0331d1bb7325..378eee68ae4b 100644 --- a/media-tv/tvbrowser/ChangeLog +++ b/media-tv/tvbrowser/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/tvbrowser # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/ChangeLog,v 1.44 2015/05/30 10:33:52 johu Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/ChangeLog,v 1.45 2015/05/31 00:56:25 monsieurp Exp $ + +*tvbrowser-9999 (31 May 2015) + + 31 May 2015; Patrice Clement <monsieurp@gentoo.org> + +files/tvbrowser-9999-build.xml, +tvbrowser-9999.ebuild: + Introduce live Subversion ebuild to the tree. Fix bug 300658. 30 May 2015; Johannes Huber <johu@gentoo.org> metadata.xml: Remove myself as maintainer. diff --git a/media-tv/tvbrowser/Manifest b/media-tv/tvbrowser/Manifest index aabbdb463028..ef8d0e9b40cf 100644 --- a/media-tv/tvbrowser/Manifest +++ b/media-tv/tvbrowser/Manifest @@ -6,6 +6,7 @@ AUX 3.4-remove-registrykey.patch 7804 SHA256 b6994b0195e87019784017a6ce2f6f30d63 AUX 3.4.1.0-build.xml.patch 4723 SHA256 1f9d9f9f7f6b079b1e6c9fe05946b28a143963eaba113e50d1fda47d0a828dff SHA512 0954f2a1284e87b2115eb2889194c77702cb9d3426f3a3cf8661799a5e556b3c3b250e14c7365bcddde51d94cfc9dde0f9fbed1ca85c13b7d75a4d0b103985c6 WHIRLPOOL de7e7358ebd8af81bc28b0b63578be13212be0f6a20dad0008bc70744e7c0d6cc34964bd6272fe507b3db3331a97191466c21ea5e195a3677e47abe76e108b41 AUX 3.4.1.0-remove-registrykey.patch 7364 SHA256 c7e082a01dd3893075a43c7d20bc456b741dc295dcc468063dc5c0917bf9cab8 SHA512 cb9807818a3019fe4579bbcea6bdcc9a1fd230452cb3b0521bc29d3b35c36f7522efdf50b057e8d377ece5201f9035537e0cd39c7ebb992d8cfa8af6d8ad3a53 WHIRLPOOL 1caa949d1d81fa9686f4df13f20f57efd025f828cf79798156942ebdab3163fd4a3437f8465a771d346e2b821a08e965b62e703dfcf4d91c8f6c1df729ffe10d AUX tvbrowser-3.2.1-build.xml 18963 SHA256 4aec3da44baf4828e1a80bffdfe9bf8d0893d0706679c9efac6ddbe38d80e2ba SHA512 ca689670b19f0d7daf469fef6e12df760a077e3d8fd2d3b638659f30769e5d18d8fa4157b72203a70101bbeb1a9815c6289c5611b556c2543217b42390e31d60 WHIRLPOOL 9dae92cdcc0fcd5da270b184d7b9b001c711ebf6ff27e2b7e170236f10a254bd92c9d4d58816841599abbfb7ed6edbafa5d55c1f6fc7b02223830fa0d40093bd +AUX tvbrowser-9999-build.xml 37346 SHA256 0d525e01399922d237700d0a679e7743ef71d9edba6c33348ed22151baae073f SHA512 a2eb726c31e8e7fc79dd604c35f8f9a9d3b73c8e2388e965e21b4c3464ed8d5bdbdce65bb4702abde35b46f50f8c059a8085073e71bd6e9eeaf64e25deffb87e WHIRLPOOL 4f8bb71a1a044cf843e5e831046b4c9c59b3d3857db8a4dbc6993e2b7e018e9186d9b14a9c4fca70bcd8d4b00166517ea166491a51448862443f764e61d0a0ed DIST BeOSthemepack.zip 39412 SHA256 ec2acb46a77f38a9750ede23ab573b2c2773bedd37fa1ac7bbaa0bdc74982574 SHA512 479d9180cf8678cb555a86ecc80d19f0f615f7c2f5807acf550d117cfda44155ca80315f51f67c17799b71f9768e9988919d23bfd38abce0887195f30ecb97c3 WHIRLPOOL 430f961de95389f7b503da63fdb01881dad4a54f4799d99917336eff0b167f11b7d6287bc10618292255a93665e498b04d57e6e40526b8688bd3e09f94ea6959 DIST amarachthemepack.zip 53700 SHA256 80bbe3df2c3e44f26bb390994e271264bcc71ff581527039bf677fa38df4a547 SHA512 da0a082dea2abccec47137ef1db54a57b1becfbf0fc1b99fe41c0f60c254f1963dfde032bd622d034a3abde4ead1c2aa00f3ea2d872859ad384168ebe8fd1c52 WHIRLPOOL d748b611c12a3dcfb148282cad27626c802f70b260ac20397548625c3803e821ba0fb0d0a0157c53d72462dc8179d03cecc701c22b72da5130690ff42f1db1e1 DIST aquathemepack.zip 90542 SHA256 eabbfc07a3aa6172145c3786d5ec2abe5185daad358718305e9cd920642b4b01 SHA512 f73c60c0273f796487d04adbc9e6e535a6117f07154b48ad0d41725b50674762fa14b340cf3869167e8eac6f28ddb2e7b0133a0f5ab8fdf548fb7d6419ac9ceb WHIRLPOOL b8bff080331b67a3ebe8eedf5fd854efa95e3155ba5375b8d80ed3ba053ed8fd8de0761b83ae0a2139e47ec852aa0c1eb92a8b9c9df49f3b15b5c25aa52ada1a @@ -61,22 +62,17 @@ DIST xplunathemepack.zip 63343 SHA256 c8a2328597e0b05866919a2c925baf39dad294d1fe EBUILD tvbrowser-3.2.1-r1.ebuild 4830 SHA256 c64680050ae310af637e2ba73fd1c075e53dd1e55a405347849296daa2d5797f SHA512 bcf5eca8160434709aa14cd5bcd6fbc8a22bf4cc4183acd751098f98fb29d8deb947cf193066fe644087c4e36cbb60e870df6e4ec0868e4ce79d7cb09a6dee0a WHIRLPOOL 7f627a4fce575291a800ffe85b26f66c9fbed62cefd710486deb74d450057c36ceb3438a4a103c5a3b82a4a52c0be4f077ae117447eb9cbfc8767a4c3560d2d9 EBUILD tvbrowser-3.4.1.0.ebuild 2449 SHA256 525e3ccbcc340a4a0b9265c0ef9fb905ef0734d9a83fd86ca1b338e144835df9 SHA512 2d61a9ec13319dc9682d964083b0118d8f4a5253d0189a096cacc4717c2f5a79c2d909746aad89f4bdab36440fcadd410379ae3a3e1a8b45cb16635907798a57 WHIRLPOOL 5a83e669b97d963be14283c853e0c9a9eb7e4743ac7adf286f4affb7b08669cac169aabc4da8f0bc09d9a43e4ba24e5438834f059b560b487f10c9bee93f153b EBUILD tvbrowser-3.4.ebuild 2400 SHA256 02cf981cdec5dedeb301105b83efe472da9cd8f7baf9ce4a923d72569f4271d9 SHA512 59bfd149aa4b634bb2a49aad31d437bff5b72fb1c84cf291b49e640d272bfe2448a110f50b3902218ccca9a7aee94d409e1543688a2b042b92620ac503bc1c28 WHIRLPOOL 28c288150986ad0e60ce2e9d740b30c7cf52e776d0f25f830386102c5e53cac126edc3527816b754be47031128995ed08161e806f0d4b03f8f47fce449141ee2 -MISC ChangeLog 9406 SHA256 512cc677af25ca7699b77e90c0d5b3532eb71d3ba445d737351eb5b4ae08570e SHA512 0faf1e91223a4049b5ec7dada15e7893c2a7792e4aeef2329d6b9da430539cc521a15c3d06ab75dceeab500b99684e0d018783d3b54727cbc468c31d791a1be5 WHIRLPOOL b9e20b02a0b6490694353ce522ae9a8ba45fb135f5b41ca763e8a27739ce86386d53f3c48bf850bfe6d8c09e37aa6af10e2bad6ca3e4cef9ac2570130d370631 +EBUILD tvbrowser-9999.ebuild 5140 SHA256 2de47d63bd7b7d16af5bfd7da569726944505d012db1a1155e1fb2a67915a54f SHA512 21cb5b59a85c70f059cfedf05cc1c43033636d19d5b5091f3d4c88760f52d74bf0e0a50e9255c3f46e61fdaefc237088125536be33120676a9a292ec24b372de WHIRLPOOL 0d0a3472ee9c4b641a44108459ee1b79aa188eeeaf576e00749a8481f337a25f2014bc8341b427120d95065eac6211618c4a8700abbc8d5d19c0a3ee4a41052c +MISC ChangeLog 9620 SHA256 5f31a2df76b08713addc217bd99fd01fc7b091c799b5bc4e13ace00f575eab9f SHA512 e207d487bc1aaf3c4f6a5dbda1168a60cb2839fc525cabdc3703e8d105f150cbfc74d0b9a2f3ca256ab293705f1052a4628910293bb721aa2cc9308273964851 WHIRLPOOL 6fc0c54d0e52cf3417007bae552b6b6e924a6d9a3864346fd2890ecaebb4093e7351ac9dca2bb303f77b7a70e585ee456cee574d5bdda3c3d02efb0fb2e7289a MISC metadata.xml 233 SHA256 f40bd2ff3b0eeae2c854f480ce69458c21387e2c73b703b2992b228af36320cf SHA512 f994fdd0e424da1ed6824179de001acde702fd8540f74cece4a998d16387cd00da771b70e21c932a8952b496ddcc8c21a2f0b9f866d3794ab304f4a7d403938b WHIRLPOOL bcbf25c1049cd16babd8445e70ee4d71e428fcf2ed56688e8234b1939dd6a4b84d7ed2ab9ad83c6f7bf1ce058aee47b079a5275afe045551dc9ff1bc35523e97 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJVaZIUAAoJEGVpnaTzz9K9hIYP/2LuyHkH0FcBMiQZeM4RZ6vo -WfSaFQ3Vs++vCenFDHK7MsB8bM8W9PRVFoP51BanK4cnxgSLSZLm2b6XKa9qM0OC -/C4DmtcqCCpmHhTUtNzpWJE2cQsUntRlAq8/e5rNgf8gXHEDNgbOcizB/0cPl3cp -lOtvFu+6HBlHoG+pjz7/gns/sPy6uljHuQbOezQ8v/poGfNXd6hIlLXD/+kYXIgI -Rh0TGHxdGNzbiYW+Mhgg/MgHsmiVmuJLN6eS+TV3mpK/aTOoIyhOcDnC2INyLWKb -H0k3cPeeVWFw4kp3+UEzt16JvW6zmH7yg9jhqHRcgJbNgnJvMExySOPE8bgN07Va -yl66DtqUwMT48LHhBKWrRovJlWDzbZvrCHRRaHYk0lvIyGtsmsxJQ5WgT8JWZ7Yg -1b9lt5gSuw9ewasZxn3E/mFs37ggApZ0v74Poeis4XU0xMErAP6UbP7cD2+55IAs -cfgMaIK9oLzn30JPSDmDxDnGbNXHPNHZoU1EXkgIx3/fOIU2ZBMEeO7+RuQMNMWD -LvJzShKgW+Elh0cSxOzEFGGnKstns+jZUkHaSrNgRcJQMlKyuloyEHS2x3Wc2DxN -PxYo2JJBUK+9CzUxjPcCUlz5Idfyg3XatHgRY5ia7F6HdGJrj0PlDwRviUDBcdGg -iEH4VytjCAJwgU0qw/9J -=FdSa +iQEcBAEBCAAGBQJValxAAAoJEJGRpfGTSRu4efEIAKn6mtOTo2mqv59cooGOd4wh +oPBT48pw0qo8rJxzxYyGVR5IFjRWp/B+Xl7jwMw8aWTlML12RD8W2cPdpgulzDBN +WA9zgbk4v9FfNBLDOv0tDgB/bbS4prg1X2McPMDQWGgkO4DglWUghgNzbbjbGEaf +mU/kuHF4o4kuvhFcy82plWBOJNCE0Bdm785fQqt3q9WzirRV16/qD3zIFIX8tlQ9 +gBBt/KmkfPJg2Ex1vHvZY0xot5g3Hy+utQr8h8G++g/2aYMyqIuMTN7BGYfK19ar +xn3MQHBkiu0ZhQBY3z50vIIoZWInJlPyDnAXcAFbVeY2ee9iSclUqKgpsx4KhYw= +=yWVa -----END PGP SIGNATURE----- diff --git a/media-tv/tvbrowser/files/tvbrowser-9999-build.xml b/media-tv/tvbrowser/files/tvbrowser-9999-build.xml new file mode 100644 index 000000000000..16143b7197d9 --- /dev/null +++ b/media-tv/tvbrowser/files/tvbrowser-9999-build.xml @@ -0,0 +1,965 @@ +<?xml version="1.0"?> +<!-- + | Ant build script for the TV-Browser project. + | + | TV-Browser + | Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org) + | + | This program is free software; you can redistribute it and/or + | modify it under the terms of the GNU General Public License + | as published by the Free Software Foundation; either version 2 + | of the License, or (at your option) any later version. + | + | This program is distributed in the hope that it will be useful, + | but WITHOUT ANY WARRANTY; without even the implied warranty of + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + | GNU General Public License for more details. + | + | You should have received a copy of the GNU General Public License + | along with this program; if not, write to the Free Software + | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + | + | CVS information: + | $RCSfile: tvbrowser-9999-build.xml,v $ + | $Source: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/files/tvbrowser-9999-build.xml,v $ + | $Date: 2015/05/31 00:56:25 $ + | $Author: monsieurp $ + | $Revision: 1.1 $ + | + | Author: Til Schneider, www.murfman.de + +--> +<project name="TV-Browser" default="targets" basedir="."> + + + <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + | + | The properties and paths + | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + + <property environment="env"/> + <property file="build.properties"/> + <property name="programname" value="TV-Browser"/> + <property name="programname.file" value="tvbrowser"/> + <property name="classes.dir" value="classes"/> + <property name="lib.dir" value="lib"/> + <property name="txt.dir" value="txt"/> + <property name="src.dir" value="src"/> + <property name="test.src.dir" value="test/src"/> + <property name="test.classes.dir" value="test/classes"/> + <property name="doc.dir" value="doc"/> + <property name="doc.header" value="${programname} ${tvbrowser.version} API"/> + <property name="doc.title" value="API documentation for ${programname} ${tvbrowser.version}"/> + <property name="doc.bottom" value="${programname} ${tvbrowser.version}, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)"/> + + <property name="unpacked.dir" value="unpacked"/> + + <property name="runtime.dir" value="runtime"/> + <property name="tvbrowser-default.runtime.dir" value="${runtime.dir}/tvbrowser_default"/> + + <property name="tvbrowser-win.runtime.dir" value="${runtime.dir}/tvbrowser_win"/> + <property name="tvbrowser-linux.runtime.dir" value="${runtime.dir}/tvbrowser_linux"/> + <property name="tvbrowser-transportable.runtime.dir" value="${runtime.dir}/tvbrowser_transportable"/> + <property name="tvbrowser-nightly.runtime.dir" value="${runtime.dir}/tvbrowser_nightly"/> + <property name="tvbrowser-mac.runtime.dir" value="${runtime.dir}/tvbrowser_mac"/> + <property name="tvbrowser-macjava.runtime.dir" value="${runtime.dir}/tvbrowser_macjava"/> + <property name="themepacks.dir" value="themepacks"/> + <property name="personas.dir" value="personas"/> + + <property name="deployment.dir" value="deployment" /> + <property name="win.dir" value="${deployment.dir}/win"/> + <property name="linux.dir" value="${deployment.dir}/linux"/> + <property name="osx.dir" value="${deployment.dir}/macosx"/> + <property name="x11.dir" value="${deployment.dir}/x11"/> + <property name="installer.dir" value="${win.dir}/installer"/> + <property name="package-lists.dir" value="${txt.dir}/package-lists"/> + <property name="public.dir" value="public"/> + <property name="newsplugin.url" value="http://www.tvbrowser.org/data/uploads/1372016422809_543/NewsPlugin.jar"/> + + <path id="sourcepath"> + <pathelement location="${src.dir}"/> + </path> + + <path id="classpath"> + <pathelement location="${classes.dir}"/> + <fileset dir="${lib.dir}"> + <include name="*.jar"/> + <exclude name="ant.jar"/> + </fileset> + </path> + + <path id="docpath"> + <path refid="sourcepath"/> + </path> + + <path id="ant-deb.classpath"> + <fileset dir="${deployment.dir}/linux/ant-deb-task" includes="*.jar"/> + </path> + + <path id="ant-rpm.classpath"> + <fileset dir="${deployment.dir}/linux/redline-rpm" includes="*.jar"/> + </path> + + <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + | + | Display all targets + | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + + <target name="targets" description="lists all the available public targets"> + <echo message="usage: build [target]"/> + <echo message=""/> + <echo message="main targets:"/> + <echo message="============="/> + <echo message=" targets Shows this list of targets."/> + <echo message=" download-libs Downloads all necessary libraries from the Internet."/> + <echo message=" dump-info Dumps some information (VM-Version...)."/> + <echo message=" public-default Creates platform-independent binaries"/> + <echo message=" public-mac Creates binaries for the Mac OS X (requires Mac OS X)"/> + <echo message=" public-macjava Creates binaries for the Mac OS X with Java from Oracle (requires Mac OS X)"/> + <echo message=" public-linux Creates binaries for Linux platforms"/> + <echo message=" public-ubuntu Creates binaries for Ubuntu platforms"/> + <echo message=" public-fedora Creates binaries for Fedora platforms"/> + <echo message=" public-transportable Creates platform-independent binaries for transportable version of TV-Browser (requires Windows)"/> + <echo message=" public-nightly Creates platform-independent binaries for nightly transportable version of TV-Browser (without platform dependent starters)"/> + <echo message=" public-src Creates a .zip file containing the full source code of TV-Browser"/> + <echo message=" public-doc Generates the JavaDoc documentation."/> + <echo message=" release-packages Generates all packages needed for a TV-Browser release (without Mac version, works only under Windows)."/> + <echo message=""/> + <echo message="further targets:"/> + <echo message="================"/> + <echo message=" clean Deletes all class files, runtime directories and temporary files."/> + <echo message=" clean-runtime Deletes the runtime directory."/> + <echo message=" make-default Compiles the platform independent source code."/> + <echo message=" make-transportable Compiles the platform independent source code for transportable version."/> + <echo message=" make-linux Compiles the source code for linux platforms."/> + <echo message=" make-win Compiles the source code for windows platforms."/> + <echo message=" make-mac Compiles the source code for Mac OS X."/> + <echo message=" make-macjava Compiles the source code for Mac OS X with Java from Oracle."/> + <echo message=" runtime-default Creates the platform independent runtime directory" /> + <echo message=" runtime-transportable Creates the platform independent runtime directory for transportable version" /> + <echo message=" runtime-linux Creates a runtime directory for linux platforms" /> + <echo message=" runtime-mac Creates a runtime directory for Mac OS X" /> + <echo message=" runtime-macjava Creates a runtime directory for Mac OS X with Java from Oracle" /> + <echo message=" runtime-win Creates a runtime directory for MS Windows" /> + <echo message=" test Runs the JUnit tests."/> + </target> + + + <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + | + | Clean tasks: remove files + | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + + + <!-- Deletes the runtime director --> + <target name="clean"> + <delete dir="${classes.dir}"/> + <delete dir="${unpacked.dir}"/> + <delete dir="${test.classes.dir}"/> + </target> + + + <!-- Deletes the classes and the runtime directory. --> + <target name="clean-default" depends="clean"> + <delete dir="${tvbrowser-default.runtime.dir}"/> + </target> + + <!-- Deletes the classes and the runtime directory. --> + <target name="clean-transportable" depends="clean"> + <delete dir="${tvbrowser-transportable.runtime.dir}"/> + </target> + + <!-- Deletes the classes and the runtime directory. --> + <target name="clean-win" depends="clean"> + <delete dir="${tvbrowser-win.runtime.dir}"/> + </target> + + <!-- Deletes the classes and the runtime directory. --> + <target name="clean-linux" depends="clean"> + <delete dir="${tvbrowser-linux.runtime.dir}"/> + </target> + + <!-- Deletes the classes and the runtime directory. --> + <target name="clean-mac" depends="clean"> + <delete dir="${tvbrowser-mac.runtime.dir}"/> + </target> + + <!-- Deletes the classes and the runtime directory. --> + <target name="clean-macjava" depends="clean"> + <delete dir="${tvbrowser-macjava.runtime.dir}"/> + </target> + + <target name="clean-all" depends="clean-mac, clean-macjava, clean-linux, clean-win, clean-default"> + <delete dir="${public.dir}"/> + </target> + + + + <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +| +| Make tasks: compile the source code +| +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + <target name="copy-resources"> + <copy todir="${classes.dir}"> + <fileset dir="${src.dir}" includes="**/*.gif"/> + <fileset dir="${src.dir}" includes="**/*.jpg"/> + <fileset dir="${src.dir}" includes="**/*.png"/> + <fileset dir="${src.dir}" includes="**/*.dtd"/> + <fileset dir="${src.dir}" includes="**/*.properties"/> + <fileset dir="${src.dir}" includes="**/*.theme"/> + <fileset dir="${src.dir}" includes="**/*.csv"/> + </copy> + </target> + + <!-- Compiles the platform independent source code --> + <target name="make-default" depends="copy-resources"> + <echo message="Compiling the source code ... "/> + <mkdir dir="${classes.dir}"/> + <javac destdir="${classes.dir}" debug="${debug}" deprecation="true" encoding="UTF-8" target="1.6" source="1.6"> + <src> + <path refid="sourcepath"/> + </src> + <classpath> + <path refid="classpath"/> + </classpath> + </javac> + + + </target> + + + <!-- Compiles the source code for windows platforms --> + <target name="make-win" depends="make-default"> + + </target> + + + <!-- Compiles the source code for linux platforms --> + <target name="make-linux" depends="make-default"> + + </target> + + <!-- Compiles the source code for transportable version of TV-Browser --> + <target name="make-transportable" depends="make-default"> + + </target> + + <!-- Compiles the source code for mac platforms --> + <target name="make-mac" depends="copy-resources"> + <echo message="Compiling the source code ..."/> + <mkdir dir="${classes.dir}"/> + <javac destdir="${classes.dir}" debug="${debug}" deprecation="true" encoding="UTF-8" target="1.5" source="1.5"> + <src> + <path refid="sourcepath"/> + </src> + <classpath> + <path refid="classpath"/> + <path location="/System/Library/Java"/> + </classpath> + </javac> + + </target> + + <!-- Compiles the source code for mac platforms with Java from Oracle --> + <target name="make-macjava" depends="copy-resources"> + <echo message="Compiling the source code ..."/> + <mkdir dir="${classes.dir}"/> + <javac destdir="${classes.dir}" debug="${debug}" deprecation="true" encoding="UTF-8" target="1.6" source="1.6"> + <src> + <path refid="sourcepath"/> + </src> + <classpath> + <path refid="classpath"/> + <path location="/Library/Java/JavaVirtualMachines"/> + </classpath> + </javac> + + </target> + + <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + | + | Runtime tasks: create runtime folders for the specified platform + | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + + <target name="mkdirs"> + <!-- Make the TV-Browser runtime --> + <delete dir="${tvbrowser-default.runtime.dir}"/> + <mkdir dir="${tvbrowser-default.runtime.dir}"/> + <mkdir dir="${tvbrowser-default.runtime.dir}/plugins"/> + </target> + + <!-- Creates the platform independent runtime folder --> + <target name="runtime" depends="clean-default, make-default, mkdirs"> + <echo message="Creating the jars ..."/> + + <!-- Pack the tvbrowser.jar --> + <jar jarfile="${tvbrowser-default.runtime.dir}/tvbrowser.jar" + compress="true" + index="true"> + <manifest> + <attribute name="Main-Class" value="tvbrowser.TVBrowser"/> + <attribute name="SplashScreen-Image" value="splash.png"/> + </manifest> + <fileset dir="${classes.dir}" includes="tvbrowser/**"/> + <fileset dir="${classes.dir}" includes="devplugin/**"/> + <fileset dir="${classes.dir}" includes="tvdataservice/**"/> + <fileset dir="${classes.dir}" includes="util/**"/> + <fileset dir="${classes.dir}" includes="com/**"/> + <fileset dir="${classes.dir}/imgs" includes="splash.png"/> + </jar> + + <!-- Copy the other stuff --> + <echo message="Copying the images and all the other stuff ..."/> + <mkdir dir="${tvbrowser-default.runtime.dir}/imgs"/> + <copy todir="${tvbrowser-default.runtime.dir}/imgs"> + <fileset dir="${classes.dir}/imgs" excludes="splash.png"/> + </copy> + + <copy todir="${tvbrowser-default.runtime.dir}/imgs"> + <fileset dir="./images/additional"> + <include name="*.ico"/> + </fileset> + </copy> + + <mkdir dir="${tvbrowser-default.runtime.dir}/personas"/> + <copy todir="${tvbrowser-default.runtime.dir}/personas"> + <fileset dir="./personas"/> + </copy> + <copy todir="${tvbrowser-default.runtime.dir}"> + <fileset dir="${txt.dir}" includes="LICENSE.txt"/> + <fileset dir="${txt.dir}" includes="COPYRIGHT.txt"/> + <fileset dir="${deployment.dir}/common" includes="**" /> + <!-- <fileset dir="${txt.dir}" includes="website.url"/> --> + <!-- <fileset dir="${txt.dir}" includes="default.properties"/> --> + <!-- <fileset dir="${txt.dir}" includes="osx.properties"/> --> + <!-- <fileset dir="${txt.dir}" includes="windows.properties"/> --> + <!-- <fileset dir="${txt.dir}" includes="tvbrowser.sh"/> --> + </copy> + + <!-- Themepacks --> + <mkdir dir="${tvbrowser-default.runtime.dir}/themepacks"/> + <copy todir="${tvbrowser-default.runtime.dir}/themepacks"> + <fileset dir="themepacks"/> + </copy> + + <!-- Icon-Themes --> + <mkdir dir="${tvbrowser-default.runtime.dir}/icons"/> + + <!-- Info-Icon-Themes --> + <mkdir dir="${tvbrowser-default.runtime.dir}/infothemes"/> + + <zip destfile="${tvbrowser-default.runtime.dir}/infothemes/tvb_default.zip"> + <zipfileset dir="images/infothemes/tvb_default"></zipfileset> + </zip> + <zip destfile="${tvbrowser-default.runtime.dir}/infothemes/tvb_colored.zip"> + <zipfileset dir="images/infothemes/tvb_colored"></zipfileset> + </zip> + + <zip destfile="${tvbrowser-default.runtime.dir}/icons/Tango.zip"> + <zipfileset dir="images/themes/tango"></zipfileset> + </zip> + <zip destfile="${tvbrowser-default.runtime.dir}/icons/CrystalClear.zip"> + <zipfileset dir="images/themes/CrystalClear"></zipfileset> + </zip> + </target> + + <!-- Creates the default runtime folder (platform independent) --> + <target name="runtime-default" depends="clean-default, make-default, runtime"> + </target> + + + <!-- Creates the runtime folder for the transportable version --> + <target name="runtime-transportable" depends="clean-transportable, make-transportable, runtime"> + <echo message="deployment dir is ${deployment.dir}, win is ${win.dir}" /> + <mkdir dir="${tvbrowser-transportable.runtime.dir}"/> + <mkdir dir="${tvbrowser-transportable.runtime.dir}/settings"/> + <copy todir="${tvbrowser-transportable.runtime.dir}/settings"> + <fileset dir="${deployment.dir}" includes="packer.txt"/> + </copy> + <copy todir="${tvbrowser-transportable.runtime.dir}"> + <fileset dir="${tvbrowser-default.runtime.dir}"/> + <fileset dir="${win.dir}/jRegistryKey" includes="jRegistryKey.dll" /> + </copy> + </target> + + <!-- Creates the runtime folder for the windows platform --> + <target name="runtime-win" depends="clean-win, make-win, runtime"> + <echo message="deployment dir is ${deployment.dir}, win is ${win.dir}" /> + <mkdir dir="${tvbrowser-win.runtime.dir}"/> + <copy todir="${tvbrowser-win.runtime.dir}"> + <fileset dir="${tvbrowser-default.runtime.dir}"/> + <fileset dir="${win.dir}/jRegistryKey" includes="jRegistryKey.dll" /> + <fileset dir="${deployment.dir}" includes="windows.properties"/> + <fileset dir="${win.dir}" includes="tvbrowser_noDD.txt"/> + </copy> + + </target> + + + <!-- Creates the runtime folder for the Mac platform --> + <target name="runtime-mac" depends="clean-mac, make-mac, runtime"> + + <delete dir="${tvbrowser-mac.runtime.dir}"/> + <mkdir dir="${tvbrowser-mac.runtime.dir}"/> + + <jarbundler dir="${tvbrowser-mac.runtime.dir}" + verbose="false" + name="TV-Browser" + icon="./images/additional/tvbrowser.icns" + mainclass="tvbrowser.TVBrowser" + extraclasspath="/System/Library/Java" + jvmversion="1.6+" + vmoptions="-Dpropertiesfile=osx.properties -Xmx256m" + bundleid="org.tvbrowser" + smalltabs="true" + antialiasedgraphics="true" + antialiasedtext="true" + liveresize="true" + growboxintrudes="false" + screenmenu="true" + developmentregion="Global" + version="${tvbrowser.version}" + workingdirectory="$APP_PACKAGE/Contents/Resources" + jars="${tvbrowser-default.runtime.dir}/tvbrowser.jar"> + <resourcefileset dir="${tvbrowser-default.runtime.dir}"> + <exclude name="tvbrowser.jar"/> + </resourcefileset> + </jarbundler> + + <copy todir="${tvbrowser-mac.runtime.dir}/TV-Browser.app/Contents/Resources"> + <fileset dir="${deployment.dir}" includes="osx.properties"/> + </copy> + + </target> + + <!-- Creates the runtime folder for the Mac platform with Java from Oracle-> + <target name="runtime-macjava" depends="clean-macjava, make-macjava, runtime, test"--> + <target name="runtime-macjava" depends="clean-macjava, make-macjava, runtime"> + + <!-- Creates an .app file for Mac OS X with appbundler for Java SE 7+ from infinitekind --> + <taskdef name="appbundler" + classpath="deployment/macosx7/appbundler-1.0ea.jar" + classname="com.oracle.appbundler.AppBundlerTask" /> + + <!--runtime dir="${env.JAVA_HOME}"/--> + + <delete dir="${tvbrowser-macjava.runtime.dir}"/> + <mkdir dir="${tvbrowser-macjava.runtime.dir}"/> + + <appbundler + outputdirectory="${tvbrowser-macjava.runtime.dir}" + name="TV-Browser" + icon="images/additional/tvbrowser.icns" + displayname="TV-Browser" + identifier="tvbrowser.TVBrowser" + shortversion="${tvbrowser.version}" + applicationCategory="public.app-category.entertainment" + workingDirectory="$APP_ROOT/Contents/Resources" + mainclassname="tvbrowser.TVBrowser" + highResolutionCapable="false"> + <classpath dir="${tvbrowser-default.runtime.dir}"> + <include name="*.jar"/> + </classpath> + <!-- OSX specific options, optional --> + <option value="-Dpropertiesfile=osx.properties"/> + <option value="-Dapple.laf.useScreenMenuBar=true"/> + <option value="-Dcom.apple.macos.use-file-dialog-packages=true"/> + <!--option value="-Dcom.apple.macos.useScreenMenuBar=true"/--> + <option value="-Dcom.apple.mrj.application.apple.menu.about.name=${bundle.name}"/> + <option value="-Dcom.apple.smallTabs=true"/> + <option value="-Xmx1024M"/> + </appbundler> + + <copy todir="${tvbrowser-macjava.runtime.dir}/TV-Browser.app/Contents/Resources"> + <fileset dir="${tvbrowser-default.runtime.dir}" excludes="tvbrowser.jar"/> + </copy> + <copy todir="${tvbrowser-macjava.runtime.dir}/TV-Browser.app/Contents/Resources"> + <fileset dir="${deployment.dir}" includes="osx.properties"/> + </copy> + + </target> + + + <!-- Creates the desktop entry file for Linux platforms --> + <target name="tvbrowser-desktop-entry"> + <desktopEntry + toFile="${tvbrowser-linux.runtime.dir}/tvbrowser.desktop" + name="TV-Browser" + icon="imgs/tvbrowser128.png" + exec="tvbrowser.sh" + tryExec="tvbrowser.sh" + categories="Video;AudioVideo;TV" + type="Application" + > + <name lang="de" value="${programname}"/> + <genericName value="Digital TV Guide"/> + <genericName lang="de" value="Digitale TV-Zeitschrift"/> + <comment value="Themeable and easy to use TV Guide - written in Java"/> + <comment lang="de" value="Anpassbare und einfach zu benutzende TV-Zeitschrift - geschrieben in Java"/> + </desktopEntry> + <echo file="${tvbrowser-linux.runtime.dir}/tvbrowser.desktop" append="true">StartupWMClass=tvbrowser-TVBrowser</echo> + </target> + + <!-- Creates the desktop entry file for Ubuntu platform --> + <target name="tvbrowser-desktop-entry-deb"> + <desktopEntry + toFile="${tvbrowser-linux.runtime.dir}/tvbrowser.desktop" + name="${programname}" + icon="/usr/share/tvbrowser/imgs/tvbrowser128.png" + exec="tvbrowser" + categories="Video;AudioVideo;TV" + type="Application" + comment="Easy to use TV Guide - written in Java" + > + <name lang="de" value="${programname}"/> + <genericName value="Digital TV Guide"/> + <genericName lang="de" value="Digitale TV-Zeitschrift"/> + <comment value="Themeable and easy to use TV Guide - written in Java"/> + <comment lang="de" value="Anpassbare und einfach zu benutzende TV-Zeitschrift - geschrieben in Java"/> + </desktopEntry> + <echo file="${tvbrowser-linux.runtime.dir}/tvbrowser.desktop" append="true">StartupWMClass=tvbrowser-TVBrowser</echo> + </target> + + <!-- Creates the runtime folder for linux platforms --> + <target name="runtime-linux" depends="clean-linux, make-linux, runtime"> + <delete dir="${tvbrowser-linux.runtime.dir}"/> + <mkdir dir="${tvbrowser-linux.runtime.dir}"/> + <copy todir="${tvbrowser-linux.runtime.dir}"> + <fileset dir="${tvbrowser-default.runtime.dir}"/> + <fileset dir="${deployment.dir}" includes="linux.properties"/> + <fileset dir="${linux.dir}" includes="tvbrowser.sh"/> + <!-- <fileset dir="${linux.dir}" includes="tvbrowser.desktop"/>--> + </copy> + <chmod perm="u+x" file="${tvbrowser-linux.runtime.dir}/tvbrowser.sh"/> + </target> + + <target name="release-packages" depends="public-linux, public-ubuntu, public-fedora, public-default, public-doc, public-src"/> + + <!-- Creates the release binaries (.zip) for the platform independent TV-Browser version --> + <target name="public-default" depends="runtime-default" description="creates platform-independent binaries"> + <mkdir dir="${public.dir}"/> + + <zip destfile="${public.dir}/tvbrowser_${tvbrowser.version}_bin.zip"> + <zipfileset prefix="tvbrowser-${tvbrowser.version}" + dir="${tvbrowser-default.runtime.dir}"/> + </zip> + </target> + + <target name="clean-public"> + <delete> + <fileset dir="${public.dir}" includes="**/*"/> + </delete> + </target> + + <target name="public-nightly" depends="clean-public,runtime-transportable" description="Creates platform-independent binaries for nightly transportable version of TV-Browser (without platform dependent starters)"> + <mkdir dir="${public.dir}"/> + + <tstamp> + <format property="TODAY" pattern="yyyy-MM-dd"/> + </tstamp> + + <echo file="${tvbrowser-transportable.runtime.dir}/NIGHTLY_VALUES" append="false">${TODAY}-nightly</echo> + + <zip destfile="${public.dir}/tvbrowser_${tvbrowser.version}_${TODAY}_nightly_bin_transportable.zip"> + <zipfileset prefix="tvbrowser-nightly-transportable" dir="${tvbrowser-transportable.runtime.dir}"/> + </zip> + + </target> + + <target name="public-ubuntu" depends="runtime-linux, tvbrowser-desktop-entry-deb" description="Creates binaries for Ubuntu platforms"> + <mkdir dir="${public.dir}"/> + + <deb + todir="${public.dir}" + package="tvbrowser" + section="utils" + depends="sun-java6-jre | openjdk-6-jre | sun-java7-jre | openjdk-7-jre | openjdk-8-jre | default-jre | java6-runtime | java7-runtime | java8-runtime " + recommends="openjdk-6-jre"> + + <version upstream="${tvbrowser.version}"/> + <maintainer name="TV-Browser team" email="dev@tvbrowser.org"/> + + <!-- do not indent the description, otherwise the indent will be visible in the package manager and other tools --> + <description synopsis="Digital TV Guide">Themeable and easy to use TV Guide - written in Java.</description> + + <tarfileset dir="${tvbrowser-linux.runtime.dir}" prefix="usr/share/tvbrowser"> + <include name="imgs/**"/> + <include name="plugins/**"/> + <include name="themepacks/**"/> + <include name="infothemes/**"/> + <exclude name="tvbrowser.sh"/> + <exclude name="tvbrowser.desktop"/> + <include name="*"/> + </tarfileset> + + <tarfileset dir="${tvbrowser-linux.runtime.dir}/personas" prefix="usr/share/tvbrowser/personas" /> + + <tarfileset dir="${tvbrowser-linux.runtime.dir}/icons" prefix="usr/share/tvbrowser/icons"> + <include name="*"/> + </tarfileset> + <tarfileset dir="${tvbrowser-linux.runtime.dir}" prefix="usr/share/tvbrowser" filemode="755" includes="**/tvbrowser.sh" /> + <tarfileset dir="${tvbrowser-linux.runtime.dir}" prefix="usr/share/applications" includes="**/tvbrowser.desktop"/> + <tarfileset dir="${deployment.dir}/linux" + prefix="usr/bin" + filemode="755" includes="**/tvbrowser" /> + </deb> + </target> + + <target name="public-fedora" depends="runtime-linux, tvbrowser-desktop-entry-deb" description="Creates binaries for RedHat platforms"> + <mkdir dir="${public.dir}"/> + + <rrpm + destination="${public.dir}" + name="tvbrowser" + version="${tvbrowser.version}" + group="Java"> + + <zipfileset dir="${tvbrowser-linux.runtime.dir}" prefix="/usr/share/tvbrowser"> + <include name="imgs/**"/> + <include name="plugins/**"/> + <include name="themepacks/**"/> + <include name="infothemes/**"/> + <exclude name="tvbrowser.sh"/> + <exclude name="tvbrowser.desktop"/> + <include name="*"/> + </zipfileset> + + <zipfileset dir="${tvbrowser-linux.runtime.dir}/personas" prefix="/usr/share/tvbrowser/personas" /> + + <zipfileset dir="${tvbrowser-linux.runtime.dir}/icons" prefix="/usr/share/tvbrowser/icons"> + <include name="*"/> + </zipfileset> + <zipfileset dir="${tvbrowser-linux.runtime.dir}" prefix="/usr/share/tvbrowser" filemode="755" includes="**/tvbrowser.sh" /> + <zipfileset dir="${tvbrowser-linux.runtime.dir}" prefix="/usr/share/applications" includes="**/tvbrowser.desktop"/> + <zipfileset dir="${deployment.dir}/linux" + prefix="/usr/bin" + filemode="755" includes="**/tvbrowser" /> + <depends name="java" version="1.6"/> + </rrpm> + </target> + + <!-- Creates the release binaries (.tar.gz) for linux platforms --> + <target name="public-linux" depends="runtime-linux, tvbrowser-desktop-entry" description="Creates binaries for Linux platforms"> + <mkdir dir="${public.dir}"/> + + <tar tarfile="${public.dir}/tvbrowser_${tvbrowser.version}_bin.tar.gz" compression="gzip"> + <tarfileset dir="${tvbrowser-linux.runtime.dir}" prefix="tvbrowser-${tvbrowser.version}" excludes="**/tvbrowser.sh"/> + <tarfileset dir="${tvbrowser-linux.runtime.dir}" + prefix="tvbrowser-${tvbrowser.version}" + mode="755" includes="**/tvbrowser.sh" /> + </tar> + + </target> + + <!-- + | Does the JUnit s. + | + | If this target does not work, copy the file "junit.jar" from the directory "lib" + | in your ANT_HOME/lib directory. (ANT_HOME/lib is on my machine "/usr/share/ant/lib") + +--> + <target name="test" depends="make-default"> + <echo>${ant.version}. JUnit4 tests will only work with Ant>=1.7</echo> + <mkdir dir="${test.classes.dir}"/> + <javac destdir="${test.classes.dir}" debug="${debug}" deprecation="true" encoding="UTF-8" target="1.5" source="1.5"> + <src> + <path path="${test.src.dir}"/> + </src> + <classpath> + <path refid="classpath"/> + </classpath> + </javac> + + <copy todir="${test.classes.dir}"> + <fileset dir="${test.src.dir}" includes="**/*.gif"/> + <fileset dir="${test.src.dir}" includes="**/*.jpg"/> + <fileset dir="${test.src.dir}" includes="**/*.png"/> + <fileset dir="${test.src.dir}" includes="**/*.dtd"/> + <fileset dir="${test.src.dir}" includes="**/*.properties"/> + <fileset dir="${test.src.dir}" includes="**/*.theme"/> + <fileset dir="${test.src.dir}" includes="**/*.txt"/> + </copy> + + + <junit haltonfailure="yes" fork="no" > + <classpath> + <path refid="classpath"/> + <path path="${test.classes.dir}"/> + </classpath> + + <formatter type="brief" usefile="false"/> + + <batchtest> + <fileset dir="${test.src.dir}"> + <include name="**/*Test.java"/> + </fileset> + </batchtest> + </junit> + </target> + + + <!-- + | Generates the JavaDoc documentation. + +--> + <target name="public-doc" description="Generates the JavaDoc documentation"> + <echo message="Generating JavaDoc documentation ..." /> + <delete dir="${doc.dir}"/> + <mkdir dir="${doc.dir}"/> + <javadoc packagenames="*" + sourcepathref="docpath" + classpathref="classpath" + destdir="${doc.dir}" + doctitle="${doc.title}" + windowtitle="${doc.title}" + additionalparam="-breakiterator" + header="${doc.header}" + bottom="${doc.bottom}" + access="package" + failonerror="false" + encoding="UTF-8" + charset="UTF-8" + docencoding="UTF-8"> + <link offline="true" + href="${java-api-location}" + packagelistLoc="${package-lists.dir}/jdk/"/> + </javadoc> + + + <zip destfile="${public.dir}/tvbrowser_${tvbrowser.version}_doc.zip"> + <zipfileset prefix="tvbrowser_v${tvbrowser.version}/doc" + dir="${doc.dir}"/> + </zip> + + </target> + + <!-- + | Dump some information. + +--> + <target name="dump-info"> + <echo message="JAVA_HOME=${env.JAVA_HOME}" /> + <echo message="java.vm.info=${java.vm.info}" /> + <echo message="java.vm.name=${java.vm.name}" /> + <echo message="java.vm.vendor=${java.vm.vendor}" /> + <echo message="java.vm.version=${java.vm.version}" /> + <echo message="os.arch=${os.arch}" /> + <echo message="os.name=${os.name}" /> + <echo message="os.version=${os.version}" /> + <echo message="file.encoding=${file.encoding}" /> + <echo message="user.language=${user.language}" /> + </target> + + + + + <target name="public-src" description="Creates a .zip file containing the full source code of TV-Browser"> + <mkdir dir="${public.dir}"/> + <zip destfile="${public.dir}/tvbrowser_${tvbrowser.version}_src.zip"> + <zipfileset prefix="tvbrowser-${tvbrowser.version}" + dir="."> + + <exclude name="${classes.dir}/**" /> + <exclude name="${public.dir}/**" /> + <exclude name="${runtime.dir}/**" /> + <exclude name="${unpacked.dir}/**" /> + + </zipfileset> + </zip> + </target> + + + <!-- - - - - - - - - - - - - - - - - - + internal target: download-zipped-lib + - - - - - - - - - - - - - - - - - --> + <target name="download-zipped-lib"> + + <macrodef name="propertycopy"> + <attribute name="name"/> + <attribute name="from"/> + <sequential> + <property name="@{name}" value="${@{from}}"/> + </sequential> + </macrodef> + + <propertycopy name="lib.url" from="lib.${lib}.url"/> + <propertycopy name="lib.name" from="lib.${lib}.name"/> + <propertycopy name="lib.version" from="lib.${lib}.version"/> + + <get dest="${lib.dir}/download.zip" src="${lib.url}"/> + <unzip src="${lib.dir}/download.zip" dest="${lib.dir}/download"> + <patternset> + <include name="**/${lib.name}*.jar"/> + </patternset> + <flattenmapper/> + </unzip> + <copy todir="${lib.dir}" verbose="true" overwrite="true"> + <fileset dir="${lib.dir}/download"> + <include name="${lib.name}.jar"/> + <include name="${lib.name}-?.?.jar"/> + <include name="${lib.name}-?.?.?.jar"/> + <include name="${lib.name}-?.?.??.jar"/> + <include name="${lib.name}-r*.jar"/> + </fileset> + <mapper> + <mergemapper to="${lib.name}-${lib.version}.jar"/> + </mapper> + </copy> + <delete dir="${lib.dir}/download"/> + </target> + +<!-- - - - - - - - - - - - - - - - - - + internal target: download-tarred-lib + - - - - - - - - - - - - - - - - - --> + <target name="download-tarred-lib"> + <macrodef name="propertycopy"> + <attribute name="name"/> + <attribute name="from"/> + <sequential> + <property name="@{name}" value="${@{from}}"/> + </sequential> + </macrodef> + + <propertycopy name="lib.url" from="lib.${lib}.url"/> + <propertycopy name="lib.name" from="lib.${lib}.name"/> + <propertycopy name="lib.version" from="lib.${lib}.version"/> + + <get dest="${lib.dir}/download.tar.gz" src="${lib.url}"/> + <gunzip src="${lib.dir}/download.tar.gz"/> + <untar src="${lib.dir}/download.tar" dest="${lib.dir}/download"> + <patternset> + <include name="**/${lib.name}*.jar"/> + </patternset> + <flattenmapper/> + </untar> + <copy todir="${lib.dir}" verbose="true" overwrite="true"> + <fileset dir="${lib.dir}/download"> + <include name="${lib.name}.jar"/> + <include name="${lib.name}-?.?.jar"/> + <include name="${lib.name}-?.?.?.jar"/> + <include name="${lib.name}-?.?.??.jar"/> + </fileset> + <mapper> + <mergemapper to="${lib.name}-${lib.version}.jar"/> + </mapper> + </copy> + <delete dir="${lib.dir}/download"/> + </target> + +<!-- - - - - - - - - - - - - - - - - - + internal target: download-lib + - - - - - - - - - - - - - - - - - --> + <target name="download-lib"> + <macrodef name="propertycopy"> + <attribute name="name"/> + <attribute name="from"/> + <sequential> + <property name="@{name}" value="${@{from}}"/> + </sequential> + </macrodef> + + <propertycopy name="lib.url" from="lib.${lib}.url"/> + <propertycopy name="lib.name" from="lib.${lib}.name"/> + <propertycopy name="lib.version" from="lib.${lib}.version"/> + + <get dest="${lib.dir}/${lib.name}-${lib.version}.jar" src="${lib.url}"/> + </target> + + <target name="download-libs" description="downloads all necessary library files"> + <mkdir dir="${lib.dir}"/> + + <!-- bsh --> + <antcall target="download-lib"> + <param name="lib" value="bsh"/> + </antcall> + + <!-- commons codec --> + <antcall target="download-zipped-lib"> + <param name="lib" value="commons.codec"/> + </antcall> + + <!-- commons lang --> + <antcall target="download-zipped-lib"> + <param name="lib" value="commons.lang"/> + </antcall> + + <!-- commons net --> + <antcall target="download-zipped-lib"> + <param name="lib" value="commons.net"/> + </antcall> + + <!-- htmlparser --> + <antcall target="download-zipped-lib"> + <param name="lib" value="htmlparser"/> + </antcall> + + <!-- jgoodies common --> + <antcall target="download-zipped-lib"> + <param name="lib" value="jgoodies-common"/> + </antcall> + + <!-- jgoodies forms --> + <antcall target="download-zipped-lib"> + <param name="lib" value="jgoodies-forms"/> + </antcall> + + <!-- jgoodies looks --> + <antcall target="download-zipped-lib"> + <param name="lib" value="jgoodies-looks"/> + </antcall> + + <!-- jRegistryKey --> + <antcall target="download-zipped-lib"> + <param name="lib" value="jregistrykey"/> + </antcall> + + <!-- l2prod common tasks --> + <antcall target="download-zipped-lib"> + <param name="lib" value="tasks"/> + </antcall> + + <!-- opencsv --> + <antcall target="download-tarred-lib"> + <param name="lib" value="opencsv"/> + </antcall> + + <!-- skinlf --> + <antcall target="download-zipped-lib"> + <param name="lib" value="skinlf"/> + </antcall> + + <!-- stax --> + <antcall target="download-lib"> + <param name="lib" value="stax"/> + </antcall> + <antcall target="download-lib"> + <param name="lib" value="stax.api"/> + </antcall> + + <!-- substance --> + <antcall target="download-lib"> + <param name="lib" value="substance"/> + </antcall> + + <!-- texhyphj --> + <antcall target="download-zipped-lib"> + <param name="lib" value="texhyphj"/> + </antcall> + + <!-- trident --> + <antcall target="download-lib"> + <param name="lib" value="trident"/> + </antcall> + + <delete dir="${lib.dir}"> + <patternset> + <include name="*.zip"/> + <include name="*.tar.gz"/> + <include name="*.tar"/> + </patternset> + </delete> + </target> + <target name="public-tvdatakit"></target> + +</project> diff --git a/media-tv/tvbrowser/tvbrowser-9999.ebuild b/media-tv/tvbrowser/tvbrowser-9999.ebuild new file mode 100644 index 000000000000..55613a005893 --- /dev/null +++ b/media-tv/tvbrowser/tvbrowser-9999.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/tvbrowser-9999.ebuild,v 1.1 2015/05/31 00:56:25 monsieurp Exp $ + +EAPI=5 + +JAVA_PKG_IUSE="doc source test" + +inherit eutils java-pkg-2 java-ant-2 flag-o-matic virtualx subversion + +tp_base="http://javootoo.l2fprod.com/plaf/skinlf/themepacks" +tvp_base="http://tvbrowser.org/downloads" + +DESCRIPTION="Themeable and easy to use TV Guide - written in Java" +HOMEPAGE="http://www.tvbrowser.org/" +ESVN_REPO_URI="https://tvbrowser.svn.sourceforge.net/svnroot/tvbrowser/trunk/tvbrowser" +SRC_URI=" +themes? ( + ${tp_base}/BeOSthemepack.zip + ${tp_base}/amarachthemepack.zip + ${tp_base}/aquathemepack.zip + ${tp_base}/architectBluethemepack.zip + ${tp_base}/architectOlivethemepack.zip + ${tp_base}/b0sumiErgothempack.zip + ${tp_base}/b0sumithemepack.zip + ${tp_base}/bbjthemepack.zip + ${tp_base}/beigeazulthemepack.zip + ${tp_base}/beosthemepack.zip + ${tp_base}/blueMetalthemepack.zip + ${tp_base}/blueTurquesathemepack.zip + ${tp_base}/cellshadedthemepack.zip + ${tp_base}/chaNinja-Bluethemepack.zip + ${tp_base}/coronaHthemepack.zip + ${tp_base}/cougarthemepack.zip + ${tp_base}/crystal2themepack.zip + ${tp_base}/fatalEthemepack.zip + ${tp_base}/gfxOasisthemepack.zip + ${tp_base}/gorillathemepack.zip + ${tp_base}/hmmXPBluethemepack.zip + ${tp_base}/hmmXPMonoBluethemepack.zip + ${tp_base}/iBarthemepack.zip + ${tp_base}/macosthemepack.zip + ${tp_base}/midnightthemepack.zip + ${tp_base}/mmMagra-Xthemepack.zip + ${tp_base}/modernthemepack.zip + ${tp_base}/oliveGreenLunaXPthemepack.zip + ${tp_base}/opusLunaSilverthemepack.zip + ${tp_base}/opusOSBluethemepack.zip + ${tp_base}/opusOSDeepthemepack.zip + ${tp_base}/opusOSOlivethemepack.zip + ${tp_base}/quickSilverRthemepack.zip + ${tp_base}/roueBluethemepack.zip + ${tp_base}/roueBrownthemepack.zip + ${tp_base}/roueGreenthemepack.zip + ${tp_base}/royalInspiratthemepack.zip + ${tp_base}/silverLunaXPthemepack.zip + ${tp_base}/solunaRthemepack.zip + ${tp_base}/tigerGraphitethemepack.zip + ${tp_base}/tigerthemepack.zip + ${tp_base}/toxicthemepack.zip + ${tp_base}/underlingthemepack.zip + ${tp_base}/whistlerthemepack.zip + ${tp_base}/xplunathemepack.zip + + ${tvp_base}/noia.zip + ${tvp_base}/nuvola.zip + ${tvp_base}/tulliana.zip + ${tvp_base}/tango_without_heart.zip +)" + +SLOT="0" +KEYWORDS="" +LICENSE="GPL-3" + +IUSE="themes" + +CDEPEND="dev-java/bsh:0 + dev-java/commons-codec:0 + dev-java/commons-lang:3.3 + dev-java/commons-net:0 + dev-java/jakarta-oro:2.0 + dev-java/jgoodies-common:1.8 + dev-java/jgoodies-forms:1.8 + dev-java/jgoodies-looks:2.6 + dev-java/l2fprod-common:0 + dev-java/log4j:0 + dev-java/skinlf:0 + dev-java/stax:0 + dev-java/swt:4.2 + dev-java/xalan:0 + x11-libs/libXt:0 + x11-libs/libSM:0 + x11-libs/libICE:0 + x11-libs/libXext:0 + x11-libs/libXtst:0 + x11-libs/libX11:0 + x11-libs/libXau:0 + x11-libs/libXdmcp:0" + +DEPEND="${CDEPEND} + app-arch/unzip:0 + >=virtual/jdk-1.6 + test? ( dev-java/junit:0 dev-java/ant-junit:0 )" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" + +src_prepare() { + cp "${FILESDIR}"/${P}-build.xml build.xml || die "Failed to replace build.xml." + + # Yes, there are some bundled jars. + # Can't help but use them for the time being. + local error="Failed to unbundle or remove libraries or classes." + pushd lib > /dev/null + rm -v bsh-*.jar commons*.jar jgoodies*.jar l2fprod-common-tasks*.jar \ + skinlf*.jar stax*.jar || die ${error} + popd > /dev/null + + find deployment -name '*.jar' -exec rm -v {} \; || die ${error} + find . -name '*.class' -exec rm -v {} \; || die ${error} + + # These tests fail. + rm -v \ + test/src/util/misc/TextLineBreakerTest.java \ + test/src/util/ui/html/HTMLTextHelperTest.java +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="bsh,commons-codec,commons-lang-3.3,jgoodies-common-1.8,jgoodies-forms-1.8,jgoodies-looks-2.6,l2fprod-common,skinlf" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},ant-junit,junit" + +EANT_BUILD_TARGET="runtime-linux" +EANT_DOC_TARGET="public-doc" + +src_test() { + VIRTUALX_COMMAND="java-pkg-2_src_test" virtualmake +} + +src_install() { + pushd runtime/${PN}_linux > /dev/null + java-pkg_dojar ${PN}.jar + + local todir="${JAVA_PKG_SHAREPATH}" + + cp -a {imgs,icons,plugins} "${D}/${todir}" || die "Failed to copy directories." + cp linux.properties "${D}/${todir}" || die "Failed to copy linux.properties." + + insinto "${todir}/themepacks" + doins themepacks/themepack.zip + + if use themes ; then + pushd "${DISTDIR}" > /dev/null + doins *pack.zip + + insinto "${todir}/icons" + doins noia.zip nuvola.zip tulliana.zip tango_without_heart.zip + popd > /dev/null + fi + + java-pkg_dolauncher "tvbrowser" \ + --main tvbrowser.TVBrowser \ + --pwd ${todir} \ + --java_args " -Dpropertiesfile=${todir}/linux.properties" + + make_desktop_entry ${PN} "TV-Browser" \ + /usr/share/tvbrowser/imgs/tvbrowser128.png "AudioVideo;TV;Video" + popd > /dev/null + + java-pkg_dojar $(ls lib/*.jar) + #java-pkg_dojar lib/{htmlparser-1.6.jar,jRegistryKey-1.4.5.jar,opencsv-2.3.jar} + #java-pkg_dojar lib/{substance-6.1.jar,texhyphj-1.1.jar,trident-1.3.jar} + + use source && java-pkg_dosrc src + use doc && java-pkg_dojavadoc doc +} |