/[gentoo-x86]/dev-util/gtk-doc/gtk-doc-1.13-r2.ebuild
Gentoo

Contents of /dev-util/gtk-doc/gtk-doc-1.13-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Nov 14 15:40:27 2010 UTC (4 years, 1 month ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Fix automagic highlighting program detection, bug #334489. Handle multi-slot python. Clean up old revisions.

(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/gtk-doc/gtk-doc-1.13-r2.ebuild,v 1.9 2010/09/02 12:36:59 pacho Exp $
4
5 EAPI="2"
6
7 inherit eutils elisp-common gnome2
8
9 DESCRIPTION="GTK+ Documentation Generator"
10 HOMEPAGE="http://www.gtk.org/gtk-doc/"
11
12 LICENSE="GPL-2 FDL-1.1"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
15 IUSE="debug doc emacs test"
16
17 # app-editors/vim blocker needed due bug #333313
18 RDEPEND=">=dev-libs/glib-2.6
19 >=dev-lang/perl-5.6
20 >=app-text/openjade-1.3.1
21 dev-libs/libxslt
22 >=dev-libs/libxml2-2.3.6
23 ~app-text/docbook-xml-dtd-4.3
24 app-text/docbook-xsl-stylesheets
25 ~app-text/docbook-sgml-dtd-3.0
26 >=app-text/docbook-dsssl-stylesheets-1.40
27 emacs? ( virtual/emacs )
28 !!>=app-editors/vim-7.3"
29
30 DEPEND="${RDEPEND}
31 ~dev-util/gtk-doc-am-${PV}
32 >=dev-util/pkgconfig-0.19
33 >=app-text/scrollkeeper-0.3.14
34 >=app-text/gnome-doc-utils-0.3.2
35 test? ( app-text/scrollkeeper-dtd )"
36
37 SITEFILE=61${PN}-gentoo.el
38
39 DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
40
41 src_prepare() {
42 gnome2_src_prepare
43
44 # Remove global Emacs keybindings.
45 epatch "${FILESDIR}/${PN}-1.8-emacs-keybindings.patch"
46
47 # gtk-doc.make puts $(DOC_MODULE)-overrides.txt in EXTRA_DIST,
48 # so this file must exist to be able to "make dist".
49 # fix bug #305191, upstream ##590625.
50 epatch "${FILESDIR}/${P}-scan-touch-module-overrides.patch"
51 # This restores a compatible behavior with previous versions of gtk-doc,
52 # which is required by many tarballs, fix bug #305191, upstream #605211
53 epatch "${FILESDIR}/${P}-fixxref-compat.patch"
54
55 # Fix bug 306569 by not loading vim plugins while calling vim in
56 # gtkdoc-fixxref for fixing vim syntax highlighting
57 epatch "${FILESDIR}/${P}-fixxref-vim-u-NONE.patch"
58 }
59
60 src_compile() {
61 gnome2_src_compile
62
63 use emacs && elisp-compile tools/gtk-doc.el
64 }
65
66 src_install() {
67 gnome2_src_install
68
69 # Don't install those files, they are in gtk-doc-am now
70 rm "${D}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
71 rm "${D}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase"
72
73 if use doc; then
74 docinto doc
75 dodoc doc/*
76 docinto examples
77 dodoc examples/*
78 fi
79
80 if use emacs; then
81 elisp-install ${PN} tools/gtk-doc.el*
82 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
83 fi
84 }
85
86 pkg_postinst() {
87 if use emacs; then
88 elisp-site-regen
89 elog "gtk-doc does no longer define global key bindings for Emacs."
90 elog "You may set your own key bindings for \"gtk-doc-insert\" and"
91 elog "\"gtk-doc-insert-section\" in your ~/.emacs file."
92 fi
93 }
94
95 pkg_postrm() {
96 use emacs && elisp-site-regen
97 }

  ViewVC Help
Powered by ViewVC 1.1.20