diff options
author | Leonardo Boshell <leonardop@gentoo.org> | 2006-05-29 09:36:27 +0000 |
---|---|---|
committer | Leonardo Boshell <leonardop@gentoo.org> | 2006-05-29 09:36:27 +0000 |
commit | c9a7bf4b61ae6ea28cc09fc1cb98e6896d3fa364 (patch) | |
tree | cc6fe6a7849fff2b72b813a342ab438f48506398 /dev-util/gtk-doc | |
parent | remove old stuff - this fails with newer kernels (diff) | |
download | gentoo-2-c9a7bf4b61ae6ea28cc09fc1cb98e6896d3fa364.tar.gz gentoo-2-c9a7bf4b61ae6ea28cc09fc1cb98e6896d3fa364.tar.bz2 gentoo-2-c9a7bf4b61ae6ea28cc09fc1cb98e6896d3fa364.zip |
Added patch to fix generation of SGML manuals (bug #133825)
(Portage version: 2.1_rc3-r1)
Diffstat (limited to 'dev-util/gtk-doc')
-rw-r--r-- | dev-util/gtk-doc/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/gtk-doc/files/digest-gtk-doc-1.6-r1 | 3 | ||||
-rw-r--r-- | dev-util/gtk-doc/files/gtk-doc-1.6-no_dupe_ids.patch | 330 | ||||
-rw-r--r-- | dev-util/gtk-doc/gtk-doc-1.6-r1.ebuild | 71 |
4 files changed, 411 insertions, 1 deletions
diff --git a/dev-util/gtk-doc/ChangeLog b/dev-util/gtk-doc/ChangeLog index e488a71204a2..fefb10521c07 100644 --- a/dev-util/gtk-doc/ChangeLog +++ b/dev-util/gtk-doc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/gtk-doc # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/gtk-doc/ChangeLog,v 1.63 2006/05/23 01:17:30 leonardop Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/gtk-doc/ChangeLog,v 1.64 2006/05/29 09:36:26 leonardop Exp $ + +*gtk-doc-1.6-r1 (29 May 2006) + + 29 May 2006; Leonardo Boshell <leonardop@gentoo.org> + +files/gtk-doc-1.6-no_dupe_ids.patch, +gtk-doc-1.6-r1.ebuild: + Added patch to fix generation of SGML manuals (bug #133825). *gtk-doc-1.6 (23 May 2006) diff --git a/dev-util/gtk-doc/files/digest-gtk-doc-1.6-r1 b/dev-util/gtk-doc/files/digest-gtk-doc-1.6-r1 new file mode 100644 index 000000000000..2922f681e446 --- /dev/null +++ b/dev-util/gtk-doc/files/digest-gtk-doc-1.6-r1 @@ -0,0 +1,3 @@ +MD5 09c7a89efff2e0bbaba02a12bff58dfd gtk-doc-1.6.tar.bz2 177476 +RMD160 f1bb0d5396173ef00d18ee68d7c013a7734e3454 gtk-doc-1.6.tar.bz2 177476 +SHA256 c7f2051ddb46881122cf15f11395f31b94fe3c1690c8dd8148698d069555de08 gtk-doc-1.6.tar.bz2 177476 diff --git a/dev-util/gtk-doc/files/gtk-doc-1.6-no_dupe_ids.patch b/dev-util/gtk-doc/files/gtk-doc-1.6-no_dupe_ids.patch new file mode 100644 index 000000000000..d0fb00378818 --- /dev/null +++ b/dev-util/gtk-doc/files/gtk-doc-1.6-no_dupe_ids.patch @@ -0,0 +1,330 @@ +Index: gtk-doc.xsl +=================================================================== +RCS file: /cvs/gnome/gtk-doc/gtk-doc.xsl,v +retrieving revision 1.23 +diff -u -d -r1.23 gtk-doc.xsl +--- gtk-doc.xsl 9 Dec 2005 09:07:39 -0000 1.23 ++++ gtk-doc.xsl 24 May 2006 23:35:17 -0000 +@@ -170,18 +170,18 @@ + <xsl:param name="next" select="/foo"/> + <xsl:variable name="home" select="/*[1]"/> + <xsl:variable name="up" select="parent::*"/> +- <xsl:variable name="sections" select="./refsect1[@id]"/> +- <xsl:variable name="sect_object_hierarchy" select="./refsect1[@id='object_hierarchy']"/> +- <xsl:variable name="sect_prerequisites" select="./refentry/refsect1[@id='prerequisites']"/> +- <xsl:variable name="sect_derived_interfaces" select="./refentry/refsect1[@id='derived_interfaces']"/> +- <xsl:variable name="sect_impl_interfaces" select="./refentry/refsect1[@id='impl_interfaces']"/> +- <xsl:variable name="sect_implementations" select="./refentry/refsect1[@id='implementations']"/> +- <xsl:variable name="sect_properties" select="./refsect1[@id='properties']"/> +- <xsl:variable name="sect_child_properties" select="./refsect1[@id='child_properties']"/> +- <xsl:variable name="sect_style_properties" select="./refsect1[@id='style_properties']"/> +- <xsl:variable name="sect_signal_proto" select="./refsect1[@id='signal_proto']"/> +- <xsl:variable name="sect_desc" select="./refsect1[@id='desc']"/> +- <xsl:variable name="sect_synopsis" select="./refsynopsisdiv[@id='synopsis']"/> ++ <xsl:variable name="sections" select="./refsect1[@role]"/> ++ <xsl:variable name="sect_object_hierarchy" select="./refsect1[@role='object_hierarchy']"/> ++ <xsl:variable name="sect_prerequisites" select="./refsect1[@role='prerequisites']"/> ++ <xsl:variable name="sect_derived_interfaces" select="./refsect1[@role='derived_interfaces']"/> ++ <xsl:variable name="sect_impl_interfaces" select="./refsect1[@role='impl_interfaces']"/> ++ <xsl:variable name="sect_implementations" select="./refsect1[@role='implementations']"/> ++ <xsl:variable name="sect_properties" select="./refsect1[@role='properties']"/> ++ <xsl:variable name="sect_child_properties" select="./refsect1[@role='child_properties']"/> ++ <xsl:variable name="sect_style_properties" select="./refsect1[@role='style_properties']"/> ++ <xsl:variable name="sect_signal_proto" select="./refsect1[@role='signal_proto']"/> ++ <xsl:variable name="sect_desc" select="./refsect1[@role='desc']"/> ++ <xsl:variable name="sect_synopsis" select="./refsynopsisdiv[@role='synopsis']"/> + <!-- + <xsl:variable name="sect_details" select="./refsect1[@id='details']"/> + <xsl:variable name="sect_property_details" select="./refsect1[@id='property_details']"/> +@@ -296,72 +296,66 @@ + <td colspan="5" class="shortcuts"> + <nobr> + <xsl:if test="count($sect_synopsis) > 0"> +- <a href="#top_of_page" class="shortcut">Top</a> ++ <a href="#{generate-id(.//*[@role='top_of_page'])}" class="shortcut">Top</a> + </xsl:if> + <xsl:if test="count($sect_desc) > 0"> +  |  +- <a href="#desc" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='desc']/title"/> ++ <a href="#{generate-id(./refsect1[@role='desc'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='desc']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_object_hierarchy) > 0"> +  |  +- <a href="#object_hierarchy" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='object_hierarchy']/title"/> ++ <a href="#{generate-id(./refsect1[@role='object_hierarchy'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='object_hierarchy']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_impl_interfaces) > 0"> +  |  +- <a href="#impl_interfaces" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='impl_interfaces']/title"/> ++ <a href="#{generate-id(./refsect1[@role='impl_interfaces'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='impl_interfaces']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_prerequisites) > 0"> +  |  +- <a href="#object_prerequisites" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='object_prerequisites']/title"/> ++ <a href="#{generate-id(./refsect1[@role='object_prerequisites'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='object_prerequisites']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_derived_interfaces) > 0"> +  |  +- <a href="#derived_interfaces" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='derived_interfaces']/title"/> +- </a> +- </xsl:if> +- <xsl:if test="count($sect_impl_interfaces) > 0"> +-  |  +- <a href="#impl_interfaces" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='properties']/title"/> ++ <a href="#{generate-id(./refsect1[@role='derived_interfaces'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='derived_interfaces']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_implementations) > 0"> +  |  +- <a href="#implementations" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='implementations']/title"/> ++ <a href="#{generate-id(./refsect1[@role='implementations'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='implementations']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_properties) > 0"> +  |  +- <a href="#properties" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='properties']/title"/> ++ <a href="#{generate-id(./refsect1[@role='properties'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='properties']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_child_properties) > 0"> +  |  +- <a href="#child_properties" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='child_properties']/title"/> ++ <a href="#{generate-id(./refsect1[@role='child_properties'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='child_properties']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_style_properties) > 0"> +  |  +- <a href="#style_properties" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='style_properties']/title"/> ++ <a href="#{generate-id(./refsect1[@role='style_properties'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='style_properties']/title"/> + </a> + </xsl:if> + <xsl:if test="count($sect_signal_proto) > 0"> +  |  +- <a href="#signal_proto" class="shortcut"> +- <xsl:value-of select="./refsect1[@id='signal_proto']/title"/> ++ <a href="#{generate-id(./refsect1[@role='signal_proto'])}" class="shortcut"> ++ <xsl:value-of select="./refsect1[@role='signal_proto']/title"/> + </a> + </xsl:if> + <!-- +@@ -497,6 +491,13 @@ + </td></tr> + </table> + </div> ++ </xsl:template> ++ ++ <!-- Add anchor with ID. Note that elements such as refsect1 don't need this ++ since the docbook stylesheets should add it --> ++ <xsl:template match="*[@role='top_of_page']"> ++ <a name="{generate-id(.)}"/> ++ <xsl:apply-imports/> + </xsl:template> + + </xsl:stylesheet> +Index: gtkdoc-mkdb.in +=================================================================== +RCS file: /cvs/gnome/gtk-doc/gtkdoc-mkdb.in,v +retrieving revision 1.142 +diff -u -d -r1.142 gtkdoc-mkdb.in +--- gtkdoc-mkdb.in 21 May 2006 11:18:22 -0000 1.142 ++++ gtkdoc-mkdb.in 24 May 2006 23:35:19 -0000 +@@ -412,16 +412,16 @@ + + if ($signals_synop ne '') { + $signals_synop = <<EOF; +-<refsect1 id="signal_proto"> +-<title id="signal_proto.title">Signals</title> ++<refsect1 role="signal_proto"> ++<title role="signal_proto.title">Signals</title> + <synopsis> + + ${signals_synop}</synopsis> + </refsect1> + EOF + $signals_desc = <<EOF; +-<refsect1 id="signals"> +-<title id="signals.title">Signal Details</title> ++<refsect1 role="signals"> ++<title role="signals.title">Signal Details</title> + $signals_desc + </refsect1> + EOF +@@ -429,16 +429,16 @@ + + if ($args_synop ne '') { + $args_synop = <<EOF; +-<refsect1 id="properties"> +-<title id="properties.title">Properties</title> ++<refsect1 role="properties"> ++<title role="properties.title">Properties</title> + <synopsis> + + ${args_synop}</synopsis> + </refsect1> + EOF + $args_desc = <<EOF; +-<refsect1 id="property_details"> +-<title id="property_details.title">Property Details</title> ++<refsect1 role="property_details"> ++<title role="property_details.title">Property Details</title> + $args_desc + </refsect1> + EOF +@@ -446,16 +446,16 @@ + + if ($child_args_synop ne '') { + $args_synop .= <<EOF; +-<refsect1 id="child_properties"> +-<title id="child_properties.title">Child Properties</title> ++<refsect1 role="child_properties"> ++<title role="child_properties.title">Child Properties</title> + <synopsis> + + ${child_args_synop}</synopsis> + </refsect1> + EOF + $args_desc .= <<EOF; +-<refsect1 id="child_property_details"> +-<title id="child_property_details.title">Child Property Details</title> ++<refsect1 role="child_property_details"> ++<title role="child_property_details.title">Child Property Details</title> + $child_args_desc + </refsect1> + EOF +@@ -463,16 +463,16 @@ + + if ($style_args_synop ne '') { + $args_synop .= <<EOF; +-<refsect1 id="style_properties"> +-<title id="style_properties.title">Style Properties</title> ++<refsect1 role="style_properties"> ++<title role="style_properties.title">Style Properties</title> + <synopsis> + + ${style_args_synop}</synopsis> + </refsect1> + EOF + $args_desc .= <<EOF; +-<refsect1 id="style_properties_details"> +-<title id="style_properties_details.title">Style Property Details</title> ++<refsect1 role="style_properties_details"> ++<title role="style_properties_details.title">Style Property Details</title> + $style_args_desc + </refsect1> + EOF +@@ -480,8 +480,8 @@ + + if ($hierarchy ne "") { + $hierarchy = <<EOF; +-<refsect1 id="object_hierarchy"> +-<title id="object_hierarchy.title">Object Hierarchy</title> ++<refsect1 role="object_hierarchy"> ++<title role="object_hierarchy.title">Object Hierarchy</title> + $hierarchy + </refsect1> + EOF +@@ -489,8 +489,8 @@ + + if ($interfaces ne "") { + $interfaces = <<EOF; +-<refsect1 id="impl_interfaces"> +-<title id="impl_interfaces.title">Implemented Interfaces</title> ++<refsect1 role="impl_interfaces"> ++<title role="impl_interfaces.title">Implemented Interfaces</title> + $interfaces + </refsect1> + EOF +@@ -498,8 +498,8 @@ + + if ($implementations ne "") { + $implementations = <<EOF; +-<refsect1 id="implementations"> +-<title id="implementations.title">Known Implementations</title> ++<refsect1 role="implementations"> ++<title role="implementations.title">Known Implementations</title> + $implementations + </refsect1> + EOF +@@ -507,8 +507,8 @@ + + if ($prerequisites ne "") { + $prerequisites = <<EOF; +-<refsect1 id="prerequisites"> +-<title id="prerequisites.title">Prerequisites</title> ++<refsect1 role="prerequisites"> ++<title role="prerequisites.title">Prerequisites</title> + $prerequisites + </refsect1> + EOF +@@ -516,8 +516,8 @@ + + if ($derived ne "") { + $derived = <<EOF; +-<refsect1 id="derived_interfaces"> +-<title id="derived_interfaces.title">Known Derived Interfaces</title> ++<refsect1 role="derived_interfaces"> ++<title role="derived_interfaces.title">Known Derived Interfaces</title> + $derived + </refsect1> + EOF +@@ -1558,7 +1558,7 @@ + print OUTPUT <<EOF; + <refentry id="$section_id"> + <refmeta> +-<refentrytitle id="top_of_page">$title</refentrytitle> ++<refentrytitle role="top_of_page">$title</refentrytitle> + <manvolnum>3</manvolnum> + <refmiscinfo>\U$MODULE\E Library</refmiscinfo> + </refmeta> +@@ -1569,8 +1569,8 @@ + <!--[<xref linkend="desc" endterm="desc.title"/>]--> + </refnamediv> + $stability +-<refsynopsisdiv id="synopsis"> +-<title id="synopsis.title">Synopsis</title> ++<refsynopsisdiv role="synopsis"> ++<title role="synopsis.title">Synopsis</title> + $object_anchors + <synopsis> + +@@ -1587,13 +1587,13 @@ + $$args_synop + $$signals_synop + +-<refsect1 id="desc"> +-<title id="desc.title">Description</title> ++<refsect1 role="desc"> ++<title role="desc.title">Description</title> + $long_desc + </refsect1> + +-<refsect1 id="details"> +-<title id="details.title">Details</title> ++<refsect1 role="details"> ++<title role="details.title">Details</title> + $$details + </refsect1> + $$args_desc diff --git a/dev-util/gtk-doc/gtk-doc-1.6-r1.ebuild b/dev-util/gtk-doc/gtk-doc-1.6-r1.ebuild new file mode 100644 index 000000000000..6483cc9c90b4 --- /dev/null +++ b/dev-util/gtk-doc/gtk-doc-1.6-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/gtk-doc/gtk-doc-1.6-r1.ebuild,v 1.1 2006/05/29 09:36:26 leonardop Exp $ + +inherit eutils elisp-common gnome2 + +DESCRIPTION="GTK+ Documentation Generator" +HOMEPAGE="http://www.gtk.org/gtk-doc/" + +LICENSE="GPL-2 FDL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="doc emacs" + +RDEPEND=">=dev-lang/perl-5.6 + >=app-text/openjade-1.3.1 + dev-libs/libxslt + >=dev-libs/libxml2-2.3.6 + ~app-text/docbook-xml-dtd-4.1.2 + app-text/docbook-xsl-stylesheets + ~app-text/docbook-sgml-dtd-3.0 + >=app-text/docbook-dsssl-stylesheets-1.40 + emacs? ( virtual/emacs )" + +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.19 + >=app-text/scrollkeeper-0.3.5" + +SITEFILE="60gtk-doc-gentoo.el" + +DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO" + + +src_unpack() { + unpack "${A}" + cd "${S}" + + # Fix building of SGML manuals (bug #133825) and improve navigation header + # of XML manuals. + epatch "${FILESDIR}"/${P}-no_dupe_ids.patch +} + +src_compile() { + gnome2_src_compile + + use emacs && elisp-compile tools/gtk-doc.el +} + +src_install() { + gnome2_src_install + + if use doc; then + docinto doc + dodoc doc/* + docinto examples + dodoc examples/* + fi + + if use emacs; then + elisp-install ${PN} tools/gtk-doc.el* + elisp-site-file-install ${FILESDIR}/${SITEFILE} + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |