It doesnt fetch using the built in fetch, so your custom fetch is needed. If I copy that fetch block to make a mirror block it mostly works, though the file ends up in $prefix/var/macports/distfiles/ instead of down in .../java/jna/ like your fetch. So $distpast gets defined differently between fetch and mirror?

-Bill

On Jul 17, 2008, at 10:42 PM, Blair Zajac wrote:

I was unable to get this port to fetch using the normal master_sites I have in their so I needed to use the custom fetch command.

Can you try fetching it commenting out my custom fetch { }?

Regards,
Blair

William Siegrist wrote:
This port fetches for me, but mirror fails. Can you see if mirror works for you?
-Bill
On Jul 17, 2008, at 7:42 PM, [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] 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
Diff
Added: trunk/dports/java/jna/Portfile (0 => 38374)
--- 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




----
William Siegrist
Mac OS Forge
http://macosforge.org/







Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to