vbfnlo: use patch method and filter_file instead of patch directive (#28506)
* Patch only for @3.0.0beta5 * Replace version specific patch file with patch function Co-authored-by: root <root@hahansencs8.cern.ch>
This commit is contained in:
parent
e3d62b2f7b
commit
b7bb687d17
@ -30,7 +30,6 @@ class Vbfnlo(AutotoolsPackage):
|
|||||||
# See https://github.com/vbfnlo/vbfnlo/issues/2
|
# See https://github.com/vbfnlo/vbfnlo/issues/2
|
||||||
variant('doc', default=False,
|
variant('doc', default=False,
|
||||||
description='Build documentation')
|
description='Build documentation')
|
||||||
patch('vbfnlo_no_docs.patch', when='~doc')
|
|
||||||
|
|
||||||
depends_on('hepmc')
|
depends_on('hepmc')
|
||||||
depends_on('gsl')
|
depends_on('gsl')
|
||||||
@ -53,3 +52,7 @@ def configure_args(self):
|
|||||||
"FCFLAGS=-std=legacy"]
|
"FCFLAGS=-std=legacy"]
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
@when('@3.0.0beta3:~doc')
|
||||||
|
def patch(self):
|
||||||
|
filter_file("lib src doc", "lib src", "Makefile.am")
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/Makefile.am b/Makefile.am
|
|
||||||
index e3cfec3..ebf48f4 100644
|
|
||||||
--- a/Makefile.am
|
|
||||||
+++ b/Makefile.am
|
|
||||||
@@ -5,7 +5,7 @@ SUBDIRS = include \
|
|
||||||
loops \
|
|
||||||
amplitudes \
|
|
||||||
phasespace \
|
|
||||||
- lib src doc \
|
|
||||||
+ lib src \
|
|
||||||
regress
|
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
|
Loading…
Reference in New Issue
Block a user