gnome-extra/cjs: Version bump
authorPacho Ramos <pacho@gentoo.org>
Sat, 5 Sep 2015 16:40:17 +0000 (18:40 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sat, 5 Sep 2015 16:40:17 +0000 (18:40 +0200)
Package-Manager: portage-2.2.20.1

gnome-extra/cjs/Manifest
gnome-extra/cjs/cjs-2.6.2.ebuild [new file with mode: 0644]

index 2dab1c2c39df454151a91d2bb14f4c73585d9353..3b1cc0f980c4e9048f32333e8658e0c9a4846ce7 100644 (file)
@@ -1,3 +1,4 @@
 DIST cjs-2.4.2.tar.gz 324509 SHA256 1310a2bfdebd6a50a09718abf3627daab097233781757509121257445e0423e3 SHA512 95c46808120392f4c9d74d5d94ee030be1b3a8a36ddabbd12560ea0ed16ac6bdeb78016a09eec315536ee094109c6f6fe07ee624300bd1eae88fdbdefbed0565 WHIRLPOOL e0dca618e2d166ee29ebc303d162dd7cd37c8d5381d68fd1c5824aba173cd651ab9825437f2096aede2be667bcd9633a21acd3bdee9002fee1d2f350cc454730
 DIST cjs-2.6.0.tar.gz 324623 SHA256 bb65b7238eabb265de256d6de0a183018a4ec28b7d161d439a809875ca6e2927 SHA512 49d920a81965575aa1ea9777dd1b41911cd61bc3b29ecb87d1c1923cf3a5d43520a9b036bfca006539be27ea7c83c1c9ddea7beafaf470d255322dad0bd170ec WHIRLPOOL 197199f4c5d53c0a6c77d411b0c3fce93cef81a4dd91b84387e0402b2b7d7e51e273c449a05cf39c1491c20b911847682e3d8dbe2c2549c4bf738e477d10b51b
 DIST cjs-2.6.1.tar.gz 324886 SHA256 1b431ccacfc6dac5f393ff6807dac69751eb943488422b7e26554f164a0e4309 SHA512 1c382a590def70f2d0ed554c5a345f3094d06ae4999aeb6b836d2867f947aeb5f60b222e4c139d89bdba0e855e6e844f80f4d0b08e3921e84c2e214e9d371a61 WHIRLPOOL 1cded0ba6da3baba6484785080cff9e08db5529e3f2a5c0a740e5f1a06b0c1e89b299f686c931724412ebdb0eb9dee509e517da5fad403eab5c4c043afabec84
+DIST cjs-2.6.2.tar.gz 324978 SHA256 742e5a98281c3aff3127113352e920151468fd3c55214aa9c9ed09704efa70a0 SHA512 cd8954027ffa538e6bbf8e48e574ab9721c514a9d975e24e9915a3f23dc61b4faacc5e1a3302d8a08ea9a515189b40299c80c43a065c14560d206256a1984d29 WHIRLPOOL 0d566df0c80c4548b9521ca430f8a2a35892383b922faade4f77510ed9f1811fcac7b9dd8c166a4bff8148280c5b5b448bb584be9576edd005fd9b4a0b4085c2
diff --git a/gnome-extra/cjs/cjs-2.6.2.ebuild b/gnome-extra/cjs/cjs-2.6.2.ebuild
new file mode 100644 (file)
index 0000000..7f766c8
--- /dev/null
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit autotools eutils gnome2 pax-utils virtualx
+
+DESCRIPTION="Linux Mint's fork of gjs for Cinnamon"
+HOMEPAGE="http://cinnamon.linuxmint.com/"
+SRC_URI="https://github.com/linuxmint/cjs/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )"
+SLOT="0"
+IUSE="+cairo examples gtk test"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-lang/spidermonkey:24
+       >=dev-libs/glib-2.37.3:2
+       >=dev-libs/gobject-introspection-1.38:=
+       sys-libs/readline:0
+       virtual/libffi
+       cairo? ( x11-libs/cairo[X,glib] )
+       gtk? ( x11-libs/gtk+:3 )
+"
+DEPEND="${RDEPEND}
+       gnome-base/gnome-common
+       sys-devel/gettext
+       virtual/pkgconfig
+       test? ( sys-apps/dbus )
+"
+# Cinnamon 2.2 does not work with this release.
+RDEPEND="${RDEPEND}
+       !<gnome-extra/cinnamon-2.4
+"
+
+src_prepare() {
+       # Disable broken unittests
+       epatch "${FILESDIR}"/${PN}-2.4.0-disable-unittest-*.patch
+
+       epatch_user
+       eautoreconf
+       gnome2_src_prepare
+}
+
+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) \
+               $(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 cjs-console to run correctly on PaX systems
+       pax-mark mr "${ED}/usr/bin/cjs-console"
+}