Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 270885 Details for
Bug 194501
app-text/mathml-xml-dtd-2.0 - new ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
polished version of the previous suggested ebuild
mathml-xml-dtd-2.0.ebuild (text/plain), 2.39 KB, created by
Samuel Bauer
on 2011-04-22 16:24:33 UTC
(
hide
)
Description:
polished version of the previous suggested ebuild
Filename:
MIME Type:
Creator:
Samuel Bauer
Created:
2011-04-22 16:24:33 UTC
Size:
2.39 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > >DESCRIPTION="MathML DTD and entity files." >HOMEPAGE="http://www.w3.org/1998/Math/MathML" >SRC_URI="http://www.w3.org/Math/DTD/mathml2.tgz" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" >IUSE="" > >RDEPEND="" >DEPEND="dev-libs/libxml2 > ${RDEPEND}" > >RESTRICT="nomirror" > >S="${WORKDIR}/mathml2" > >INSTDIR="/usr/share/sgml/mathml/${P}" > >src_install() { > insinto ${INSTDIR} > doins * >} > >pkg_postinst() { > local root_catalog=/etc/xml/catalog > local mathml_catalog=/etc/xml/mathml > > [ ! -e /etc/xml ] && mkdir -p /etc/xml/ > if [[ ! -r "${root_catalog}" ]] ; then > einfo "Creating root XML catalog" > xmlcatalog --noout --create "${root_catalog}" > [ ! -r "${root_catalog}" ] && die "Failed creating Root XML Catalog" > fi > > einfo "Cleaning Root XML Catalog" > xmlcatalog --noout \ > --del "-//W3C//DTD MathML" \ > --del "-//W3C//ENTITIES" \ > --del "http://www.w3.org/TR/2001/REC-MathML2-20010221/dtd" \ > "${root_catalog}" > > einfo "Updating Root XML Catalog" > xmlcatalog --noout \ > --add "delegatePublic" "-//W3C//DTD MathML" "file:///etc/xml/mathml" \ > --add "delegatePublic" "-//W3C//ENTITIES" "file:///etc/xml/mathml" \ > --add "delegateURI" "http://www.w3.org/TR/2001/REC-MathML2-20010221/dtd" "file:///etc/xml/mathml" \ > "${root_catalog}" > > if [[ ! -r "${root_catalog}" ]] ; then > einfo "Creating MathML catalog" > xmlcatalog --noout --create "${mathml_catalog}" > [ ! -r "${mathml_catalog}" ] && die "Failed creating Root XML Catalog" > fi > > # die "Scrappy one liner" > ENTITIES=`cat "${S}/mathml2.dtd" | grep -A1 -E "(SYSTEM|PUBLIC) \"" | grep -v -E "^$" | sed -r 's/^ +//' | sed -r 's/( |)>( |)$//' | sed 's/SYSTEM //' | sed -r 's/--//'` > echo ${ENTITIES} | sed -r 's/(PUBLIC |SYSTEM )/\n/g' | grep -v -E '$^' | sed -r 's/^//' | sed "s%\" \"%\" \"file://${INSTDIR}/%" | awk "{system(\"/usr/bin/xmlcatalog --noout --add \\\"public\\\" \"\$0\" ${mathml_catalog}\")}" > > xmlcatalog --noout \ > -add "rewriteURI" "http://www.w3.org/TR/2001/REC-MathML2-20010221/dtd" "file://${INSTDIR}" \ > "${mathml_catalog}" > elog "MathML DTD included in XML catalog" >} > >pkg_postrm() { > einfo "Cleaning Root XML Catalog" > xmlcatalog --noout \ > --del "-//W3C//DTD MathML" \ > --del "-//W3C//ENTITIES" \ > --del "http://www.w3.org/TR/2001/REC-MathML2-20010221/dtd" \ > "${root_catalog}" > elog "MathML DTD removed from XML catalog" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 194501
:
132389
|
270885
|
271033
|
271487