summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sgml-catalog-r1.eclass: Strip ROOT when generating catalogRaul E Rangel2023-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | When cross compiling by setting the ROOT variable, the eclass was writing the full EROOT path into the catalog file. This results in an invalid path at runtime. i.e., $ cat /build/amd64-host/etc/sgml/catalog CATALOG "/build/amd64-host/etc/sgml/sgml-docbook.cat" CATALOG "/build/amd64-host/etc/sgml/sgml-ent.cat" CATALOG "/build/amd64-host/etc/sgml/xml-docbook-4.1.2.cat" Instead we should be stripping off the ROOT so we get a valid path: $ cat /build/amd64-host/etc/sgml/catalog CATALOG "/etc/sgml/sgml-docbook.cat" CATALOG "/etc/sgml/sgml-ent.cat" CATALOG "/etc/sgml/xml-docbook-4.1.2.cat" We don't strip EROOT because we want to keep the prefix if it's present. Closes: https://bugs.gentoo.org/903747 Signed-off-by: Raul E Rangel <rrangel@chromium.org> Closes: https://github.com/gentoo/gentoo/pull/30462 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass: standardize prologue/epilogueDavid Seifert2023-03-171-7/+7
| | | | | Closes: https://github.com/gentoo/gentoo/pull/30061 Signed-off-by: David Seifert <soap@gentoo.org>
* sgml-catalog-r1.eclass: Remove obsolete environment filesJames Le Cuirot2022-01-251-13/+5
| | | | | | | | | | | | These files are only regenerated when gensgmlenv is present, but this tool was part of sgmltools-lite, which was last-rited over a year ago. The presence of 93sgmltools-lite can break tools such as asciidoc. When SGML_CATALOG_FILES is defined, it automatically passes the --catalogs option to xmllint, which uses the obsolete variable over the updated catalogs listed in /etc/sgml/catalog. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* sgml-catalog-r1.eclass: Do not generate self-dep in sgml-commonMichał Górny2019-11-241-1/+3
| | | | | Closes: https://bugs.gentoo.org/700976 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* sgml-catalog-r1.eclass: define @SUPPORTED_EAPISMichał Górny2019-09-151-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* sgml-catalog-r1.eclass: New eclass to handle SGML catalogsMichał Górny2019-09-111-0/+73
Create a new, simpler eclass to handle SGML catalog installation. Rather than relying on external tool to add/remove catalogs in postinst/postrm, let ebuilds install interim catalogs and just register all installed catalogs. Signed-off-by: Michał Górny <mgorny@gentoo.org>