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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Aug 15 21:09:29 2010 UTC (3 years, 11 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Clean up old revision.
(Portage version: 2.2_rc67/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-r1.ebuild,v 1.1 2010/02/16 20:06:54 mrpouet 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 RDEPEND=">=dev-libs/glib-2.6
18 >=dev-lang/perl-5.6
19 >=app-text/openjade-1.3.1
20 dev-libs/libxslt
21 >=dev-libs/libxml2-2.3.6
22 ~app-text/docbook-xml-dtd-4.3
23 app-text/docbook-xsl-stylesheets
24 ~app-text/docbook-sgml-dtd-3.0
25 >=app-text/docbook-dsssl-stylesheets-1.40
26 emacs? ( virtual/emacs )"
27
28 DEPEND="${RDEPEND}
29 ~dev-util/gtk-doc-am-${PV}
30 >=dev-util/pkgconfig-0.19
31 >=app-text/scrollkeeper-0.3.14
32 >=app-text/gnome-doc-utils-0.3.2
33 test? ( app-text/scrollkeeper-dtd )"
34
35 SITEFILE=61${PN}-gentoo.el
36
37 DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
38
39 src_prepare() {
40 gnome2_src_prepare
41
42 # Remove global Emacs keybindings.
43 epatch "${FILESDIR}/${PN}-1.8-emacs-keybindings.patch"
44
45 # gtk-doc.make puts $(DOC_MODULE)-overrides.txt in EXTRA_DIST,
46 # so this file must exist to be able to "make dist".
47 # fix bug #305191, upstream ##590625.
48 epatch "${FILESDIR}/${P}-scan-touch-module-overrides.patch"
49 # This restores a compatible behavior with previous versions of gtk-doc,
50 # which is required by many tarballs, fix bug #305191, upstream #605211
51 epatch "${FILESDIR}/${P}-fixxref-compat.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