Skip to content
Snippets Groups Projects
Unverified Commit 0fcca9f4 authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

Add list_url to docbook-xml (#10146)

parent e19e176e
No related branches found
No related tags found
No related merge requests found
...@@ -9,20 +9,17 @@ ...@@ -9,20 +9,17 @@
class DocbookXml(Package): class DocbookXml(Package):
"""Docbook DTD XML files.""" """Docbook DTD XML files."""
homepage = "http://www.oasis-open.org/docbook"
url = "http://www.oasis-open.org/docbook/xml/4.5/docbook-xml-4.5.zip" homepage = "https://www.oasis-open.org/docbook"
url = "https://www.oasis-open.org/docbook/xml/4.5/docbook-xml-4.5.zip"
list_url = "https://www.oasis-open.org/docbook/xml/"
list_depth = 1
version('4.5', '03083e288e87a7e829e437358da7ef9e') version('4.5', '03083e288e87a7e829e437358da7ef9e')
def install(self, spec, prefix): def install(self, spec, prefix):
for item in os.listdir('.'): install_tree('.', prefix)
src = os.path.abspath(item)
dst = os.path.join(prefix, item)
if os.path.isdir(item):
install_tree(src, dst, symlinks=True)
else:
install(src, dst)
def setup_environment(self, spack_env, run_env): def setup_environment(self, spack_env, run_env):
catalog = os.path.join(self.spec.prefix, 'catalog.xml') catalog = os.path.join(self.prefix, 'catalog.xml')
run_env.set('XML_CATALOG_FILES', catalog, separator=' ') run_env.set('XML_CATALOG_FILES', catalog, separator=' ')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment