blob: 35a6302a423e242d8fbe782d1096429b72ca0277 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
WANT_ANT_TASKS="ant-nodeps"
inherit java-utils-2 java-pkg-2 java-ant-2
MY_PN=BT747
MY_P=${MY_PN}_${PV}
DESCRIPTION="MTK GPS Datalogger Device Control"
HOMEPAGE="http://bt747.free.fr/"
SRC_URI="mirror://sourceforge/${PN}/BT747_${PV}_full.zip"
LICENSE="GPL-3"
SLOT="1"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON_DEP="
>=dev-java/rxtx-2.2_pre2
dev-java/swing-layout:1
dev-java/jcalendar:1.2
dev-java/jcharts
"
RDEPEND="${COMMON_DEP}
dev-libs/glib:2[dbus]
>=virtual/jre-1.5
"
DEPEND="${COMMON_DEP}
>=virtual/jdk-1.5
app-arch/unzip
"
EANT_BUILD_TARGET="dist.j2se"
EANT_EXTRA_ARGS="-Dskip.proguard=yes
-Drxtxcomm.jar=lib/RXTXcomm.jar
-Dswing-layout.jar=lib/swing-layout.jar
-Djcalendar.jar=lib/jcalendar.jar"
S="${WORKDIR}"
java_prepare() {
rm -rf dist
cd lib
rm -rf r* W* c* swing-* w* jca*
java-pkg_jar-from rxtx-2
java-pkg_jar-from swing-layout-1
java-pkg_jar-from jcalendar-1.2
}
src_install() {
dodoc ChangeLog.txt README.txt
java-pkg_dojar dist/*.jar
java-pkg_jarinto /opt/${PN}-${SLOT}/lib
java-pkg_newjar lib/jopt-simple-2.4.1.jar jopt-simple.jar
java-pkg_dojar lib/swingx*.jar
java-pkg_dolauncher ${PN} --main bt747.j2se_view.BT747Main \
--java-args="-Xmx192m"
}
|