asciidoc: Fix asciidoc@10 install (#44926)
This commit is contained in:
parent
54f1af5a29
commit
c43205d6de
@ -6,7 +6,7 @@
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class Asciidoc(AutotoolsPackage):
|
||||
class Asciidoc(AutotoolsPackage, PythonPackage):
|
||||
"""A presentable text document format for writing articles, UNIX man
|
||||
pages and other small to medium sized documents."""
|
||||
|
||||
@ -17,6 +17,12 @@ class Asciidoc(AutotoolsPackage):
|
||||
|
||||
license("GPL-2.0-only", checked_by="tgamblin")
|
||||
|
||||
build_system(
|
||||
conditional("autotools", when="@:9"),
|
||||
conditional("python_pip", when="@10:"),
|
||||
default="python_pip",
|
||||
)
|
||||
|
||||
version("master", branch="master")
|
||||
version("10.2.0", sha256="684ea53c1f5b71d6d1ac6086bbc96906b1f709ecc7ab536615b0f0c9e1baa3cc")
|
||||
version("9.1.0", sha256="5056c20157349f8dc74f005b6e88ccbf1078c4e26068876f13ca3d1d7d045fe7")
|
||||
@ -31,6 +37,9 @@ class Asciidoc(AutotoolsPackage):
|
||||
depends_on("docbook-xml", type=("build", "run"))
|
||||
depends_on("docbook-xsl", type=("build", "run"))
|
||||
depends_on("python@3.5:", type=("build", "run"))
|
||||
depends_on("autoconf", type="build")
|
||||
depends_on("automake", type="build")
|
||||
depends_on("libtool", type="build")
|
||||
with when("build_system=python_pip"):
|
||||
depends_on("py-setuptools", type="build")
|
||||
with when("build_system=autotools"):
|
||||
depends_on("autoconf", type="build")
|
||||
depends_on("automake", type="build")
|
||||
depends_on("libtool", type="build")
|
||||
|
Loading…
Reference in New Issue
Block a user