76 lines
1.9 KiB
Bash
76 lines
1.9 KiB
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmateweather/libmateweather-1.6.2.ebuild,v 1.5 2014/05/04 14:53:15 ago Exp $
|
|
|
|
EAPI="5"
|
|
|
|
GCONF_DEBUG="yes"
|
|
GNOME2_LA_PUNT="yes"
|
|
PYTHON_COMPAT=( python2_{6,7} )
|
|
|
|
inherit autotools gnome2 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="MATE library to access weather information from online services"
|
|
HOMEPAGE="http://mate-desktop.org"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64"
|
|
|
|
IUSE="python"
|
|
|
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
|
|
RDEPEND=">=dev-libs/glib-2.13:2[${PYTHON_USEDEP}]
|
|
>=dev-libs/libxml2-2.6:2
|
|
>=net-libs/libsoup-2.42.1:2.4
|
|
>=net-libs/libsoup-gnome-2.25.1:2.4
|
|
>=sys-libs/timezone-data-2010k:0
|
|
x11-libs/gdk-pixbuf:2
|
|
>=x11-libs/gtk+-2.11:2
|
|
virtual/libintl:0
|
|
|
|
python? (
|
|
${PYTHON_DEPS}
|
|
>=dev-python/pygobject-2:2[${PYTHON_USEDEP}]
|
|
>=dev-python/pygtk-2:2[${PYTHON_USEDEP}]
|
|
)"
|
|
|
|
DEPEND="${RDEPEND}
|
|
>=dev-util/intltool-0.40.3:*
|
|
>=mate-base/mate-common-1.6:0
|
|
sys-devel/gettext:*
|
|
virtual/pkgconfig:*"
|
|
|
|
src_prepare() {
|
|
# Fix python automagic dependency in configure.in.
|
|
epatch "${FILESDIR}"/${PN}-1.5.0-fix-automagic-python-support.patch
|
|
|
|
# Fix undefined use of MKDIR_P in python/Makefile.am.
|
|
epatch "${FILESDIR}"/${PN}-1.6.1-fix-mkdirp.patch
|
|
|
|
eautoreconf
|
|
|
|
python_copy_sources
|
|
python_foreach_impl run_in_build_dir gnome2_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
python_foreach_impl run_in_build_dir gnome2_src_configure \
|
|
--enable-locations-compression \
|
|
--disable-all-translations-in-one-xml \
|
|
$(use_enable python)
|
|
}
|
|
|
|
src_compile() {
|
|
python_foreach_impl run_in_build_dir gnome2_src_compile
|
|
}
|
|
|
|
DOCS="AUTHORS ChangeLog MAINTAINERS NEWS"
|
|
|
|
src_install() {
|
|
python_foreach_impl run_in_build_dir gnome2_src_install
|
|
}
|