asciidoc-py3 add docbook dependency and fix a enviroment variable problem for docbook-{xml,xsl} (#19547)
* asciidoc-py3: add docbook-{xml,xsl} dependency * docbook-{xsl,xml}: fix XML_CATALOG_FILES enviroment variable
This commit is contained in:
parent
79b0eab2af
commit
6a5d399f55
@ -23,3 +23,5 @@ class AsciidocPy3(AutotoolsPackage):
|
|||||||
depends_on('python@3.5:', type=('build', 'run'))
|
depends_on('python@3.5:', type=('build', 'run'))
|
||||||
depends_on('libxml2', type=('build', 'run'))
|
depends_on('libxml2', type=('build', 'run'))
|
||||||
depends_on('libxslt', type=('build', 'run'))
|
depends_on('libxslt', type=('build', 'run'))
|
||||||
|
depends_on('docbook-xml', type=('build', 'run'))
|
||||||
|
depends_on('docbook-xsl', type=('build', 'run'))
|
||||||
|
@ -20,6 +20,14 @@ class DocbookXml(Package):
|
|||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
install_tree('.', prefix)
|
install_tree('.', prefix)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def catalog(self):
|
||||||
|
return os.path.join(self.prefix, 'catalog.xml')
|
||||||
|
|
||||||
def setup_run_environment(self, env):
|
def setup_run_environment(self, env):
|
||||||
catalog = os.path.join(self.prefix, 'catalog.xml')
|
catalog = self.catalog
|
||||||
env.set('XML_CATALOG_FILES', catalog, separator=' ')
|
env.set('XML_CATALOG_FILES', catalog, separator=' ')
|
||||||
|
|
||||||
|
def setup_dependent_build_environment(self, env, dependent_spec):
|
||||||
|
catalog = self.catalog
|
||||||
|
env.set("XML_CATALOG_FILES", catalog, separator=' ')
|
||||||
|
@ -28,8 +28,8 @@ def catalog(self):
|
|||||||
|
|
||||||
def setup_run_environment(self, env):
|
def setup_run_environment(self, env):
|
||||||
catalog = self.catalog
|
catalog = self.catalog
|
||||||
env.set('XML_CATALOG_FILES', catalog, separator=' ')
|
env.prepend_path('XML_CATALOG_FILES', catalog, separator=' ')
|
||||||
|
|
||||||
def setup_dependent_build_environment(self, env, dependent_spec):
|
def setup_dependent_build_environment(self, env, dependent_spec):
|
||||||
catalog = self.catalog
|
catalog = self.catalog
|
||||||
env.prepend_path("XML_CATALOG_FILES", catalog)
|
env.prepend_path("XML_CATALOG_FILES", catalog, separator=' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user