1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils java-pkg-2 java-ant-2
9 DESCRIPTION="MTK GPS Datalogger Device Control"
10 HOMEPAGE="http://www.bt747.org"
11 SRC_URI="mirror://sourceforge/${PN}/Stable/BT747_${PV}_full.zip
12 http://www.bt747.org/icon/bt747_128x128.gif -> ${PN}.gif"
16 KEYWORDS="~amd64 ~x86"
19 dev-java/commons-imaging:0
20 dev-java/jcalendar:1.2
22 dev-java/jopt-simple:0
23 >=dev-java/rxtx-2.2_pre2:2
24 dev-java/swing-layout:1
26 dev-java/swingx-ws:bt747
41 EANT_BUILD_TARGET="dist.j2se"
42 EANT_EXTRA_ARGS="-Dskip.proguard=yes -Dsvn=true -Dsvnversion=true -Dbuild.current.revision=Gentoo"
43 EANT_GENTOO_CLASSPATH="commons-imaging,jcalendar-1.2,jchart2d,jopt-simple-4.4,rxtx-2,swing-layout-1,swingx-1.6,swingx-ws-bt747"
44 JAVA_ANT_REWRITE_CLASSPATH="yes"
49 # Fix for newer jchart2d.
50 epatch "${FILESDIR}/jchart2d-3.2.patch"
52 # Remove all the bundled stuff.
53 rm -rv dist/ lib/ || die
55 # GraphicsUtilities moved in later SwingX versions.
56 sed -i "s:org\.jdesktop\.swingx\.graphics\.GraphicsUtilities:org.jdesktop.swingx.util.GraphicsUtilities:g" \
57 src_j2se/net/sf/bt747/j2se/app/list/FileListCellRenderer.java || die
63 dodoc {ChangeLog,README}.txt
65 java-pkg_dojar dist/*.jar
66 java-pkg_dolauncher ${PN} --main bt747.j2se_view.BT747Main \
67 --java-args="-Xmx192m"
69 doicon "${DISTDIR}/${PN}.gif"
70 make_desktop_entry ${PN} BT747 bt747.gif