Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349033 - docbook-mathml ebuild request
Summary: docbook-mathml ebuild request
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-18 20:09 UTC by Samuel Bauer
Modified: 2014-05-20 09:45 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Skeleton ebuild to process mathml within docbook (docbook-mathml-dtd-1.1-r1.ebuild,1.49 KB, text/plain)
2010-12-19 17:48 UTC, Samuel Bauer
Details
Ebuild reviewed on sunrise irc by mgorny; pending for sgml herd acknowledgement (docbook-mathml-dtd-1.1_rc1.ebuild,1.25 KB, text/plain)
2011-04-28 20:04 UTC, Samuel Bauer
Details
docbook-mathml-dtd-1.1_beta1.ebuild (docbook-mathml-dtd-1.1_beta1.ebuild,1.66 KB, text/plain)
2011-08-29 14:47 UTC, Dennis Schridde
Details
docbook-mathml-dtd-1.1_rc1.ebuild (docbook-mathml-dtd-1.1_rc1.ebuild,1.76 KB, text/plain)
2012-06-09 01:31 UTC, Dennis Schridde
Details
docbook-mathml-dtd-1.1_rc1.ebuild (fixed docbook.cat) (docbook-mathml-dtd-1.1_rc1.ebuild,1.76 KB, text/plain)
2012-06-09 01:43 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2010-12-18 20:09:04 UTC
For now there is a lack in gentoo on how to process docbook containing mathml parts.

Only solution is right now to install the files manually, but it's not generally a good idea if you want to have a system supervised by portage

Reproducible: Always

Steps to Reproduce:
1. Get or create a docbook document including mathml parts
2. Process the document with xsltproc or saxon

Actual Results:  
The generation doesn't fail but the mathml text is missing from the output.
The xsltproc processor insults you a lot saying that mml is not a known namespace


I tried to compile the man page from https://cvs.khronos.org/ when I seen it can't be done in a basic gentoo installation. As I reported in http://bugs.gentoo.org/show_bug.cgi?id=120375#c23 maybe this ebuild can help to achieve docbook-mathml.

Also take a look to debian docbook-mathml package could help
Comment 1 Samuel Bauer 2010-12-19 17:48:13 UTC
Created attachment 257560 [details]
Skeleton ebuild to process mathml within docbook

You'll also need to install:

http://bugs.gentoo.org/show_bug.cgi?id=194501
Comment 2 Samuel Bauer 2011-04-28 20:04:54 UTC
Created attachment 271485 [details]
Ebuild reviewed on sunrise irc by mgorny; pending for sgml herd acknowledgement
Comment 3 Dennis Schridde 2011-08-29 14:47:49 UTC
Created attachment 285013 [details]
docbook-mathml-dtd-1.1_beta1.ebuild

Attached ebuild is a minor improvement of the ebuilds attached previously.

* fixes dependencies (the dtd mentions docbook-xml-dtd version 4.3)
* adds sgml catalogs (which was apparently not enough to actually generate the manpages, hence the calls to xmlcatalog still appear)
* tries to be more similar to other packages like docbook-xml-{simple-,}dtd
* uses eapi 4

I was able to build opengl-manpages-4.9999 (bug #350052) using this.

Comments and improvements welcome.
Comment 4 Dennis Schridde 2012-06-09 01:31:07 UTC
Created attachment 314747 [details]
docbook-mathml-dtd-1.1_rc1.ebuild

Changed version to _rc1, since 1.1CR1 is newer than 1.1b1, despite appearing earlier in the directory listing on [1]. Only changed line is MY_PV which replaces _rc with CR now.

[1] http://www.docbook.org/xml/mathml/
Comment 5 Dennis Schridde 2012-06-09 01:43:20 UTC
Created attachment 314749 [details]
docbook-mathml-dtd-1.1_rc1.ebuild (fixed docbook.cat)

The command to create the docbook.cat was actually quite broken - it used a quoted here document which prevented ${MY_PV} expansion.
Comment 6 klemensbaum 2014-05-19 22:06:18 UTC
I've submitted a slightly updated ebuild to sunrise, but the github mirror appears to be dead and no longer responding to pull requests.

Link to the pull request: https://github.com/gentoo-sunrise/sunrise/pull/12

What needs to be done to proceed with this ebuild inclusion request?
Comment 7 Jauhien Piatlicki (RETIRED) gentoo-dev 2014-05-20 09:45:10 UTC
(In reply to klemensbaum from comment #6)
> I've submitted a slightly updated ebuild to sunrise, but the github mirror
> appears to be dead and no longer responding to pull requests.
> 
> Link to the pull request: https://github.com/gentoo-sunrise/sunrise/pull/12
> 
> What needs to be done to proceed with this ebuild inclusion request?

See here: http://wiki.gentoo.org/wiki/Project:Sunrise/How_to_commit

Github mirror seems to be quite dead, so follow instructions from our wiki.