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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri May 4 17:51:45 2012 UTC (2 years, 7 months ago) by jdhore
Branch: MAIN
Changes since 1.7: +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.18.ebuild,v 1.7 2011/10/30 15:35:30 armin76 Exp $
4
5 EAPI="3"
6 GCONF_DEBUG="yes"
7 GNOME_TARBALL_SUFFIX="xz"
8 PYTHON_DEPEND="2"
9
10 inherit eutils elisp-common gnome2 python
11
12 DESCRIPTION="GTK+ Documentation Generator"
13 HOMEPAGE="http://www.gtk.org/gtk-doc/"
14
15 LICENSE="GPL-2 FDL-1.1"
16 SLOT="0"
17 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"
18 IUSE="debug doc emacs highlight vim test"
19
20 # dev-tex/tex4ht blocker needed due bug #315287
21 RDEPEND=">=dev-libs/glib-2.6:2
22 >=dev-lang/perl-5.6
23 >=app-text/openjade-1.3.1
24 dev-libs/libxslt
25 >=dev-libs/libxml2-2.3.6:2
26 ~app-text/docbook-xml-dtd-4.3
27 app-text/docbook-xsl-stylesheets
28 ~app-text/docbook-sgml-dtd-3.0
29 >=app-text/docbook-dsssl-stylesheets-1.40
30 emacs? ( virtual/emacs )
31 highlight? (
32 vim? ( || ( app-editors/vim app-editors/gvim ) )
33 !vim? ( dev-util/source-highlight )
34 )
35 !!<dev-tex/tex4ht-20090611_p1038-r1"
36
37 DEPEND="${RDEPEND}
38 ~dev-util/gtk-doc-am-${PV}
39 virtual/pkgconfig
40 >=app-text/scrollkeeper-0.3.14
41 >=app-text/gnome-doc-utils-0.3.2
42 test? ( app-text/scrollkeeper-dtd )"
43
44 pkg_setup() {
45 SITEFILE=61${PN}-gentoo.el
46 DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
47
48 if use vim; then
49 G2CONF="${G2CONF} $(use_with highlight highlight vim)"
50 else
51 G2CONF="${G2CONF} $(use_with highlight highlight source-highlight)"
52 fi
53 G2CONF+=" --with-xml-catalog=${EPREFIX}/etc/xml/catalog"
54
55 python_set_active_version 2
56 }
57
58 src_prepare() {
59 gnome2_src_prepare
60
61 # Remove global Emacs keybindings.
62 epatch "${FILESDIR}/${PN}-1.8-emacs-keybindings.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