forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Portfile
69 lines (57 loc) · 3.02 KB
/
Portfile
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
64
65
66
67
68
# -*- coding: utf-8; mode: tcl; tab-width: 8; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4
# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
PortSystem 1.0
name antenna
version 1.2.1-beta
revision 0
categories java devel
maintainers nomaintainer
platforms darwin
description Antenna provides a set of Ant tasks suitable for developing mobile applications.
long_description \
Antenna provides a set of Ant tasks suitable for developing wireless Java \
applications targeted at the Mobile Information Device Profile (MIDP). With \
Antenna, you can compile, preverify, package, obfuscate, and run your MIDP \
applications (aka MIDlets), manipulate Java Application Descriptor (JAD) files, \
as well as convert JAR files to PRC files designed to run on the MIDP for \
PalmOS implementations from Sun and IBM. Deployment is supported via a \
deployment task and a corresponding HTTP servlet for Over-the-Air (OTA) \
provisioning. A small preprocessor allows to generate different variants of a \
MIDlet from a single source.
set preprocversion 1.3
homepage http://${name}.sourceforge.net/
master_sites sourceforge
distfiles antenna-bin-${version}.jar \
preprocessor-v3-bin-${preprocversion}.jar \
preprocessor-v2-bin-${preprocversion}.jar
distname ${name}-bin-${version}
checksums antenna-bin-${version}.jar \
md5 9e9029e4e6c523aa57a4374a8cb00b45 \
sha1 ab580c4be307b7d4b9dd2fe1e3e819dbb2df644c \
rmd160 0c30a7674b5aefb928f66b4197cb2de98aa670fd \
preprocessor-v3-bin-${preprocversion}.jar \
md5 6bfea645b61682fee58d3f23adb183b5 \
sha1 a3a795225fed870133f73e8180f592fced0b76dd \
rmd160 9106160faa3d37a1924b94792c53eb0306750ecd \
preprocessor-v2-bin-${preprocversion}.jar \
md5 bb54096888a709118a5db340bdee430e \
sha1 a0e0955b19bdb377cb54bfe9616a743c19d6e89d \
rmd160 299cb40e6ff4d55f58f74cd2a7160743f9ade551
use_configure no
build.cmd true
worksrcdir .
extract {
file copy ${distpath}/antenna-bin-${version}.jar ${workpath}
file copy ${distpath}/preprocessor-v3-bin-${preprocversion}.jar ${workpath}
file copy ${distpath}/preprocessor-v2-bin-${preprocversion}.jar ${workpath}
}
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java
xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
file copy ${workpath}/antenna-bin-${version}.jar ${destroot}${prefix}/share/java/${name}
file copy ${workpath}/preprocessor-v3-bin-${preprocversion}.jar ${destroot}${prefix}/share/java/${name}
file copy ${workpath}/preprocessor-v2-bin-${preprocversion}.jar ${destroot}${prefix}/share/java/${name}
system "
chgrp -R _developer ${destroot}${prefix}/share/java/${name};
"
}