gnu: java-rsyntaxtextarea: Install resources.
* gnu/packages/textutils.scm (java-rsyntaxtextarea)[arguments]: Enable tests; install resources. [native-inputs]: Add xorg-server-for-tests. Change-Id: If7c89bc6a38058b9cccd74012fa9b5ba14d560d6
This commit is contained in:
parent
470fa47daa
commit
1cba1f8ce6
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
||||||
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2024 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2015, 2016 Ben Woodcroft <donttrustben@gmail.com>
|
;;; Copyright © 2015, 2016 Ben Woodcroft <donttrustben@gmail.com>
|
||||||
;;; Copyright © 2015 Roel Janssen <roel@gnu.org>
|
;;; Copyright © 2015 Roel Janssen <roel@gnu.org>
|
||||||
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
|
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
|
||||||
|
@ -84,7 +84,8 @@ (define-module (gnu packages textutils)
|
||||||
#:use-module (gnu packages ruby)
|
#:use-module (gnu packages ruby)
|
||||||
#:use-module (gnu packages slang)
|
#:use-module (gnu packages slang)
|
||||||
#:use-module (gnu packages syncthing)
|
#:use-module (gnu packages syncthing)
|
||||||
#:use-module (gnu packages web))
|
#:use-module (gnu packages web)
|
||||||
|
#:use-module (gnu packages xorg))
|
||||||
|
|
||||||
(define-public dos2unix
|
(define-public dos2unix
|
||||||
(package
|
(package
|
||||||
|
@ -944,13 +945,24 @@ (define-public java-rsyntaxtextarea
|
||||||
"0dyflzvxq2wvs0rgqfyi5yzzrb6r4bzw2dm8cl304dakxk38ddys"))))
|
"0dyflzvxq2wvs0rgqfyi5yzzrb6r4bzw2dm8cl304dakxk38ddys"))))
|
||||||
(build-system ant-build-system)
|
(build-system ant-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(;; FIXME: some tests fail because locale resources cannot be found.
|
(list
|
||||||
;; Even when I add them to the class path,
|
#:jar-name "rsyntaxtextarea.jar"
|
||||||
;; RSyntaxTextAreaEditorKitDumbCompleteWordActionTest fails.
|
#:phases
|
||||||
#:tests? #f
|
'(modify-phases %standard-phases
|
||||||
#:jar-name "rsyntaxtextarea.jar"))
|
(add-before 'build 'copy-resources
|
||||||
|
(lambda _
|
||||||
|
(copy-recursively "src/main/resources" "build/classes")))
|
||||||
|
(add-before 'check 'start-xorg-server
|
||||||
|
(lambda _
|
||||||
|
;; The test suite requires a running X server.
|
||||||
|
(system "Xvfb :1 &")
|
||||||
|
(setenv "DISPLAY" ":1")
|
||||||
|
;; Prevent irrelevant errors that cause test output mismatches:
|
||||||
|
;; ‘Fontconfig error: No writable cache directories’
|
||||||
|
(setenv "XDG_CACHE_HOME" (getcwd)))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list java-junit java-hamcrest-core))
|
(list java-junit java-hamcrest-core
|
||||||
|
xorg-server-for-tests))
|
||||||
(home-page "https://bobbylight.github.io/RSyntaxTextArea/")
|
(home-page "https://bobbylight.github.io/RSyntaxTextArea/")
|
||||||
(synopsis "Syntax highlighting text component for Java Swing")
|
(synopsis "Syntax highlighting text component for Java Swing")
|
||||||
(description "RSyntaxTextArea is a syntax highlighting, code folding text
|
(description "RSyntaxTextArea is a syntax highlighting, code folding text
|
||||||
|
|
Loading…
Reference in a new issue