gnu: java-iq80-snappy: Use invoke.

* gnu/packages/compression.scm (java-iq80-snappy)[arguments]: Use invoke and
remove vestigial plumbing.
This commit is contained in:
Mark H Weaver 2018-03-16 02:34:26 -04:00
parent 74d29bedc1
commit 831016bd22
No known key found for this signature in database
GPG key ID: 7CEF29847562C516

View file

@ -1316,16 +1316,15 @@ (define-public java-iq80-snappy
(replace 'check
(lambda _
(define (test class)
(zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH")
":build/classes"
":build/test-classes")
"-Dtest.resources.dir=src/test/resources"
"org.testng.TestNG" "-testclass"
class)))
(system* "ant" "compile-tests")
(and
(test "org.iq80.snappy.SnappyFramedStreamTest")
(test "org.iq80.snappy.SnappyStreamTest"))))
(invoke "java" "-cp" (string-append (getenv "CLASSPATH")
":build/classes"
":build/test-classes")
"-Dtest.resources.dir=src/test/resources"
"org.testng.TestNG" "-testclass"
class))
(invoke "ant" "compile-tests")
(test "org.iq80.snappy.SnappyFramedStreamTest")
(test "org.iq80.snappy.SnappyStreamTest")))
(add-before 'build 'remove-hadoop-dependency
(lambda _
;; We don't have hadoop