[61579] trunk/dports/java

krischik at macports.org krischik at macports.org
Tue Dec 15 05:20:25 PST 2009


Revision: 61579
          http://trac.macports.org/changeset/61579
Author:   krischik at macports.org
Date:     2009-12-15 05:20:22 -0800 (Tue, 15 Dec 2009)
Log Message:
-----------
Relational database implemented entirely in Java (incl. server components)

Modified Paths:
--------------
    trunk/dports/java/derby-server/Portfile

Added Paths:
-----------
    trunk/dports/java/derby-server/
    trunk/dports/java/derby-server/files/
    trunk/dports/java/derby-server/files/Start_Derby.command

Property Changed:
----------------
    trunk/dports/java/derby-server/Portfile


Property changes on: trunk/dports/java/derby-server
___________________________________________________________________
Added: svn:ignore
   + .backups
work


Modified: trunk/dports/java/derby-server/Portfile
===================================================================
--- trunk/dports/java/derby/Portfile	2009-12-15 09:04:54 UTC (rev 61569)
+++ trunk/dports/java/derby-server/Portfile	2009-12-15 13:20:22 UTC (rev 61579)
@@ -1,68 +1,79 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 8; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4
 # $Id$
+# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
 
 PortSystem 1.0
 
-name			derby
-version			10.5.3.0
+name		    derby-server
+set packagename	    derby
+version		    10.5.3.0
+revision	    0
+categories	    java
+maintainers	    krischik
+platforms	    darwin
 
-categories		java
-maintainers		blair
-platforms		darwin
+description	    Relational database implemented entirely in Java (incl. server components)
+long_description    Apache Derby, an Apache DB subproject, is an open	    \
+		    source relational database implemented entirely in	    \
+		    Java and available under the Apache License, Version    \
+		    2.0.  Some key advantages include:	1) Derby has a	    \
+		    small footprint -- about 2 megabytes for the base	    \
+		    engine and embedded JDBC driver.  2) Derby is based	    \
+		    on the Java, JDBC, and SQL standards.  3) Derby	    \
+		    provides an embedded JDBC driver that lets you	    \
+		    embed Derby in any Java-based solution.  4) Derby	    \
+		    also supports the more familiar client/server mode	    \
+		    with the Derby Network Client JDBC driver and Derby	    \
+		    Network Server.  5) Derby is easy to install, deploy,   \
+		    and use. This version includes the server components.
 
-description		Relational database implemented entirely in Java
-long_description	Apache Derby, an Apache DB subproject, is an open \
-			source relational database implemented entirely in \
-			Java and available under the Apache License, Version \
-			2.0.  Some key advantages include:  1) Derby has a \
-			small footprint -- about 2 megabytes for the base \
-			engine and embedded JDBC driver.  2) Derby is based \
-			on the Java, JDBC, and SQL standards.  3) Derby \
-			provides an embedded JDBC driver that lets you \
-			embed Derby in any Java-based solution.  4) Derby \
-			also supports the more familiar client/server mode \
-			with the Derby Network Client JDBC driver and Derby \
-			Network Server.  5) Derby is easy to install, deploy, \
-			and use.
-homepage		http://db.apache.org/derby/
+homepage	    http://db.apache.org/${packagename}
+master_sites	    apache:db/${packagename}/db-${packagename}-${version}
+distname	    db-${packagename}-${version}-bin
+checksums	    md5 35367c636ce035102a039a19ca707986	    \
+		    sha1 5293ce194f4c99b6d981ccac248799c766f0270c   \
+		    rmd160 886eb0de5f3e1cb45bee8b13acb62d600ac21ae2
 
-master_sites		apache:db/derby/db-${name}-${version}
-distname		db-${name}-${version}-bin
-checksums		md5 35367c636ce035102a039a19ca707986 \
-			sha1 5293ce194f4c99b6d981ccac248799c766f0270c \
-			rmd160 886eb0de5f3e1cb45bee8b13acb62d600ac21ae2
+depends_lib	    bin:java:kaffe
+conflicts	    ${packagename}
+default_variants    +symlinks
+use_configure	    no
+build.cmd	    true
 
-depends_lib		bin:java:kaffe
+pre-destroot {
+    foreach f [glob -directory ${worksrcpath}/bin *.bat] {
+	file delete $f
+    }
+}
 
