gnu: antlr3: Fix building after changes in ant-build-system.

* gnu/packages/java.scm (antlr3, antlr3-3.1, antlr3-3.3): Fix copying
resources causing an error message later in the bootstrap chain.
This commit is contained in:
Julien Lepiller 2019-11-13 22:18:28 +01:00
parent bc1177870d
commit 570f3b6370
No known key found for this signature in database
GPG key ID: 43111F4520086A0C

View file

@ -6742,14 +6742,16 @@ (define-public antlr3
(add-before 'build 'fix-build-xml
(lambda _
(substitute* "build.xml"
(("<exec") "<copy todir=\"${classes.dir}\">
(("target name=\"compile\">")
"target name=\"compile\">
<copy todir=\"${classes.dir}\">
<fileset dir=\"tool/src/main/resources\">
<include name=\"**/*.stg\"/>
<include name=\"**/*.st\"/>
<include name=\"**/*.sti\"/>
<include name=\"**/STLexer.tokens\"/>
</fileset>
</copy><exec"))
</copy>"))
#t)))))
(native-inputs
`(("antlr" ,antlr2)
@ -6855,14 +6857,16 @@ (define antlr3-3.3
(add-before 'build 'fix-build-xml
(lambda _
(substitute* "build.xml"
(("<exec") "<copy todir=\"${classes.dir}\">
(("target name=\"compile\">")
"target name=\"compile\">
<copy todir=\"${classes.dir}\">
<fileset dir=\"tool/src/main/resources\">
<include name=\"**/*.stg\"/>
<include name=\"**/*.st\"/>
<include name=\"**/*.sti\"/>
<include name=\"**/STLexer.tokens\"/>
</fileset>
</copy><exec"))
</copy>"))
#t)))))
(native-inputs
`(("antlr" ,antlr2)
@ -6874,7 +6878,7 @@ (define antlr3-3.3
("antlr" ,antlr2)
("antlr3" ,antlr3-3.1)))))
(define antlr3-3.1
(define-public antlr3-3.1
(package
(inherit antlr3)
(version "3.1")
@ -6932,14 +6936,16 @@ (define antlr3-3.1
(add-before 'build 'fix-build-xml
(lambda _
(substitute* "build.xml"
(("<exec") "<copy todir=\"${classes.dir}\">
(("target name=\"compile\">")
"target name=\"compile\">
<copy todir=\"${classes.dir}\">
<fileset dir=\"src\">
<include name=\"**/*.stg\"/>
<include name=\"**/*.st\"/>
<include name=\"**/*.sti\"/>
<include name=\"**/STLexer.tokens\"/>
</fileset>
</copy><exec"))
</copy>"))
#t)))))
(native-inputs
`(("antlr" ,antlr2)))