You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.6 KiB
70 lines
1.6 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/gjs/gjs-1.43.3.ebuild,v 1.1 2015/06/09 10:42:42 eva Exp $
|
||
10 years ago
|
|
||
|
EAPI="5"
|
||
|
GCONF_DEBUG="no"
|
||
|
|
||
9 years ago
|
inherit eutils gnome2 pax-utils virtualx
|
||
10 years ago
|
|
||
|
DESCRIPTION="Javascript bindings for GNOME"
|
||
9 years ago
|
HOMEPAGE="https://wiki.gnome.org/Projects/Gjs"
|
||
10 years ago
|
|
||
|
LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )"
|
||
|
SLOT="0"
|
||
|
IUSE="+cairo examples gtk test"
|
||
9 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||
10 years ago
|
|
||
|
RDEPEND="
|
||
|
>=dev-libs/glib-2.36:2
|
||
9 years ago
|
>=dev-libs/gobject-introspection-1.41.4
|
||
10 years ago
|
|
||
10 years ago
|
sys-libs/readline:0
|
||
10 years ago
|
dev-lang/spidermonkey:24
|
||
|
virtual/libffi
|
||
9 years ago
|
cairo? ( x11-libs/cairo[X] )
|
||
10 years ago
|
gtk? ( x11-libs/gtk+:3 )
|
||
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
gnome-base/gnome-common
|
||
|
sys-devel/gettext
|
||
|
virtual/pkgconfig
|
||
|
test? ( sys-apps/dbus )
|
||
|
"
|
||
|
|
||
9 years ago
|
src_prepare() {
|
||
|
# Disable broken unittests
|
||
|
epatch "${FILESDIR}"/${PN}-1.43.3-disable-unittest-*.patch
|
||
|
|
||
|
gnome2_src_prepare
|
||
|
}
|
||
10 years ago
|
|
||
|
src_configure() {
|
||
|
# FIXME: add systemtap/dtrace support, like in glib:2
|
||
|
# FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
|
||
|
# XXX: Do NOT enable coverage, completely useless for portage installs
|
||
|
gnome2_src_configure \
|
||
|
--disable-systemtap \
|
||
|
--disable-dtrace \
|
||
|
--disable-coverage \
|
||
|
$(use_with cairo cairo) \
|
||
|
$(use_with gtk)
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
Xemake check
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
# installation sometimes fails in parallel
|
||
|
gnome2_src_install -j1
|
||
|
|
||
|
if use examples; then
|
||
|
insinto /usr/share/doc/"${PF}"/examples
|
||
|
doins "${S}"/examples/*
|
||
|
fi
|
||
|
|
||
|
# Required for gjs-console to run correctly on PaX systems
|
||
|
pax-mark mr "${ED}/usr/bin/gjs-console"
|
||
|
}
|