[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26861: [PATCH 01/31] gnu: Add libusb4java.
From: |
Ricardo Wurmus |
Subject: |
bug#26861: [PATCH 01/31] gnu: Add libusb4java. |
Date: |
Tue, 9 May 2017 23:28:18 +0200 |
* gnu/packages/libusb.scm (libusb4java): New variable.
---
gnu/packages/libusb.scm | 40 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index 4c80de236..3932f1e66 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2012 Nikita Karetnikov <address@hidden>
;;; Copyright © 2015 Andreas Enge <address@hidden>
;;; Copyright © 2015 Andy Wingo <address@hidden>
-;;; Copyright © 2015, 2016 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <address@hidden>
;;; Copyright © 2016 Efraim Flashner <address@hidden>
;;; Copyright © 2016 Theodoros Foradis <address@hidden>
;;;
@@ -27,12 +27,15 @@
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix download)
+ #:use-module (guix git-download)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system python)
#:use-module (gnu packages autotools)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages java)
#:use-module (gnu packages linux)
#:use-module (gnu packages mp3)
#:use-module (gnu packages pkg-config)
@@ -91,6 +94,41 @@ devices on various operating systems.")
version of libusb to run with newer libusb.")
(license lgpl2.1+)))
+(define-public libusb4java
+ ;; There is no public release so we take the latest version from git.
+ (let ((commit "396d642a57678a0d9663b062c980fe100cc0ea1e")
+ (revision "1"))
+ (package
+ (name "libusb4java")
+ (version (string-append "0-" revision "." (string-take commit 9)))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/usb4java/libusb4java.git")
+ (commit commit)))
+ (sha256
+ (base32
+ "0wqgapalhfh9v38ycbl6i2f5lh1wpr6fzwn5dwd0rdacypkd1gml"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:tests? #f ; there are no tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'set-JAVA_HOME
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
+ #t)))))
+ (inputs
+ `(("libusb" ,libusb)))
+ (native-inputs
+ `(("jdk" ,icedtea "jdk")))
+ (home-page "https://github.com/usb4java/libusb4java/")
+ (synopsis "JNI bindings to libusb")
+ (description
+ "This package provides Java JNI bindings to the libusb library for use
+with usb4java.")
+ (license expat))))
+
(define-public python-pyusb
(package
(name "python-pyusb")
--
2.12.2
- bug#26861: [PATCH 00/31] Even more Java things, Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 01/31] gnu: Add libusb4java.,
Ricardo Wurmus <=
- bug#26861: [PATCH 02/31] gnu: Add java-usb4java., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 03/31] gnu: Add java-rsyntaxtextarea., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 04/31] gnu: Add java-simple-xml., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 06/31] gnu: Add java-osgi-core., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 07/31] gnu: Add java-eclipse-osgi., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 05/31] gnu: Add java-osgi-annotation., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 08/31] gnu: Add java-eclipse-equinox-common., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 09/31] gnu: Add java-osgi-service-event., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 11/31] gnu: Add java-eclipse-equinox-registry., Ricardo Wurmus, 2017/05/09
- bug#26861: [PATCH 16/31] gnu: Add java-eclipse-core-filesystem., Ricardo Wurmus, 2017/05/09