diff options
Diffstat (limited to 'app-text/xhtml1')
-rw-r--r-- | app-text/xhtml1/Manifest | 3 | ||||
-rw-r--r-- | app-text/xhtml1/metadata.xml | 5 | ||||
-rw-r--r-- | app-text/xhtml1/xhtml1-20020801-r6.ebuild | 78 |
3 files changed, 84 insertions, 2 deletions
diff --git a/app-text/xhtml1/Manifest b/app-text/xhtml1/Manifest index a5adf084a9e3..1d5484ccd22f 100644 --- a/app-text/xhtml1/Manifest +++ b/app-text/xhtml1/Manifest @@ -1,4 +1,5 @@ AUX xhtml1-catalog.patch 834 BLAKE2B 47236e18d55237bbfb6299b634253545299dd9649a58d42af6fc8e56afbb8547564dc17bbefb808b96aea739d7ba673403ab2f3c96b5eddceb7f886353320b51 SHA512 0b4fdb64e73405be53930984e5f628a1b5b48e6d43bebef9f9c502fca31d13b760385c0481030f8a09556447891a542dc4c7bb23f0618fd937e2934936b26780 DIST xhtml1-20020801.tgz 232192 BLAKE2B 4e2da9b73da93a8196ade80549a2e255b1954178472fddaf2e3d979befda8689f3540a65d41723e40bd0450d626608ffcdcd1fa9183da5e3b13d90a5649fdc23 SHA512 184758381c5e2d36b80fa1e4470e864777383ff7539b48291036f8a3f1dba0b354a32142bfcc9071147fb20bcd4c0d4d541e09e865047938ab4cf9ae5a806412 EBUILD xhtml1-20020801-r5.ebuild 2174 BLAKE2B 2029974397a6deb6848f5310a0c3078e70219c204406d1ef115241cf22f870f10ce8c18a965b035cdead98db36e4f0833053a67c765d1e538cdad172abada25b SHA512 57294051e859fd17a6942d180026f3d8e74c84e5ddfcf012e1f04f1870a867d908c4b7343b1a99c5a1d52844e86bc4a5754e6488e8ce45973d25e578b0d4a478 -MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 +EBUILD xhtml1-20020801-r6.ebuild 2332 BLAKE2B 702b13ee18e2549625e0651139b59bd5be8c8b73a980847fba8ce1523b9bdb65993e0bafc4a410048386b652ac65704aa9dfc042427b429c03fa2de13dee19fc SHA512 6ca481cc0f985c80a872fd031c2e982e776ee8b1ef96d3a5fe2fbfa1ee37d236102a6244be85b8b786e407e9b5a8a065405a1638027fffc131b1aac01dc8dd19 +MISC metadata.xml 247 BLAKE2B 1750cec57189e711ca5eba89a78e1d317f0839fa53564fbd39b4e955c28d98f4ae04caf9069afc20a18536cdc92b30fe7b15eb086767c742bad07d9980cfd24b SHA512 d6e2ea8a9d74791bcbf3d6311a66bafc20b8f4db3a576d9a8d54b86d7afb231122b8d87f71f3f46360980adf8d815c633b6d5041f9a30fc8656e8fb66057a282 diff --git a/app-text/xhtml1/metadata.xml b/app-text/xhtml1/metadata.xml index 6f49eba8f496..0319eec4c8be 100644 --- a/app-text/xhtml1/metadata.xml +++ b/app-text/xhtml1/metadata.xml @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<!-- maintainer-needed --> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> </pkgmetadata> diff --git a/app-text/xhtml1/xhtml1-20020801-r6.ebuild b/app-text/xhtml1/xhtml1-20020801-r6.ebuild new file mode 100644 index 000000000000..306fefc150cb --- /dev/null +++ b/app-text/xhtml1/xhtml1-20020801-r6.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit sgml-catalog-r1 + +DESCRIPTION="DTDs for the eXtensible HyperText Markup Language 1.0" +HOMEPAGE="http://www.w3.org/TR/xhtml1/" +SRC_URI="mirror://gentoo/xhtml1.tgz -> ${P}.tgz" + +LICENSE="W3C" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND="app-text/sgml-common + dev-libs/libxml2" + +PATCHES=( "${FILESDIR}"/${PN}-catalog.patch ) + +xml_catalog_setup() { + CATALOG="${EROOT}/etc/xml/catalog" + XMLTOOL="${BROOT}/usr/bin/xmlcatalog" + DTDDIR="${EROOT}/usr/share/sgml/${PN}" + + [[ -x ${XMLTOOL} ]] +} + +src_install() { + insinto /usr/share/sgml/${PN} + doins DTD/xhtml.soc DTD/*.dcl DTD/*.dtd DTD/*.ent + + insinto /etc/sgml + newins - xhtml1.cat <<-EOF + CATALOG "${EPREFIX}/usr/share/sgml/xhtml1/xhtml.soc" + EOF + + dodoc *.pdf *.ps + docinto html + dodoc *.html *.png *.css +} + +pkg_preinst() { + # work-around old revision removing it + cp "${ED}"/etc/sgml/xhtml1.cat "${T}" || die +} + +pkg_postinst() { + if [[ ! -f ${EROOT}/etc/sgml/xhtml1.cat ]]; then + cp "${T}"/xhtml1.cat "${EROOT}"/etc/sgml/ || die + fi + sgml-catalog-r1_pkg_postinst + + xml_catalog_setup || return + einfo "Installing xhtml1 in the global XML catalog" + "${XMLTOOL}" --noout --add 'public' '-//W3C//DTD XHTML 1.0 Strict//EN' \ + "${DTDDIR}"/xhtml1-strict.dtd "${CATALOG}" + "${XMLTOOL}" --noout --add 'public' '-//W3C//DTD XHTML 1.0 Transitional//EN' \ + "${DTDDIR}"/xhtml1-transitional.dtd "${CATALOG}" + "${XMLTOOL}" --noout --add 'public' '-//W3C//DTD XHTML 1.0 Frameset//EN' \ + "${DTDDIR}"/xhtml1-frameset.dtd "${CATALOG}" + "${XMLTOOL}" --noout --add 'rewriteSystem' 'http://www.w3.org/TR/xhtml1/DTD' \ + "${DTDDIR}" "${CATALOG}" + "${XMLTOOL}" --noout --add 'rewriteURI' 'http://www.w3.org/TR/xhtml1/DTD' \ + "${DTDDIR}" "${CATALOG}" +} + +pkg_postrm() { + sgml-catalog-r1_pkg_postrm + + [[ -n ${REPLACED_BY_VERSION} ]] && return + xml_catalog_setup || return + einfo "Removing xhtml1 from the global XML catalog" + "${XMLTOOL}" --noout --del '-//W3C//DTD XHTML 1.0 Strict//EN' "${CATALOG}" + "${XMLTOOL}" --noout --del '-//W3C//DTD XHTML 1.0 Transitional//EN' "${CATALOG}" + "${XMLTOOL}" --noout --del '-//W3C//DTD XHTML 1.0 Frameset//EN' "${CATALOG}" + "${XMLTOOL}" --noout --del 'http://www.w3.org/TR/xhtml1/DTD' "${CATALOG}" +} |