diff options
author | 2011-04-24 21:24:14 +0000 | |
---|---|---|
committer | 2011-04-24 21:24:14 +0000 | |
commit | a2b5aa0de2cbfecbb7e9af01a5dc62d93a8168bb (patch) | |
tree | da3e9505894e2c18d0b75e1f063720fe30c6f62a /app-text | |
parent | dev-vcs/tortoisehg: Major version bump plus ebuild cleanup (diff) | |
download | sunrise-reviewed-a2b5aa0de2cbfecbb7e9af01a5dc62d93a8168bb.tar.gz sunrise-reviewed-a2b5aa0de2cbfecbb7e9af01a5dc62d93a8168bb.tar.bz2 sunrise-reviewed-a2b5aa0de2cbfecbb7e9af01a5dc62d93a8168bb.zip |
app-text/mathml-xml-dtd: app-text/mathml-xml-dtd-2.0 - #194501 - Regards to floppym, binki, and Tommy[D]
svn path=/sunrise/; revision=11910
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/mathml-xml-dtd/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/mathml-xml-dtd/Manifest | 4 | ||||
-rw-r--r-- | app-text/mathml-xml-dtd/mathml-xml-dtd-2.0.ebuild | 77 | ||||
-rw-r--r-- | app-text/mathml-xml-dtd/metadata.xml | 6 |
4 files changed, 95 insertions, 0 deletions
diff --git a/app-text/mathml-xml-dtd/ChangeLog b/app-text/mathml-xml-dtd/ChangeLog new file mode 100644 index 000000000..82c02bd8c --- /dev/null +++ b/app-text/mathml-xml-dtd/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-text/mathml-xml-dtd +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 24 Apr 2011; BAUER Samuel (mazes_80) <samuel.bauer@yahoo.fr> + +mathml-xml-dtd-2.0.ebuild, +metadata.xml: + app-text/mathml-xml-dtd-2.0 - #194501 - Regards to floppym, binki, and Tommy[D] + diff --git a/app-text/mathml-xml-dtd/Manifest b/app-text/mathml-xml-dtd/Manifest new file mode 100644 index 000000000..943ee6143 --- /dev/null +++ b/app-text/mathml-xml-dtd/Manifest @@ -0,0 +1,4 @@ +DIST mathml2.tgz 121304 RMD160 17341df158e62a55b90c2a1425ad779f25ee5017 SHA1 3cd9b1db626259756215e8aa92f70feff4c77116 SHA256 8b3e796574d63131fd3c90692c830ccf21a272433e3cc1b8c014979c84bd2ff4 +EBUILD mathml-xml-dtd-2.0.ebuild 2205 RMD160 ae9c144754bdc7db7195ac0c92f1e0f674af6f1f SHA1 8fe13b061380dd6fb71ea1d63884e23b33a47684 SHA256 81252fa0389db77ed21c3c84e38a12990016aa3379a1e28242362bb3bb578e54 +MISC ChangeLog 315 RMD160 be24aa3a02f499b001fdf4302bb2e75fc7aff7b4 SHA1 6bcefff86d867a14d30f8d21577eb78fb3fdf3eb SHA256 615c96c7ca297cb9cd9a2329b610ffb8c7f56ac73638f7ac793dd660bd1bce62 +MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f diff --git a/app-text/mathml-xml-dtd/mathml-xml-dtd-2.0.ebuild b/app-text/mathml-xml-dtd/mathml-xml-dtd-2.0.ebuild new file mode 100644 index 000000000..5cdb6087d --- /dev/null +++ b/app-text/mathml-xml-dtd/mathml-xml-dtd-2.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils versionator + +DESCRIPTION="MathML DTD and entity files" +HOMEPAGE="http://www.w3.org/1998/Math/MathML" +SRC_URI="http://www.w3.org/Math/DTD/${PN/-*/}$(get_major_version).tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="dev-libs/libxml2" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN/-*/}$(get_major_version)" + +src_install() { + install_directory="/usr/share/sgml/mathml/${P}" + + insinto ${install_directory} + doins * || die +} + +pkg_postinst() { + [ ! -e /etc/xml ] && mkdir -p /etc/xml/ + + if [[ ! -r "${ROOT}"etc/xml/catalog ]] ; then + ebegin "Creating root XML catalog" + xmlcatalog --noout --create "${ROOT}"etc/xml/catalog + eend $? "Failed creating root XML catalog" + [ $? ] && return + fi + + if [[ ! -r "${ROOT}"etc/xml/mathml ]] ; then + ebegin "Creating MathML catalog" + xmlcatalog --noout --create "${ROOT}"etc/xml/mathml + eend $? "Failed creating MathML catalog" + [ $? ] && return + fi + + 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}"etc/xml/catalog + + einfo "Updating MathML Catalog" + sed -n "/PUBLIC \"/ {N; s/\n/ /; s/SYSTEM//; s/\"[^\"]*$//; s/^[^\"]*\"//; s%\"[[:blank:]]\+\"%;file://${install_directory}/%; p};" ${S}/mathml2.dtd | while read entity + do + orig=`echo ${entity} | cut -f1 -d';'` + replace=`echo ${entity} | cut -f2 -d';'` + xmlcatalog --noout --add public "${orig}" "${replace}" "${ROOT}"etc/xml/mathml + done + + xmlcatalog --noout \ + --add "rewriteURI" "http://www.w3.org/TR/2001/REC-MathML2-20010221/dtd" "file://${install_directory}" \ + "${ROOT}"etc/xml/mathml +} + +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}"etc/xml/catalog + + einfo "Cleaning MathML Catalog" + + sed -i "/${P}/d" "${ROOT}"etc/xml/mathml +} diff --git a/app-text/mathml-xml-dtd/metadata.xml b/app-text/mathml-xml-dtd/metadata.xml new file mode 100644 index 000000000..e6233b5dc --- /dev/null +++ b/app-text/mathml-xml-dtd/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer> +</pkgmetadata> |