| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/gnome-doc-utils-0.20.10.ebuild,v 1.10 2012/07/15 16:33:30 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
GCONF_DEBUG="no"
|
| 7 |
PYTHON_DEPEND="2:2.5"
|
| 8 |
SUPPORT_PYTHON_ABIS="1"
|
| 9 |
RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
|
| 10 |
|
| 11 |
inherit gnome2 python
|
| 12 |
|
| 13 |
DESCRIPTION="A collection of documentation utilities for the Gnome project"
|
| 14 |
HOMEPAGE="http://live.gnome.org/GnomeDocUtils"
|
| 15 |
|
| 16 |
LICENSE="GPL-2 LGPL-2.1"
|
| 17 |
SLOT="0"
|
| 18 |
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"
|
| 19 |
IUSE=""
|
| 20 |
|
| 21 |
RDEPEND=">=dev-libs/libxml2-2.6.12[python]
|
| 22 |
>=dev-libs/libxslt-1.1.8
|
| 23 |
"
|
| 24 |
DEPEND="${RDEPEND}
|
| 25 |
>=dev-util/intltool-0.35
|
| 26 |
app-text/docbook-xml-dtd:4.4
|
| 27 |
app-text/scrollkeeper-dtd
|
| 28 |
sys-devel/gettext
|
| 29 |
virtual/awk
|
| 30 |
virtual/pkgconfig"
|
| 31 |
# dev-libs/glib needed for eautofoo, bug #255114.
|
| 32 |
|
| 33 |
# If there is a need to reintroduce eautomake or eautoreconf, make sure
|
| 34 |
# to AT_M4DIR="tools m4", bug #224609 (m4 removes glib build time dep)
|
| 35 |
|
| 36 |
pkg_setup() {
|
| 37 |
DOCS="AUTHORS ChangeLog NEWS README"
|
| 38 |
G2CONF="${G2CONF} --disable-scrollkeeper"
|
| 39 |
python_pkg_setup
|
| 40 |
}
|
| 41 |
|
| 42 |
src_prepare() {
|
| 43 |
gnome2_src_prepare
|
| 44 |
|
| 45 |
python_clean_py-compile_files
|
| 46 |
|
| 47 |
python_copy_sources
|
| 48 |
}
|
| 49 |
|
| 50 |
src_configure() {
|
| 51 |
python_execute_function -s gnome2_src_configure
|
| 52 |
}
|
| 53 |
|
| 54 |
src_compile() {
|
| 55 |
python_execute_function -d -s
|
| 56 |
}
|
| 57 |
|
| 58 |
src_test() {
|
| 59 |
python_execute_function -d -s
|
| 60 |
}
|
| 61 |
|
| 62 |
src_install() {
|
| 63 |
installation() {
|
| 64 |
gnome2_src_install
|
| 65 |
python_convert_shebangs $(python_get_version) "${ED}"usr/bin/xml2po
|
| 66 |
mv "${ED}"usr/bin/xml2po "${ED}"usr/bin/xml2po-$(python_get_version)
|
| 67 |
}
|
| 68 |
python_execute_function -s installation
|
| 69 |
python_clean_installation_image
|
| 70 |
|
| 71 |
python_generate_wrapper_scripts -E -f "${ED}"usr/bin/xml2po
|
| 72 |
}
|
| 73 |
|
| 74 |
pkg_postinst() {
|
| 75 |
python_mod_optimize xml2po
|
| 76 |
gnome2_pkg_postinst
|
| 77 |
}
|
| 78 |
|
| 79 |
pkg_postrm() {
|
| 80 |
python_mod_cleanup xml2po
|
| 81 |
gnome2_pkg_postrm
|
| 82 |
}
|