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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Sep 10 17:03:28 2011 UTC (2 years, 9 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +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-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.15.ebuild,v 1.10 2010/10/17 14:54:14 armin76 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 # dev-tex/tex4ht blocker needed due bug #315287
18 # app-editors/vim blocker needed due bug #333313
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 !!<dev-tex/tex4ht-20090611_p1038-r1
30 !!>=app-editors/vim-7.3"
31
32 DEPEND="${RDEPEND}
33 ~dev-util/gtk-doc-am-${PV}
34 >=dev-util/pkgconfig-0.19
35 >=app-text/scrollkeeper-0.3.14
36 >=app-text/gnome-doc-utils-0.3.2
37 test? ( app-text/scrollkeeper-dtd )"
38
39 SITEFILE=61${PN}-gentoo.el
40
41 DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
42
43 src_prepare() {
44 gnome2_src_prepare
45
46 # Remove global Emacs keybindings.
47 epatch "${FILESDIR}/${PN}-1.8-emacs-keybindings.patch"
48
49 # Fix bug 306569 by not loading vim plugins while calling vim in
50 # gtkdoc-fixxref for fixing vim syntax highlighting
51 epatch "${FILESDIR}/${PN}-1.13-fixxref-vim-u-NONE.patch"
52 }
53
54 src_compile() {
55 gnome2_src_compile
56
57 use emacs && elisp-compile tools/gtk-doc.el
58 }
59
60 src_install() {
61 gnome2_src_install
62
63 # Don't install those files, they are in gtk-doc-am now
64 rm "${D}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
65 rm "${D}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase"
66
67 if use doc; then
68 docinto doc
69 dodoc doc/*
70 docinto examples
71 dodoc examples/*
72 fi
73
74 if use emacs; then
75 elisp-install ${PN} tools/gtk-doc.el*
76 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
77 fi
78 }
79
80 pkg_postinst() {
81 if use emacs; then
82 elisp-site-regen
83 elog "gtk-doc does no longer define global key bindings for Emacs."
84 elog "You may set your own key bindings for \"gtk-doc-insert\" and"
85 elog "\"gtk-doc-insert-section\" in your ~/.emacs file."
86 fi
87 }
88
89 pkg_postrm() {
90 use emacs && elisp-site-regen
91 }

  ViewVC Help
Powered by ViewVC 1.1.20