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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri May 4 17:51:45 2012 UTC (2 years, 3 months ago) by jdhore
Branch: MAIN
Changes since 1.10: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 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.17.ebuild,v 1.10 2011/09/12 15:37:52 xarthisius Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7
8 inherit 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 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris"
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:2
20 >=dev-lang/perl-5.6
21 >=app-text/openjade-1.3.1
22 dev-libs/libxslt
23 >=dev-libs/libxml2-2.3.6:2
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 app-editors/gvim ) )
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 virtual/pkgconfig
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 G2CONF+=" --with-xml-catalog=${EPREFIX}/etc/xml/catalog"
52 python_set_active_version 2
53 }
54
55 src_prepare() {
56 gnome2_src_prepare
57
58 # Remove global Emacs keybindings.
59 epatch "${FILESDIR}/${PN}-1.8-emacs-keybindings.patch"
60 }
61
62 src_compile() {
63 gnome2_src_compile
64
65 use emacs && elisp-compile tools/gtk-doc.el
66 }
67
68 src_install() {
69 gnome2_src_install
70
71 python_convert_shebangs 2 "${ED}"/usr/bin/gtkdoc-depscan
72
73 # Don't install those files, they are in gtk-doc-am now
74 rm "${ED}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
75 rm "${ED}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase"
76
77 if use doc; then
78 docinto doc
79 dodoc doc/* || die
80 docinto examples
81 dodoc examples/* || die
82 fi
83
84 if use emacs; then
85 elisp-install ${PN} tools/gtk-doc.el*
86 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
87 fi
88 }
89
90 pkg_postinst() {
91 if use emacs; then
92 elisp-site-regen
93 elog "gtk-doc does no longer define global key bindings for Emacs."
94 elog "You may set your own key bindings for \"gtk-doc-insert\" and"
95 elog "\"gtk-doc-insert-section\" in your ~/.emacs file."
96 fi
97 }
98
99 pkg_postrm() {
100 use emacs && elisp-site-regen
101 }

  ViewVC Help
Powered by ViewVC 1.1.20