From 9b071d5a48b6c1127b23acf4cc50bf915cf0cb44 Mon Sep 17 00:00:00 2001 From: Tom Wijsman Date: Fri, 28 Feb 2014 13:38:12 +0000 Subject: New ebuild for app-text/mate-doc-utils, Documentation utilities for MATE; imported from the mate-overlay, reviewed and adjusted. (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) --- app-text/mate-doc-utils/ChangeLog | 10 +++ .../mate-doc-utils/mate-doc-utils-1.6.2.ebuild | 78 ++++++++++++++++++++++ app-text/mate-doc-utils/metadata.xml | 8 +++ 3 files changed, 96 insertions(+) create mode 100644 app-text/mate-doc-utils/ChangeLog create mode 100644 app-text/mate-doc-utils/mate-doc-utils-1.6.2.ebuild create mode 100644 app-text/mate-doc-utils/metadata.xml diff --git a/app-text/mate-doc-utils/ChangeLog b/app-text/mate-doc-utils/ChangeLog new file mode 100644 index 000000000000..7e3b2eee78de --- /dev/null +++ b/app-text/mate-doc-utils/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-text/mate-doc-utils +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/mate-doc-utils/ChangeLog,v 1.1 2014/02/28 13:38:12 tomwij Exp $ + +*mate-doc-utils-1.6.2 (28 Feb 2014) + + 28 Feb 2014; Tom Wijsman +mate-doc-utils-1.6.2.ebuild, + +metadata.xml: + New ebuild for app-text/mate-doc-utils, Documentation utilities for MATE; + imported from the mate-overlay, reviewed and adjusted. diff --git a/app-text/mate-doc-utils/mate-doc-utils-1.6.2.ebuild b/app-text/mate-doc-utils/mate-doc-utils-1.6.2.ebuild new file mode 100644 index 000000000000..85872e7e730f --- /dev/null +++ b/app-text/mate-doc-utils/mate-doc-utils-1.6.2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/mate-doc-utils/mate-doc-utils-1.6.2.ebuild,v 1.1 2014/02/28 13:38:12 tomwij Exp $ + +EAPI="5" + +GCONF_DEBUG="no" +PYTHON_COMPAT=( python2_{6,7} ) + +inherit gnome2 multilib python-r1 versionator + +MATE_BRANCH="$(get_version_component_range 1-2)" + +SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz" +DESCRIPTION="Documentation utilities for MATE" +HOMEPAGE="http://mate-desktop.org" + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="${PYTHON_DEPS} + >=app-text/gnome-doc-utils-0.20.10:0[${PYTHON_USEDEP}] + >=dev-libs/libxml2-2.6.12:2[python,${PYTHON_USEDEP}] + >=dev-libs/libxslt-1.1.8:0 + virtual/libintl:0" + +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.4 + app-text/rarian:0 + app-text/scrollkeeper-dtd:1.0 + >=dev-util/intltool-0.35:0 + >=mate-base/mate-common-1.5.0:0 + >=sys-apps/gawk-3:0 + sys-devel/gettext:0 + virtual/pkgconfig:0" + +src_prepare() { + gnome2_src_prepare + + # Leave shebang alone. + sed -e '/s+^#!.*python.*+#/d' \ + -i xml2po/xml2po/Makefile.{am,in} || die + + python_prepare() { + mkdir -p "${BUILD_DIR}" + } + + python_foreach_impl python_prepare +} + +src_configure() { + ECONF_SOURCE="${S}" python_foreach_impl run_in_build_dir gnome2_src_configure +} + +src_compile() { + python_foreach_impl run_in_build_dir gnome2_src_compile +} + +src_test() { + python_foreach_impl run_in_build_dir emake check +} + +src_install() { + dodoc AUTHORS ChangeLog NEWS README + + python_foreach_impl run_in_build_dir gnome2_src_install + + # Uncomment the below line when we stop relying on gnome-doc-utils. + #python_replicate_script "${ED}"/usr/bin/xml2po + + # Remove xml2po, already provided by gnome-doc-utils. + rm -rf "${ED}"usr/$(get_libdir)/python*/site-packages/xml2po || die + rm -rf "${ED}"usr/bin/xml2po || die + rm -rf "${ED}"usr/share/man/man*/xml2po* || die + rm -rf "${ED}"usr/share/pkgconfig/xml2po* || die + rm -rf "${ED}"usr/share/xml/mallard/*/mallard.{rnc,rng} || die +} diff --git a/app-text/mate-doc-utils/metadata.xml b/app-text/mate-doc-utils/metadata.xml new file mode 100644 index 000000000000..dca1781cb290 --- /dev/null +++ b/app-text/mate-doc-utils/metadata.xml @@ -0,0 +1,8 @@ + + + + + TomWij@gentoo.org + Tom Wijsman + + -- cgit v1.2.3-65-gdbad