source: trunk/dports/java/launch4j/Portfile @ 76428

Last change on this file since 76428 was 62718, checked in by ryandesign@…, 10 years ago

launch4j: simplify master_sites; see #23278

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 62718 2010-01-14 21:21:56Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            launch4j
7version         3.0.1
8categories      java
9maintainers             panayotis.com:panayotis
10description     Cross-platform Java executable wrapper
11long_description \
12                                Launch4j is a cross-platform tool for wrapping Java \
13                                applications distributed as jars in lightweight Windows \
14                                native executables. The executable can be configured to \
15                                search for a certain JRE version or use a bundled one, \
16                                and it's possible to set runtime options, like the \
17                                initial/max heap size. The wrapper also provides better \
18                                user experience through an application icon, a native \
19                                pre-JRE splash screen, a custom process name, and a Java \
20                                download page in case the appropriate JRE cannot be found.
21homepage        http://launch4j.sourceforge.net/
22platforms       darwin
23
24master_sites    sourceforge
25distname        launch4j-${version}-macosx
26extract.suffix  .tgz
27checksums       md5 f63bd99fdb8c3427dc3382116f292e51 \
28                sha1 f1ed99d52cac47ede54acb2714bc4a62bab52c51 \
29                rmd160 329794915dbd75ed7d034a8c6fe9376198426b0a
30
31patchfiles \
32        launcher.diff
33
34use_configure   no
35build           {}
36
37worksrcdir              launch4j
38destroot {
39        set sharedir ${destroot}${prefix}/share
40                set l4jdir ${sharedir}/launch4j
41                set l4jdoc ${sharedir}/doc/launch4j
42
43                xinstall -d -m 755 ${l4jdoc}
44                file rename ${worksrcpath}/web ${l4jdoc}
45                file rename ${worksrcpath}/demo ${l4jdoc}
46                file rename ${worksrcpath}/LICENSE.txt ${l4jdoc}
47                file rename ${worksrcpath}/w32api/MinGW.LICENSE.txt ${l4jdoc}
48                foreach doc {JGoodies.Forms JGoodies.Looks Nuvola.Icon.Theme XStream commons foxtrot} {
49                        file rename ${worksrcpath}/lib/${doc}.LICENSE.txt ${l4jdoc}
50                }
51                file rename ${worksrcpath}/bin/COPYING ${l4jdoc}/bin.COPYING
52                file rename ${worksrcpath}/bin/readme.txt ${l4jdoc}/bin.readme.txt
53                file rename ${worksrcpath}/head/LICENSE.txt ${l4jdoc}/head.LICENSE.txt
54
55                file delete -force ${worksrcpath}/head_src
56                file delete -force ${worksrcpath}/src
57                file delete ${worksrcpath}/build.xml
58                file delete ${worksrcpath}/launch4j.exe
59                file delete ${worksrcpath}/launch4j.jfpr
60                file delete ${worksrcpath}/.classpath
61                file delete ${worksrcpath}/.project
62                file delete -force ${worksrcpath}/.settings
63
64        xinstall -d -m 755 ${sharedir}
65        file copy ${worksrcpath} ${sharedir}
66                ln -s ../share/launch4j/launch4j ${destroot}${prefix}/bin/launch4j
67}
Note: See TracBrowser for help on using the repository browser.