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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Sep 10 17:03:28 2011 UTC (3 years, 3 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
When doing 'make install', look for generated docs in builddir, bug #379415 by Michał Górny. Remove old.

(Portage version: 2.1.10.14/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.15-r2.ebuild,v 1.8 2011/01/28 10:25:02 xarthisius Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="2"
7
8 inherit autotools eutils elisp-common gnome2 python
9
10 DESCRIPTION="GTK+ Documentation Generator"
11 HOMEPAGE="http://www.gtk.org/gtk-doc/"
12
13 LICENSE="GPL-2 FDL-1.1"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm ~hppa ia64 m68k ~mips ~ppc ~ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16 IUSE="debug doc emacs highlight vim test"
17
18 # dev-tex/tex4ht blocker needed due bug #315287
19 RDEPEND=">=dev-libs/glib-2.6
20 >=dev-lang/perl-5.6
21 >=app-text/openjade-1.3.1
22 dev-libs/libxslt
23 >=dev-libs/libxml2-2.3.6
24 ~app-text/docbook-xml-dtd-4.3
25 app-text/docbook-xsl-stylesheets
26 ~app-text/docbook-sgml-dtd-3.0
27 >=app-text/docbook-dsssl-stylesheets-1.40
28 emacs? ( virtual/emacs )
29 highlight? (
30 vim? ( app-editors/vim )
31 !vim? ( dev-util/source-highlight )
32 )
33 !!<dev-tex/tex4ht-20090611_p1038-r1"
34
35 DEPEND="${RDEPEND}
36 ~dev-util/gtk-doc-am-${PV}
37 >=dev-util/pkgconfig-0.19
38 >=app-text/scrollkeeper-0.3.14
39 >=app-text/gnome-doc-utils-0.3.2
40 test? ( app-text/scrollkeeper-dtd )"
41
42 SITEFILE=61${PN}-gentoo.el
43
44 pkg_setup() {
45 DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
46 if use vim; then
47 G2CONF="${G2CONF} $(use_with highlight highlight vim)"
48 else
49 G2CONF="${G2CONF} $(use_with highlight highlight source-highlight)"
50 fi
51 python_set_active_version 2
52 }
53
54 src_prepare() {
55 gnome2_src_prepare
56
57 # Remove global Emacs keybindings.
58 epatch "${FILESDIR}/${PN}-1.8-emacs-keybindings.patch"
59
60 # Fix bug 306569 by not loading vim plugins while calling vim in
61 # gtkdoc-fixxref for fixing vim syntax highlighting
62 # Also fix incompatibility with vim-7.3 (bug #333313)
63 epatch "${FILESDIR}/${PN}-1.15-fixxref-vim-fixes.patch"
64
65 # Allow selection of specific highlighter, bug #334489
66 # In upstream's master
67 epatch "${FILESDIR}/${PN}-1.15-allow-selection-highlighter.patch"
68
69 eautoreconf
70 }
71
72 src_compile() {
73 gnome2_src_compile
74
75 use emacs && elisp-compile tools/gtk-doc.el
76 }
77
78 src_install() {
79 gnome2_src_install
80
81 python_convert_shebangs 2 "${D}"/usr/bin/gtkdoc-depscan
82
83 # Don't install those files, they are in gtk-doc-am now
84 rm "${D}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
85 rm "${D}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase"
86
87 if use doc; then
88 docinto doc
89 dodoc doc/*
90 docinto examples
91 dodoc examples/*
92 fi
93
94 if use emacs; then
95 elisp-install ${PN} tools/gtk-doc.el*
96 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
97 fi
98 }
99
100 pkg_postinst() {
101 if use emacs; then
102 elisp-site-regen
103 elog "gtk-doc does no longer define global key bindings for Emacs."
104 elog "You may set your own key bindings for \"gtk-doc-insert\" and"
105 elog "\"gtk-doc-insert-section\" in your ~/.emacs file."
106 fi
107 }
108
109 pkg_postrm() {
110 use emacs && elisp-site-regen
111 }

  ViewVC Help
Powered by ViewVC 1.1.20