Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 752498
Collapse All | Expand All

(-)/usr/portage/app-text/xhtml11/xhtml11-20101123.ebuild (-3 / +6 lines)
Lines 4-10 Link Here
4
EAPI=7
4
EAPI=7
5
inherit sgml-catalog-r1
5
inherit sgml-catalog-r1
6
6
7
DESCRIPTION="DTDs for the eXtensible HyperText Markup Language 1.0"
7
DESCRIPTION="DTDs for the eXtensible HyperText Markup Language 1.1"
8
HOMEPAGE="http://www.w3.org/TR/xhtml11/"
8
HOMEPAGE="http://www.w3.org/TR/xhtml11/"
9
SRC_URI="http://www.w3.org/TR/xhtml11/xhtml11.tgz -> ${P}.tar.gz"
9
SRC_URI="http://www.w3.org/TR/xhtml11/xhtml11.tgz -> ${P}.tar.gz"
10
10
Lines 42-50 Link Here
42
	sgml-catalog-r1_pkg_postinst
42
	sgml-catalog-r1_pkg_postinst
43
43
44
	xml_catalog_setup || return
44
	xml_catalog_setup || return
45
	einfo "Installing xhtml11 in the global XML catalog"
45
	einfo "Installing ${PN} in the global XML catalog"
46
	"${XMLTOOL}" --noout --add 'public' '-//W3C//DTD XHTML 1.1//EN' \
46
	"${XMLTOOL}" --noout --add 'public' '-//W3C//DTD XHTML 1.1//EN' \
47
		"${DTDDIR}"/xhtml11-flat.dtd "${CATALOG}"
47
		"${DTDDIR}"/xhtml11-flat.dtd "${CATALOG}"
48
	"${XMLTOOL}" --noout --add 'system' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd' \
49
		"${DTDDIR}"/xhtml11-flat.dtd "${CATALOG}"
48
	"${XMLTOOL}" --noout --add 'rewriteSystem' 'http://www.w3.org/TR/xhtml11/DTD' \
50
	"${XMLTOOL}" --noout --add 'rewriteSystem' 'http://www.w3.org/TR/xhtml11/DTD' \
49
		"${DTDDIR}" "${CATALOG}"
51
		"${DTDDIR}" "${CATALOG}"
50
	"${XMLTOOL}" --noout --add 'rewriteURI' 'http://www.w3.org/TR/xhtml11/DTD' \
52
	"${XMLTOOL}" --noout --add 'rewriteURI' 'http://www.w3.org/TR/xhtml11/DTD' \
Lines 56-62 Link Here
56
58
57
	[[ -n ${REPLACED_BY_VERSION} ]] && return
59
	[[ -n ${REPLACED_BY_VERSION} ]] && return
58
	xml_catalog_setup || return
60
	xml_catalog_setup || return
59
	einfo "Removing xhtml1 from the global XML catalog"
61
	einfo "Removing ${PN} from the global XML catalog"
60
	"${XMLTOOL}" --noout --del '-//W3C//DTD XHTML 1.1//EN' "${CATALOG}"
62
	"${XMLTOOL}" --noout --del '-//W3C//DTD XHTML 1.1//EN' "${CATALOG}"
63
	"${XMLTOOL}" --noout --del 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd' "${CATALOG}"
61
	"${XMLTOOL}" --noout --del 'http://www.w3.org/TR/xhtml11/DTD' "${CATALOG}"
64
	"${XMLTOOL}" --noout --del 'http://www.w3.org/TR/xhtml11/DTD' "${CATALOG}"
62
}
65
}

Return to bug 752498