mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: java-jansi-native: Simplify.
* gnu/packages/java.scm (java-jansi-native)[arguments]: Use "invoke"; remove useless "mkdir-p".
This commit is contained in:
parent
3d6925ef51
commit
e85c1bf6cd
1 changed files with 8 additions and 9 deletions
|
@ -8437,14 +8437,14 @@ (define-public java-jansi-native
|
|||
(with-directory-excursion "src/main/native-package/src"
|
||||
(substitute* "jansi_ttyname.c"
|
||||
(("#include \"jansi_.*") ""))
|
||||
(and
|
||||
(system* "gcc" "-c" "jansi_ttyname.c" "-o" "jansi_ttyname.o"
|
||||
(string-append "-I" (assoc-ref inputs "java-hawtjni")
|
||||
"/include")
|
||||
(string-append "-I" (assoc-ref inputs "jdk")
|
||||
"/include/linux")
|
||||
"-fPIC" "-O2")
|
||||
(system* "gcc" "-o" "libjansi.so" "-shared" "jansi_ttyname.o")))))
|
||||
(invoke "gcc" "-c" "jansi_ttyname.c" "-o" "jansi_ttyname.o"
|
||||
(string-append "-I" (assoc-ref inputs "java-hawtjni")
|
||||
"/include")
|
||||
(string-append "-I" (assoc-ref inputs "jdk")
|
||||
"/include/linux")
|
||||
"-fPIC" "-O2")
|
||||
(invoke "gcc" "-o" "libjansi.so" "-shared" "jansi_ttyname.o")
|
||||
#t)))
|
||||
(add-before 'build 'install-native
|
||||
(lambda _
|
||||
(let ((dir (string-append "build/classes/META-INF/native/"
|
||||
|
@ -8457,7 +8457,6 @@ (define-public java-jansi-native
|
|||
#t))
|
||||
(add-after 'install 'install-native
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(mkdir-p (string-append (assoc-ref outputs "out") "/include"))
|
||||
(install-file "src/main/native-package/src/jansi.h"
|
||||
(string-append (assoc-ref outputs "out") "/include"))
|
||||
#t)))))
|
||||
|
|
Loading…
Reference in a new issue