blob: 174942ff33e119f2c22b0039b0baec5c7f193f0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/gnome-doc-utils-0.20.10-r1.ebuild,v 1.5 2013/12/08 17:47:56 pacho Exp $
EAPI="5"
GCONF_DEBUG="no"
PYTHON_COMPAT=( python2_{6,7} )
inherit gnome2 multibuild python-r1
DESCRIPTION="A collection of documentation utilities for the Gnome project"
HOMEPAGE="http://live.gnome.org/GnomeDocUtils"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND="
${PYTHON_DEPS}
>=dev-libs/libxml2-2.6.12[python,${PYTHON_USEDEP}]
>=dev-libs/libxslt-1.1.8
"
DEPEND="${RDEPEND}
app-text/docbook-xml-dtd:4.4
app-text/scrollkeeper-dtd
>=dev-util/intltool-0.35
sys-devel/gettext
virtual/awk
virtual/pkgconfig
"
# dev-libs/glib needed for eautofoo, bug #255114.
# If there is a need to reintroduce eautomake or eautoreconf, make sure
# to AT_M4DIR="tools m4", bug #224609 (m4 removes glib build time dep)
src_prepare() {
# Stop build from relying on installed package
epatch "${FILESDIR}"/${P}-fix-out-of-tree-build.patch
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 default
}
src_install() {
dodoc AUTHORS ChangeLog NEWS README
python_foreach_impl run_in_build_dir gnome2_src_install
python_replicate_script "${ED}"/usr/bin/xml2po
}
|