summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-03-26 21:59:15 +0000
committerJames Le Cuirot <chewi@gentoo.org>2022-03-26 22:00:45 +0000
commit82beec9e3114879b5a6fe9bb703ae0e9a9908c46 (patch)
tree355942a3757ae57be85079b0941c87b4c02825c6 /dev-libs/nwjs
parentdev-python/pytest-services: keyword 2.2.1 for ~riscv (diff)
downloadgentoo-82beec9e3114879b5a6fe9bb703ae0e9a9908c46.tar.gz
gentoo-82beec9e3114879b5a6fe9bb703ae0e9a9908c46.tar.bz2
gentoo-82beec9e3114879b5a6fe9bb703ae0e9a9908c46.zip
dev-libs/nwjs: New package at version 0.62.1
Binary only, sorry. Building from source does not look fun. I could add x86, but someone will need to twist my arm. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-libs/nwjs')
-rw-r--r--dev-libs/nwjs/Manifest1
-rw-r--r--dev-libs/nwjs/metadata.xml8
-rw-r--r--dev-libs/nwjs/nwjs-0.62.1.ebuild138
3 files changed, 147 insertions, 0 deletions
diff --git a/dev-libs/nwjs/Manifest b/dev-libs/nwjs/Manifest
new file mode 100644
index 000000000000..9f62d3243c09
--- /dev/null
+++ b/dev-libs/nwjs/Manifest
@@ -0,0 +1 @@
+DIST nwjs-v0.62.1-linux-x64.tar.gz 128395584 BLAKE2B 144a9e61aff85a6a94bb62e4351d3aad4453e3a003fff79bbc677e9d976dd3e8a237b8ef5371f983365e4d9c56da138f7daed527cd7746fbc46bf952ff3b9887 SHA512 c6e385c3960e695b318b2d4bae902031b808490b34efdc0a4ee51cc6a5c337d597447c968bec1bfb7d6d2128604541e06ddae9073261d0aa50b70fbeb28488db
diff --git a/dev-libs/nwjs/metadata.xml b/dev-libs/nwjs/metadata.xml
new file mode 100644
index 000000000000..7c730d47817a
--- /dev/null
+++ b/dev-libs/nwjs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-libs/nwjs/nwjs-0.62.1.ebuild b/dev-libs/nwjs/nwjs-0.62.1.ebuild
new file mode 100644
index 000000000000..d50a5c83067a
--- /dev/null
+++ b/dev-libs/nwjs/nwjs-0.62.1.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="96"
+CHROMIUM_LANGS="
+ am
+ ar
+ bg
+ bn
+ ca
+ cs
+ da
+ de
+ el
+ en-GB
+ en-US
+ es-419
+ es
+ et
+ fa
+ fil
+ fi
+ fr
+ gu
+ he
+ hi
+ hr
+ hu
+ id
+ it
+ ja
+ kn
+ ko
+ lt
+ lv
+ ml
+ mr
+ ms
+ nb
+ nl
+ pl
+ pt-BR
+ pt-PT
+ ro
+ ru
+ sk
+ sl
+ sr
+ sv
+ sw
+ ta
+ te
+ th
+ tr
+ uk
+ vi
+ zh-CN
+ zh-TW
+"
+
+inherit chromium-2
+
+MY_P="${PN}-v${PV}"
+DESCRIPTION="Framework that lets you call all Node.js modules directly from the DOM"
+HOMEPAGE="https://nwjs.io"
+SRC_URI="amd64? ( https://dl.nwjs.io/v${PV}/${MY_P}-linux-x64.tar.gz )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+
+RDEPEND="
+ app-accessibility/at-spi2-core:2
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/libglvnd
+ media-libs/vulkan-loader
+ media-video/ffmpeg-chromium:${CHROMIUM_VERSION}
+ net-print/cups
+ sys-apps/dbus
+ sys-apps/util-linux
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXScrnSaver
+ x11-libs/libXtst
+ x11-libs/pango[X]
+"
+
+S="${WORKDIR}/${A%.tar.gz}"
+DIR="/opt/${PN}"
+QA_PREBUILT="${DIR#/}/*"
+
+src_prepare() {
+ default
+
+ # Unbundle some libraries.
+ rm -r lib/lib{EGL.so,ffmpeg.so,GLESv2.so,vulkan.so.1} swiftshader/ || die
+
+ cd locales || die
+ rm {ar-XB,en-XA}.pak* || die # No flags for pseudo locales.
+ chromium_remove_language_paks
+}
+
+src_install() {
+ insinto "${DIR}"
+ doins -r *
+
+ exeinto "${DIR}"
+ doexe chrome_crashpad_handler nw
+
+ insinto "${DIR}"/lib
+ doins lib/*.json
+
+ exeinto "${DIR}"/lib
+ doexe lib/*.so*
+
+ dosym ../../../usr/$(get_libdir)/chromium/libffmpeg.so.${CHROMIUM_VERSION} \
+ "${DIR}"/lib/libffmpeg.so
+
+ dosym ../.."${DIR}"/nw /usr/bin/${PN}
+}