source: trunk/dports/java/derby/Portfile @ 64413

Last change on this file since 64413 was 64413, checked in by blair@…, 10 years ago

Fix #22753 by installing the entire Derby install into
${prefix}/share/derby and then setting up symlinks. The binaries
installed into ${prefix}/bin are wrapper shell scripts that just set
the DERBY_HOME environmental variable.

The 'doc' variant is removed because the entire Derby install is
dropped into ${prefix}/share/derby so symlinks to it are created.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 64413 2010-03-05 00:22:01Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    derby
6version                 10.5.3.0
7revision                1
8
9categories              java
10maintainers             blair
11platforms               darwin
12
13description             Relational database implemented entirely in Java
14long_description        Apache Derby, an Apache DB subproject, is an open \
15                        source relational database implemented entirely in \
16                        Java and available under the Apache License, Version \
17                        2.0.  Some key advantages include:  1) Derby has a \
18                        small footprint -- about 2 megabytes for the base \
19                        engine and embedded JDBC driver.  2) Derby is based \
20                        on the Java, JDBC, and SQL standards.  3) Derby \
21                        provides an embedded JDBC driver that lets you \
22                        embed Derby in any Java-based solution.  4) Derby \
23                        also supports the more familiar client/server mode \
24                        with the Derby Network Client JDBC driver and Derby \
25                        Network Server.  5) Derby is easy to install, deploy, \
26                        and use.
27homepage                http://db.apache.org/derby/
28
29master_sites            apache:db/derby/db-${name}-${version}
30distname                db-${name}-${version}-bin
31checksums               md5 35367c636ce035102a039a19ca707986 \
32                        sha1 5293ce194f4c99b6d981ccac248799c766f0270c \
33                        rmd160 886eb0de5f3e1cb45bee8b13acb62d600ac21ae2
34
35depends_lib             bin:java:kaffe
36
37use_configure           no
38
39build.cmd               true
40
41destroot {
42        set sharedir ${destroot}${prefix}/share
43        set man1dir ${sharedir}/man/man1
44        set derbydir ${sharedir}/derby
45        set docderbydir ${sharedir}/doc/derby
46
47        # Ensure needed directories
48        xinstall -d -m 755 ${sharedir}/java ${docderbydir}
49
50        file copy ${worksrcpath} ${derbydir}
51
52        foreach f { dblook ij sysinfo } {
53                xinstall -m 755 ${filesdir}/${f} ${destroot}${prefix}/bin/${f}
54                reinplace "s|@PREFIX@|${prefix}|" ${destroot}${prefix}/bin/${f}
55        }
56
57        foreach f { KEYS LICENSE NOTICE RELEASE-NOTES.html docs index.html javadoc } {
58                ln -s ../../derby/${f} ${docderbydir}/${f}
59        }
60
61        foreach f [ glob -tails -directory ${derbydir}/lib *.\[jw\]ar ] {
62                ln -s ../derby/lib/${f} ${sharedir}/java/${f}
63        }
64}
65
66livecheck.type          regex
67livecheck.url           "http://db.apache.org/derby/releases/?C=N;O=D"
68livecheck.regex         release-(\[0-9.\]+)\.html
Note: See TracBrowser for help on using the repository browser.