[38374] trunk/dports/java

blair at macports.org blair at macports.org
Thu Jul 17 19:42:21 PDT 2008


Revision: 38374
          http://trac.macosforge.org/projects/macports/changeset/38374
Author:   blair at macports.org
Date:     2008-07-17 19:42:21 -0700 (Thu, 17 Jul 2008)
Log Message:
-----------
New port for Java Native Access 3.0.4.

Added Paths:
-----------
    trunk/dports/java/jna/
    trunk/dports/java/jna/Portfile

Added: trunk/dports/java/jna/Portfile
===================================================================
--- trunk/dports/java/jna/Portfile	                        (rev 0)
+++ trunk/dports/java/jna/Portfile	2008-07-18 02:42:21 UTC (rev 38374)
@@ -0,0 +1,53 @@
+# $Id$
+
+PortSystem 1.0
+
+name			jna
+version			3.0.4
+categories		java
+platforms		darwin
+maintainers		blair
+description		Access to native shared libraries with pure Java code
+
+long_description	Java Native Access provides Java programs easy \
+			access to native shared libraries (DLLs on Windows) \
+			without writing anything but Java code - no JNI or \
+			native code is required.  This functionality is \
+			comparable to Windows' Platform/Invoke and Python's \
+			ctypes.  Access is dynamic at runtime without code \
+			generation.  JNA's design aims to provide native \
+			access in a natural way with a minimum of effort.  \
+			No boilerplate or generated code is required.  While \
+			some attention is paid to performance, correctness \
+			and ease of use take priority.
+
+homepage		https://jna.dev.java.net/
+
+master_sites		'https://${name}.dev.java.net/source/browse/*checkout*/${name}/tags/${version}/jnalib/dist/'
+distfiles		${name}.jar
+fetch.ignore_sslcert	yes
+extract.only
+
+checksums		md5 7b6754e18e6145b7289c343a34c417e7 \
+			sha1 2f348d9c132272434c910e15c25b6d1a06c7fd52 \
+			rmd160 d1e264201808a2f9b16af49b1d319683135fe41c
+
+depends_lib		bin:java:kaffe
+
+use_configure		no
+
+fetch {
+	system "curl -v -k 'https://${name}.dev.java.net/source/browse/*checkout*/${name}/tags/${version}/jnalib/dist/jna.jar' -o ${distpath}/${name}.jar.TMP"
+	file delete -force ${distpath}/${name}.jar
+	file rename ${distpath}/${name}.jar.TMP ${distpath}/${name}.jar
+}
+
+build { }
+
+destroot {
+	set javadir ${destroot}${prefix}/share/java
+
+	xinstall -d -m 755 ${javadir}
+
+	file copy ${distpath}/${name}.jar ${javadir}/
+}


Property changes on: trunk/dports/java/jna/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080717/365489e0/attachment.html 


More information about the macports-changes mailing list