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

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

Use ${filespath} instead of ${filesdir} because the former is
absolute.

Suggested by: ryandesign

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