| 1 |
# Copyright 1999-2008 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.10.ebuild,v 1.1 2008/03/19 23:40:36 leio Exp $ |
| 4 |
|
| 5 |
inherit eutils elisp-common gnome2 |
| 6 |
|
| 7 |
DESCRIPTION="GTK+ Documentation Generator" |
| 8 |
HOMEPAGE="http://www.gtk.org/gtk-doc/" |
| 9 |
|
| 10 |
LICENSE="GPL-2 FDL-1.1" |
| 11 |
SLOT="0" |
| 12 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
| 13 |
IUSE="doc emacs" |
| 14 |
|
| 15 |
RDEPEND=">=dev-lang/perl-5.6 |
| 16 |
>=app-text/openjade-1.3.1 |
| 17 |
dev-libs/libxslt |
| 18 |
>=dev-libs/libxml2-2.3.6 |
| 19 |
~app-text/docbook-xml-dtd-4.1.2 |
| 20 |
app-text/docbook-xsl-stylesheets |
| 21 |
~app-text/docbook-sgml-dtd-3.0 |
| 22 |
>=app-text/docbook-dsssl-stylesheets-1.40 |
| 23 |
emacs? ( virtual/emacs )" |
| 24 |
|
| 25 |
DEPEND="${RDEPEND} |
| 26 |
>=dev-util/pkgconfig-0.19 |
| 27 |
>=app-text/scrollkeeper-0.3.5" |
| 28 |
|
| 29 |
SITEFILE=61${PN}-gentoo.el |
| 30 |
|
| 31 |
DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO" |
| 32 |
|
| 33 |
# Revisit this in next version. Might be related to upstream bug 521784 and/or 485806 |
| 34 |
RESTRICT="test" |
| 35 |
|
| 36 |
src_unpack() { |
| 37 |
gnome2_src_unpack |
| 38 |
|
| 39 |
# Remove global Emacs keybindings. |
| 40 |
epatch "${FILESDIR}"/${PN}-1.8-emacs-keybindings.patch |
| 41 |
} |
| 42 |
|
| 43 |
src_compile() { |
| 44 |
gnome2_src_compile |
| 45 |
|
| 46 |
use emacs && elisp-compile tools/gtk-doc.el |
| 47 |
} |
| 48 |
|
| 49 |
src_install() { |
| 50 |
gnome2_src_install |
| 51 |
|
| 52 |
if use doc; then |
| 53 |
docinto doc |
| 54 |
dodoc doc/* |
| 55 |
docinto examples |
| 56 |
dodoc examples/* |
| 57 |
fi |
| 58 |
|
| 59 |
if use emacs; then |
| 60 |
elisp-install ${PN} tools/gtk-doc.el* |
| 61 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
| 62 |
fi |
| 63 |
} |
| 64 |
|
| 65 |
pkg_postinst() { |
| 66 |
if use emacs; then |
| 67 |
elisp-site-regen |
| 68 |
elog "gtk-doc does no longer define global key bindings for Emacs." |
| 69 |
elog "You may set your own key bindings for \"gtk-doc-insert\" and" |
| 70 |
elog "\"gtk-doc-insert-section\" in your ~/.emacs file." |
| 71 |
fi |
| 72 |
} |
| 73 |
|
| 74 |
pkg_postrm() { |
| 75 |
use emacs && elisp-site-regen |
| 76 |
} |