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

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

In the interest that all portfiles exemplify correct portfile writing techniques, remove slash before ${applications_dir} which is not needed because ${applications_dir} already begins with a slash

  • 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 71534 2010-09-15 20:28:41Z 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
12maintainers         krischik
13platforms           darwin
14
15description         Relational database implemented entirely in Java (incl. server components)
16long_description    Apache Derby, an Apache DB subproject, is an open       \
17                    source relational database implemented entirely in      \
18                    Java and available under the Apache License, Version    \
19                    2.0.  Some key advantages include:  1) Derby has a      \
20                    small footprint -- about 2 megabytes for the base       \
21                    engine and embedded JDBC driver.  2) Derby is based     \
22                    on the Java, JDBC, and SQL standards.  3) Derby         \
23                    provides an embedded JDBC driver that lets you          \
24                    embed Derby in any Java-based solution.  4) Derby       \
25                    also supports the more familiar client/server mode      \
26                    with the Derby Network Client JDBC driver and Derby     \
27                    Network Server.  5) Derby is easy to install, deploy,   \
28                    and use. This version includes the server components.
29
30homepage            http://db.apache.org/${packagename}
31master_sites        apache:db/${packagename}/db-${packagename}-${version}
32distname            db-${packagename}-${version}-bin
33checksums           md5 35367c636ce035102a039a19ca707986            \
34                    sha1 5293ce194f4c99b6d981ccac248799c766f0270c   \
35                    rmd160 886eb0de5f3e1cb45bee8b13acb62d600ac21ae2
36
37depends_lib         bin:java:kaffe
38conflicts           ${packagename}
39default_variants    +symlinks
40use_configure       no
41build.cmd           true
42
43pre-destroot {
44    foreach f [glob -directory ${worksrcpath}/bin *.bat] {
45        file delete $f
46    }
47}
48
49destroot {
50    xinstall -m 755 -d ${destroot}${prefix}/share/java
51    xinstall -m 755 -d ${destroot}${applications_dir}/Utilities
52
53    file copy ${worksrcpath} ${destroot}${prefix}/share/java/${packagename}
54
55    foreach script {Start_Derby} {
56        xinstall -m 755                                                 \
57           -W ${filespath}                                              \
58            ${script}.command                                           \
59            ${destroot}${applications_dir}/Utilities/${script}.command
60        reinplace s|@PREFIX@|${prefix}|g                                \
61            ${destroot}${applications_dir}/Utilities/${script}.command
62    }
63}
64
65variant symlinks description {Installs symlinks into ${prefix}/bin} {
66    post-destroot {
67        foreach f { NetworkServerControl dblook derby_common.sh ij setEmbeddedCP setNetworkClientCP setNetworkServerCP startNetworkServer stopNetworkServer sysinfo } {
68            system "ln -fs ${prefix}/share/java/${packagename}/bin/$f ${destroot}${prefix}/bin/$f"
69        }
70        ui_msg "#############################################################"
71        ui_msg "#  The Derby symblinks in ${prefix}/bin need \${DERBY_HOME} #"
72        ui_msg "#  to be set to ${prefix}/java/derby                        #"
73        ui_msg "#############################################################"
74    }
75}
76
77livecheck.type      regex
78livecheck.url       "http://db.apache.org/${packagename}/releases/?C=N;O=D"
79livecheck.regex     release-(\[0-9.\]+)\.html
Note: See TracBrowser for help on using the repository browser.