Files
gentoo-zh/dev-libs/libunity/libunity-7.1.4.ebuild
T
2015-08-18 09:55:05 +08:00

63 lines
1.2 KiB
Bash

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
EBZR_REPO_URI="lp:~unity-team/${PN}/trunk"
EBZR_REVISION="312"
inherit autotools base eutils autotools python-r1 vala bzr
DESCRIPTION="Library for instrumenting and integrating with all aspects of the Unity shell"
HOMEPAGE="https://launchpad.net/libunity"
SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror"
DEPEND=">=dev-libs/dee-1.2.5:=
dev-libs/libdbusmenu:=
dev-libs/libgee:0
x11-libs/gtk+:3
${PYTHON_DEPS}
$(vala_depend)"
RDEPEND="${DEPEND}"
src_prepare() {
# Fix compile error
find . -type f -exec sed -i 's/ListStore/Gtk.ListStore/' {} \;
base_src_prepare
vala_src_prepare
export VALA_API_GEN="$VAPIGEN"
eautoreconf
}
src_configure() {
python_copy_sources
configuration() {
econf || die
}
python_foreach_impl run_in_build_dir configuration
}
src_compile() {
compilation() {
emake || die
}
python_foreach_impl run_in_build_dir compilation
}
src_install() {
installation() {
emake DESTDIR="${D}" install
}
python_foreach_impl run_in_build_dir installation
prune_libtool_files --modules
}