aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-03-14 18:22:04 +0100
committerJulien Lepiller <julien@lepiller.eu>2018-04-05 19:48:06 +0200
commitcfb55cfc4a91d13f4c19fc167da0b39a840f7690 (patch)
tree4badc251c2508186295518f45b14f5833246bbe9 /gnu/packages
parenta970288c8e605903170ab83a019e4d316591032d (diff)
downloadpatches-cfb55cfc4a91d13f4c19fc167da0b39a840f7690.tar
patches-cfb55cfc4a91d13f4c19fc167da0b39a840f7690.tar.gz
gnu: Add java-native-access-platform.
* gnu/packages/java.scm (java-native-access-platform): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/java.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 453897bf72..be252cd2ab 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -9525,3 +9525,39 @@ Java method invocation.")
(license (list
license:asl2.0
license:lgpl2.1+))))
+
+(define-public java-native-access-platform
+ (package
+ (inherit java-native-access)
+ (name "java-native-access-platform")
+ (arguments
+ `(#:test-target "test"
+ #:tests? #f; require jna-test.jar
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'chdir
+ (lambda _
+ (chdir "contrib/platform")
+ #t))
+ (add-after 'chdir 'fix-ant
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "nbproject/project.properties"
+ (("../../build/jna.jar")
+ (string-append (assoc-ref inputs "java-native-access")
+ "/share/java/jna.jar"))
+ (("../../lib/hamcrest-core-.*.jar")
+ (string-append (assoc-ref inputs "java-hamcrest-core")
+ "/share/java/hamcrest-core.jar"))
+ (("../../lib/junit.jar")
+ (string-append (assoc-ref inputs "java-junit")
+ "/share/java/junit.jar")))
+ #t))
+ (replace 'install
+ (install-jars "dist")))))
+ (inputs
+ `(("java-native-access" ,java-native-access)))
+ (synopsis "Cross-platform mappings for jna")
+ (description "java-native-access-platfrom has cross-platform mappings
+and mappings for a number of commonly used platform functions, including a
+large number of Win32 mappings as well as a set of utility classes that
+simplify native access.")))