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

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

Use rlwrap around Derby's interactive SQL scripting tool, ij, to make
it easier to use.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 75833 2011-02-10 08:55:24Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    derby
6version                 10.6.2.1
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 c19eff62e47148f319e7d1becb79842a \
32                        sha1 1a2b1bbc1fc7878b80aea68bd630b93a27258ac4 \
33                        rmd160 771680886e45543606e793684b60b195f9c11866
34
35depends_lib             bin:java:kaffe
36depends_run             port:rlwrap
37
38use_configure           no
39
40build.cmd               true
41
42destroot {
43        set sharedir ${destroot}${prefix}/share
44        set man1dir ${sharedir}/man/man1
45        set derbydir ${sharedir}/derby
46        set docderbydir ${sharedir}/doc/derby
47
48        # Ensure needed directories
49        xinstall -d -m 755 ${sharedir}/java ${docderbydir}
50
51        file copy ${worksrcpath} ${derbydir}
52
53        foreach f { dblook ij sysinfo } {
54                xinstall -m 755 ${filespath}/${f} ${destroot}${prefix}/bin/${f}
55                reinplace "s|@PREFIX@|${prefix}|" ${destroot}${prefix}/bin/${f}
56        }
57
58        foreach f { KEYS LICENSE NOTICE RELEASE-NOTES.html docs index.html javadoc } {
59                ln -s ../../derby/${f} ${docderbydir}/${f}
60        }
61
62        foreach f [ glob -tails -directory ${derbydir}/lib *.\[jw\]ar ] {
63                ln -s ../derby/lib/${f} ${sharedir}/java/${f}
64        }
65}
66
67livecheck.type          regex
68livecheck.url           "http://db.apache.org/derby/releases/?C=N;O=D"
69livecheck.regex         release-(\[0-9.\]+)\.html
Note: See TracBrowser for help on using the repository browser.