diff options
-rw-r--r-- | dev-libs/gjs/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/gjs/gjs-1.48.7.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-libs/gjs/Manifest b/dev-libs/gjs/Manifest index a09b09a1e312..9e0c84ac73b8 100644 --- a/dev-libs/gjs/Manifest +++ b/dev-libs/gjs/Manifest @@ -1,2 +1,3 @@ DIST gjs-1.46.0.tar.xz 490812 SHA256 2283591fa70785443793e1d7db66071b36052d707075f229baeb468d8dd25ad4 SHA512 14af40668e95d269ac87556c75cf45680c41bc8246f04c46726d34bd80e9344045c0a510567f156c2c25c1f10dd474dc38bd50581d1b2e5abe0daa0cf570e2bc WHIRLPOOL 4aaf910c344d7df028a52e43b60b49e4fb0aefd92968e068d0effc4817b0f6b3d388c8287c6f7e3f85bc92c9e5605c03ff4743677ebc95dcd383d5a84d06f4fa DIST gjs-1.48.6.tar.xz 596964 SHA256 e85f65ba4b38bf80b6174949dfe6fce89e88b8213bbdde4ac1fde473c08bd312 SHA512 29d70bbee722bbb58eb95acf1409d5e34930d11ebd9525f3b7d0050a13b72eb50e357df7c2bb9bc2ba147dcfdbc2dfb1f1f7b710347473d05cd484006b6ea256 WHIRLPOOL e18a79c04b2b49f250d378bbaf43aa461b8673a819ca1fb2ba02c5b0985fec4555e700c07213654eba57e390856b4951ad158ff669f12e24b6325f5ca7f681b6 +DIST gjs-1.48.7.tar.xz 595324 SHA256 09dbf6e1a7f821df7c50098acc4489cfb4e943ec12f10258bb42b1a71061c36e SHA512 b8c58e068eaecfca2fa40cebe209fa8058e603809be4307099a0f3dbd561752a540d587d546ffa74aef0268a111f2b2846a1e0febda1adcefdac8c02e716e2dd WHIRLPOOL 4b34be1fb60d46ecb57e5d990c0b863d24ff829d2240e5d032ad74669ff11bd59cfc7a43607ad68ff1de814b668e46b65cd64f55871cff8d90845f68167dc441 diff --git a/dev-libs/gjs/gjs-1.48.7.ebuild b/dev-libs/gjs/gjs-1.48.7.ebuild new file mode 100644 index 000000000000..a1e72ae1d191 --- /dev/null +++ b/dev-libs/gjs/gjs-1.48.7.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2 pax-utils virtualx + +DESCRIPTION="Javascript bindings for GNOME" +HOMEPAGE="https://wiki.gnome.org/Projects/Gjs" + +LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )" +SLOT="0" +IUSE="+cairo examples gtk test" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND=" + >=dev-libs/glib-2.52.1 + >=dev-libs/gobject-introspection-1.52.1:= + + sys-libs/readline:0 + dev-lang/spidermonkey:38 + virtual/libffi + cairo? ( x11-libs/cairo[X] ) + gtk? ( >=x11-libs/gtk+-3.20:3 ) +" +DEPEND="${RDEPEND} + gnome-base/gnome-common + sys-devel/gettext + virtual/pkgconfig + test? ( sys-apps/dbus ) +" + +#PATCHES=( + # Disable unittest failing without pt_BR locale, upstream bug #???? +# "${FILESDIR}"/1.48.6-disable-unittest.patch +#) + +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-code-coverage \ + $(use_with cairo cairo) \ + $(use_with gtk) \ + $(use_with test dbus-tests) \ + $(use_with test xvfb-tests) +} + +src_install() { + # installation sometimes fails in parallel, bug #??? + 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" +} |