| 1 |
# Copyright 1999-2007 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.8-r1.ebuild,v 1.1 2007/07/30 19:02:36 dang 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"
|
| 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 |
src_unpack() {
|
| 34 |
gnome2_src_unpack
|
| 35 |
|
| 36 |
# Remove global Emacs keybindings.
|
| 37 |
epatch "${FILESDIR}"/${P}-emacs-keybindings.patch
|
| 38 |
}
|
| 39 |
|
| 40 |
src_compile() {
|
| 41 |
gnome2_src_compile
|
| 42 |
|
| 43 |
use emacs && elisp-compile tools/gtk-doc.el
|
| 44 |
}
|
| 45 |
|
| 46 |
src_install() {
|
| 47 |
gnome2_src_install
|
| 48 |
|
| 49 |
if use doc; then
|
| 50 |
docinto doc
|
| 51 |
dodoc doc/*
|
| 52 |
docinto examples
|
| 53 |
dodoc examples/*
|
| 54 |
fi
|
| 55 |
|
| 56 |
if use emacs; then
|
| 57 |
elisp-install ${PN} tools/gtk-doc.el*
|
| 58 |
elisp-site-file-install ${FILESDIR}/${SITEFILE}
|
| 59 |
fi
|
| 60 |
}
|
| 61 |
|
| 62 |
pkg_postinst() {
|
| 63 |
if use emacs; then
|
| 64 |
elisp-site-regen
|
| 65 |
elog "gtk-doc does no longer define global key bindings for Emacs."
|
| 66 |
elog "You may set your own key bindings for \"gtk-doc-insert\" and"
|
| 67 |
elog "\"gtk-doc-insert-section\" in your ~/.emacs file."
|
| 68 |
fi
|
| 69 |
}
|
| 70 |
|
| 71 |
pkg_postrm() {
|
| 72 |
use emacs && elisp-site-regen
|
| 73 |
}
|