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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri May 4 17:51:45 2012 UTC (23 months, 1 week ago) by jdhore
Branch: MAIN
Changes since 1.1: +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-r1.ebuild,v 1.1 2011/09/10 17:03:28 pacho 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 # When doing 'make install', look for generated docs in builddir.
62 epatch "${FILESDIR}/${PN}-1.17-buildir-docs.patch"
63 }
64
65 src_compile() {
66 gnome2_src_compile
67
68 use emacs && elisp-compile tools/gtk-doc.el
69 }
70
71 src_install() {
72 gnome2_src_install
73
74 python_convert_shebangs 2 "${ED}"/usr/bin/gtkdoc-depscan
75
76 # Don't install those files, they are in gtk-doc-am now
77 rm "${ED}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
78 rm "${ED}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase"
79
80 if use doc; then
81 docinto doc
82 dodoc doc/* || die
83 docinto examples
84 dodoc examples/* || die
85 fi
86
87 if use emacs; then
88 elisp-install ${PN} tools/gtk-doc.el*
89 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
90 fi
91 }
92
93 pkg_postinst() {
94 if use emacs; then
95 elisp-site-regen
96 elog "gtk-doc does no longer define global key bindings for Emacs."
97 elog "You may set your own key bindings for \"gtk-doc-insert\" and"
98 elog "\"gtk-doc-insert-section\" in your ~/.emacs file."
99 fi
100 }
101
102 pkg_postrm() {
103 use emacs && elisp-site-regen
104 }

  ViewVC Help
Powered by ViewVC 1.1.20