summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmy Liffey <amynka@gentoo.org>2017-04-07 14:40:10 +0200
committerAmy Liffey <amynka@gentoo.org>2017-04-07 14:42:19 +0200
commit83aada622d727f2bf92c280a3e420f17262c04ad (patch)
tree9d402b954b01a911ad6434f3e9f95458fe962c8d /sci-geosciences
parentsci-geosciences/bt747: fix jopt-simple missing bug #594698. Vadim Efimov (diff)
downloadgentoo-83aada622d727f2bf92c280a3e420f17262c04ad.tar.gz
gentoo-83aada622d727f2bf92c280a3e420f17262c04ad.tar.bz2
gentoo-83aada622d727f2bf92c280a3e420f17262c04ad.zip
sci-geosciences/bt747: missing jopt-simple missing bug #594698. Vadim Efimov
Package-Manager: portage-2.3.0
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/bt747/bt747-2.1.7-r2.ebuild70
1 files changed, 70 insertions, 0 deletions
diff --git a/sci-geosciences/bt747/bt747-2.1.7-r2.ebuild b/sci-geosciences/bt747/bt747-2.1.7-r2.ebuild
new file mode 100644
index 000000000000..17c7ae799eb6
--- /dev/null
+++ b/sci-geosciences/bt747/bt747-2.1.7-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="MTK GPS Datalogger Device Control"
+HOMEPAGE="http://www.bt747.org"
+SRC_URI="mirror://sourceforge/${PN}/Stable/BT747_${PV}_full.zip
+ http://www.bt747.org/icon/bt747_128x128.gif -> ${PN}.gif"
+
+LICENSE="GPL-3"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="
+ dev-java/commons-imaging:0
+ dev-java/jcalendar:1.2
+ dev-java/jchart2d:0
+ dev-java/jopt-simple:0
+ >=dev-java/rxtx-2.2_pre2:2
+ dev-java/swing-layout:1
+ dev-java/swingx:1.6
+ dev-java/swingx-ws:bt747
+"
+
+RDEPEND="
+ ${CDEPEND}
+ dev-libs/glib:2[dbus]
+ >=virtual/jre-1.7
+"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.7
+ app-arch/unzip
+"
+
+EANT_BUILD_TARGET="dist.j2se"
+EANT_EXTRA_ARGS="-Dskip.proguard=yes -Dsvn=true -Dsvnversion=true -Dbuild.current.revision=Gentoo"
+EANT_GENTOO_CLASSPATH="commons-imaging,jcalendar-1.2,jchart2d,jopt-simple,rxtx-2,swing-layout-1,swingx-1.6,swingx-ws-bt747"
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ # Fix for newer jchart2d.
+ epatch "${FILESDIR}/jchart2d-3.2.patch"
+
+ # Remove all the bundled stuff.
+ rm -rv dist/ lib/ || die
+
+ # GraphicsUtilities moved in later SwingX versions.
+ sed -i "s:org\.jdesktop\.swingx\.graphics\.GraphicsUtilities:org.jdesktop.swingx.util.GraphicsUtilities:g" \
+ src_j2se/net/sf/bt747/j2se/app/list/FileListCellRenderer.java || die
+
+ eapply_user
+}
+
+src_install() {
+ dodoc {ChangeLog,README}.txt
+
+ java-pkg_dojar dist/*.jar
+ java-pkg_dolauncher ${PN} --main bt747.j2se_view.BT747Main \
+ --java-args="-Xmx192m"
+
+ doicon "${DISTDIR}/${PN}.gif"
+ make_desktop_entry ${PN} BT747 bt747.gif
+}