diff options
author | Matthew S. Turnbull <sparky@bluefang-logic.com> | 2020-07-29 11:48:42 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2020-09-09 02:15:00 +0000 |
commit | b3ccddbe46129dc3aa4dbaff88f71dcee3b9344a (patch) | |
tree | 62f25ec488cbbcc435df40818184d27d4db1d663 /gnome-extra | |
parent | gnome-extra/cinnamon-menus: 4.6.1 version bump (diff) | |
download | gentoo-b3ccddbe46129dc3aa4dbaff88f71dcee3b9344a.tar.gz gentoo-b3ccddbe46129dc3aa4dbaff88f71dcee3b9344a.tar.bz2 gentoo-b3ccddbe46129dc3aa4dbaff88f71dcee3b9344a.zip |
gnome-extra/cjs: 4.6.0 version bump
Switch to EAPI=7.
Bug: https://bugs.gentoo.org/733544
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Matthew S. Turnbull <sparky@bluefang-logic.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'gnome-extra')
-rw-r--r-- | gnome-extra/cjs/Manifest | 1 | ||||
-rw-r--r-- | gnome-extra/cjs/cjs-4.6.0.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/gnome-extra/cjs/Manifest b/gnome-extra/cjs/Manifest index f2f15f9f62c2..f7c04bf99e58 100644 --- a/gnome-extra/cjs/Manifest +++ b/gnome-extra/cjs/Manifest @@ -1 +1,2 @@ DIST cjs-4.4.0.tar.gz 463019 BLAKE2B af276cd8f9ef0f66a6f4ab3e0072b485e33015e070bb796818907964df0696240b753f7a271bf45db788eb244e0cd1fb866f3b78798adf3ef8f9e76825fc4d74 SHA512 3b2bdc55ab572713d6b6f92978522b290819656f64fef620659065ff5673a04a0585b83a1a0248116570ac1cfee4f54acc228f355c02aa4e0a2a13b59fbafed2 +DIST cjs-4.6.0.tar.gz 463060 BLAKE2B 466f807539ea95eece8b468287582f2c085ce86a63cf37ed1489f6ed20c98dfcb7028c7679102526009b71aba7d737f6f56c9544bc926fbf5a0be540afeaee53 SHA512 b7b457b43b756918670c9acc1064fc5b424d7bb7ab826ec207595c98159f407411ceb6d3043d305570f21f7675e1b699d7e95466688835034e178e079e118dfe diff --git a/gnome-extra/cjs/cjs-4.6.0.ebuild b/gnome-extra/cjs/cjs-4.6.0.ebuild new file mode 100644 index 000000000000..ccb7de2083d3 --- /dev/null +++ b/gnome-extra/cjs/cjs-4.6.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools gnome2-utils pax-utils virtualx xdg-utils + +DESCRIPTION="Linux Mint's fork of gjs for Cinnamon" +HOMEPAGE="https://projects.linuxmint.com/cinnamon/" +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" +RESTRICT="test" + +RDEPEND=" + dev-lang/spidermonkey:52 + >=dev-libs/glib-2.42:2 + >=dev-libs/gobject-introspection-1.41.4:= + sys-libs/readline:0= + dev-libs/libffi:0= + cairo? ( x11-libs/cairo[X,glib] ) + gtk? ( x11-libs/gtk+:3 ) +" +DEPEND="${RDEPEND} + sys-devel/autoconf-archive + test? ( sys-apps/dbus ) +" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + xdg_environment_reset + default + eautoreconf + gnome2_disable_deprecation_warning + + sed -ie "s/'Gjs'/'Cjs'/g" \ + "${S}"/installed-tests/js/testExceptions.js \ + "${S}"/installed-tests/js/testEverythingBasic.js || die +} + +src_configure() { + # FIXME: add systemtap/dtrace support, like in glib:2 + # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason + econf \ + --disable-maintainer-mode \ + --enable-compile-warnings=minimum \ + --disable-systemtap \ + --disable-dtrace \ + $(use_with cairo) \ + $(use_with gtk) +} + +src_test() { + virtx emake check +} + +src_install() { + # installation sometimes fails in parallel + default -j1 + find "${D}" -name '*.la' -delete || die + + if use examples; then + docinto examples + dodoc "${S}"/examples/* + fi + + # Required for cjs-console to run correctly on PaX systems + pax-mark mr "${ED}/usr/bin/cjs-console" +} |