source: trunk/dports/java/derby-server/Portfile

Last change on this file was 122335, checked in by jmr@…, 3 years ago

derby-server: license, noarch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-shellscript
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 8; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4
2# $Id: Portfile 122335 2014-07-21 04:22:03Z ryandesign@macports.org $
3# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
4
5PortSystem 1.0
6
7name                derby-server
8set packagename     derby
9version             10.5.3.0
10revision            0
11categories          java
12license             Apache-2
13maintainers         openmaintainer krischik
14platforms           darwin
15supported_archs noarch
16
17description         Relational database implemented entirely in Java (incl. server components)
18long_description    Apache Derby, an Apache DB subproject, is an open       \
19                    source relational database implemented entirely in      \
20                    Java and available under the Apache License, Version    \
21                    2.0.  Some key advantages include:  1) Derby has a      \
22                    small footprint -- about 2 megabytes for the base       \
23                    engine and embedded JDBC driver.  2) Derby is based     \
24                    on the Java, JDBC, and SQL standards.  3) Derby         \
25                    provides an embedded JDBC driver that lets you          \
26                    embed Derby in any Java-based solution.  4) Derby       \
27                    also supports the more familiar client/server mode      \
28                    with the Derby Network Client JDBC driver and Derby     \
29                    Network Server.  5) Derby is easy to install, deploy,   \
30                    and use. This version includes the server components.
31
32homepage            http://db.apache.org/${packagename}
33master_sites        apache:db/${packagename}/db-${packagename}-${version}
34distname            db-${packagename}-${version}-bin
35checksums           md5 35367c636ce035102a039a19ca707986            \
36                    sha1 5293ce194f4c99b6d981ccac248799c766f0270c   \
37                    rmd160 886eb0de5f3e1cb45bee8b13acb62d600ac21ae2
38
39depends_lib         bin:java:kaffe
40conflicts           ${packagename}
41default_variants    +symlinks
42use_configure       no
43build               {}
44
45pre-destroot {
46    foreach f [glob -directory ${worksrcpath}/bin *.bat] {
47        file delete $f
48    }
49}
50
51destroot {
52    xinstall -m 755 -d ${destroot}${prefix}/share/java
53    xinstall -m 755 -d ${destroot}${applications_dir}/Utilities
54
55    file copy ${worksrcpath} ${destroot}${prefix}/share/java/${packagename}
56
57    foreach script {Start_Derby} {
58        xinstall -m 755                                                 \
59           -W ${filespath}                                              \
60            ${script}.command                                           \
61            ${destroot}${applications_dir}/Utilities/${script}.command
62        reinplace s|@PREFIX@|${prefix}|g                                \
63            ${destroot}${applications_dir}/Utilities/${script}.command
64    }
65}
66
67variant symlinks description {Installs symlinks into ${prefix}/bin} {
68    post-destroot {
69        foreach f { NetworkServerControl dblook derby_common.sh ij setEmbeddedCP setNetworkClientCP setNetworkServerCP startNetworkServer stopNetworkServer sysinfo } {
70            system "ln -fs ${prefix}/share/java/${packagename}/bin/$f ${destroot}${prefix}/bin/$f"
71        }
72        ui_msg "#############################################################"
73        ui_msg "#  The Derby symblinks in ${prefix}/bin need \${DERBY_HOME} #"
74        ui_msg "#  to be set to ${prefix}/java/derby                        #"
75        ui_msg "#############################################################"
76    }
77}
78
79livecheck.type      regex
80livecheck.url       "http://db.apache.org/${packagename}/releases/?C=N;O=D"
81livecheck.regex     release-(\[0-9.\]+)\.html
Note: See TracBrowser for help on using the repository browser.