From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-900402-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 230AC138330 for <garchives@archives.gentoo.org>; Wed, 7 Sep 2016 22:32:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C589D21C0B9; Wed, 7 Sep 2016 22:32:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E4C7521C0C6 for <gentoo-commits@lists.gentoo.org>; Wed, 7 Sep 2016 22:32:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B08C340B3F for <gentoo-commits@lists.gentoo.org>; Wed, 7 Sep 2016 22:32:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 496B42469 for <gentoo-commits@lists.gentoo.org>; Wed, 7 Sep 2016 22:32:16 +0000 (UTC) From: "Gilles Dartiguelongue" <eva@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gilles Dartiguelongue" <eva@gentoo.org> Message-ID: <1473287510.5c7bef543b7c7956efb1b5af38e45d99b16da253.eva@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/gtk-doc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild X-VCS-Directories: dev-util/gtk-doc/ X-VCS-Committer: eva X-VCS-Committer-Name: Gilles Dartiguelongue X-VCS-Revision: 5c7bef543b7c7956efb1b5af38e45d99b16da253 X-VCS-Branch: master Date: Wed, 7 Sep 2016 22:32:16 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8acdd3a9-ccb2-494b-9c9a-9e266a50dd30 X-Archives-Hash: e5c3923be5334388802fa2343f2091be commit: 5c7bef543b7c7956efb1b5af38e45d99b16da253 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> AuthorDate: Wed Sep 7 22:11:08 2016 +0000 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> CommitDate: Wed Sep 7 22:31:50 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c7bef54 dev-util/gtk-doc: version bump to 1.25-r1 Switch to EAPI=6. Fix dependencies per configure. USE=debug is a "true" yes/no option, no the kind from Gnome. Package-Manager: portage-2.3.0 dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild | 110 ++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild b/dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild new file mode 100644 index 00000000..ab37796 --- /dev/null +++ b/dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit eutils elisp-common gnome2 python-single-r1 readme.gentoo-r1 + +DESCRIPTION="GTK+ Documentation Generator" +HOMEPAGE="http://www.gtk.org/gtk-doc/" + +LICENSE="GPL-2 FDL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris" + +IUSE="debug doc emacs highlight vim" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/glib-2.6:2 + >=dev-lang/perl-5.18 + dev-libs/libxslt + >=dev-libs/libxml2-2.3.6:2 + ~app-text/docbook-xml-dtd-4.3 + app-text/docbook-xsl-stylesheets + ~app-text/docbook-sgml-dtd-3.0 + >=app-text/docbook-dsssl-stylesheets-1.40 + emacs? ( virtual/emacs ) + highlight? ( + vim? ( || ( app-editors/vim app-editors/gvim ) ) + !vim? ( dev-util/source-highlight ) + ) +" +DEPEND="${RDEPEND} + ~dev-util/gtk-doc-am-${PV} + app-text/yelp-tools + virtual/pkgconfig +" + +pkg_setup() { + DOC_CONTENTS="gtk-doc does no longer define global key bindings for Emacs. + You may set your own key bindings for \"gtk-doc-insert\" and + \"gtk-doc-insert-section\" in your ~/.emacs file." + SITEFILE=61${PN}-gentoo.el + python-single-r1_pkg_setup +} + +src_prepare() { + # Remove global Emacs keybindings, bug #184588 + eapply "${FILESDIR}"/${PN}-1.8-emacs-keybindings.patch + + gnome2_src_prepare +} + +src_configure() { + local myconf + if use vim; then + myconf="${myconf} $(use_with highlight highlight vim)" + else + myconf="${myconf} $(use_with highlight highlight source-highlight)" + fi + + gnome2_src_configure \ + --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \ + $(use_enable debug) \ + ${myconf} +} + +src_compile() { + gnome2_src_compile + use emacs && elisp-compile tools/gtk-doc.el +} + +src_install() { + gnome2_src_install + + python_fix_shebang "${ED}"/usr/bin/gtkdoc-depscan + + # Don't install those files, they are in gtk-doc-am now + rm "${ED}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4" + rm "${ED}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase" + + if use doc; then + docinto doc + dodoc doc/* + docinto examples + dodoc examples/* + fi + + if use emacs; then + elisp-install ${PN} tools/gtk-doc.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + readme.gentoo_create_doc + fi +} + +pkg_postinst() { + gnome2_pkg_postinst + if use emacs; then + elisp-site-regen + readme.gentoo_print_elog + fi +} + +pkg_postrm() { + gnome2_pkg_postrm + use emacs && elisp-site-regen +}