-use_configure		no
-
-build.cmd		true
-
 destroot {
-	# Ensure needed directories
-	xinstall -m 755 -d ${destroot}${prefix}/share \
-		${destroot}${prefix}/share/doc/${name}
+    xinstall -m 755 -d ${destroot}${prefix}/share/java
+    xinstall -m 755 -d ${destroot}/${applications_dir}/Utilities
 
-	foreach f { dblook derby_common.sh ij sysinfo } {
-		file copy ${worksrcpath}/bin/$f ${destroot}${prefix}/bin
-	}
+    file copy ${worksrcpath} ${destroot}${prefix}/share/java/${packagename}
 
-	foreach f { KEYS LICENSE NOTICE RELEASE-NOTES.html } {
-		file copy ${worksrcpath}/$f \
-			${destroot}${prefix}/share/doc/${name}
-	}
-
-	file copy ${worksrcpath}/lib ${destroot}${prefix}/share/java
+    foreach script {Start_Derby} {
+	xinstall -m 755							\
+	   -W ${filespath}						\
+	    ${script}.command						\
+	    ${destroot}/${applications_dir}/Utilities/${script}.command
+	reinplace s|@PREFIX@|${prefix}|g				\
+	    ${destroot}${applications_dir}/Utilities/${script}.command
+    }
 }
 
-variant doc description {Install HTML and PDF documentation and javadocs} {
-	post-destroot {
-		foreach f { docs javadoc } {
-			file copy ${worksrcpath}/$f \
-				${destroot}${prefix}/share/doc/${name}
-		}
+variant symlinks description {Installs symlinks into ${prefix}/bin} {
+    post-destroot {
+	foreach f { NetworkServerControl dblook derby_common.sh ij setEmbeddedCP setNetworkClientCP setNetworkServerCP startNetworkServer stopNetworkServer sysinfo } {
+	    system "ln -fs ${prefix}/share/java/${packagename}/bin/$f ${destroot}${prefix}/bin/$f"
 	}
+	ui_msg "#############################################################"
+	ui_msg "#  The Derby symblinks in ${prefix}/bin need \${DERBY_HOME} #"
+	ui_msg "#  to be set to ${prefix}/java/derby			    #"
+	ui_msg "#############################################################"
+    }
 }
 
-livecheck.type		regex
-livecheck.url		"http://db.apache.org/derby/releases/?C=N;O=D"
-livecheck.regex		release-(\[0-9.\]+)\.html
+livecheck.type	    regex
+livecheck.url	    "http://db.apache.org/${packagename}/releases/?C=N;O=D"
+livecheck.regex     release-(\[0-9.\]+)\.html


Property changes on: trunk/dports/java/derby-server/Portfile
___________________________________________________________________
Added: svn:mime-type
   + text/x-shellscript

Copied: trunk/dports/java/derby-server/files/Start_Derby.command (from rev 61569, trunk/dports/java/glassfishv3/files/Start_Glassfish_Domain1.command)
===================================================================
--- trunk/dports/java/derby-server/files/Start_Derby.command	                        (rev 0)
+++ trunk/dports/java/derby-server/files/Start_Derby.command	2009-12-15 13:20:22 UTC (rev 61579)
@@ -0,0 +1,30 @@
+#!/bin/zsh
+############################################################## {{{1 ##########
+#   $Author$
+#   $Revision$
+#   $Date$
+#   $HeadURL$
+############################################################## }}}1 ##########
+
+setopt X_Trace;
+
+if test -d "@PREFIX@/share/java/derby"; then
+    typeset -x -g -U -T CLASSPATH classpath ":";
+    typeset -x -g DERBY_HOME="@PREFIX@/share/java/derby";
+    typeset -x -g JAVA_HOME="/Library/Java/Home";
+
+    path+="${DERBY_HOME}/bin"
+    classpath+="${DERBY_HOME}/lib/derbyclient.jar";
+fi;
+
+if test ! -d ~/.derby; then
+    mkdir ~/.derby
+fi;
+
+pushd ~/.derby      
+    startNetworkServer
+popd;
+
+############################################################ {{{1 ###########
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091215/55335c98/attachment-0001.html>


More information about the macports-changes mailing list