summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-05-23 02:07:07 -0700
committerZac Medico <zmedico@gentoo.org>2021-05-23 03:41:01 -0700
commit75e53ff3f27c3346277c2fec0879f33eb22970ab (patch)
treed117bcf5ba4c436b466cfb56a3a507beefa3a1ad /dev-lang/jerryscript
parentgames-arcade/commandergenius: allow python-3.9 and python-3.10 (diff)
downloadgentoo-75e53ff3f27c3346277c2fec0879f33eb22970ab.tar.gz
gentoo-75e53ff3f27c3346277c2fec0879f33eb22970ab.tar.bz2
gentoo-75e53ff3f27c3346277c2fec0879f33eb22970ab.zip
dev-lang/jerryscript: Initial import
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-lang/jerryscript')
-rw-r--r--dev-lang/jerryscript/Manifest1
-rw-r--r--dev-lang/jerryscript/jerryscript-2.4.0.ebuild44
-rw-r--r--dev-lang/jerryscript/metadata.xml12
3 files changed, 57 insertions, 0 deletions
diff --git a/dev-lang/jerryscript/Manifest b/dev-lang/jerryscript/Manifest
new file mode 100644
index 000000000000..7531fb469eee
--- /dev/null
+++ b/dev-lang/jerryscript/Manifest
@@ -0,0 +1 @@
+DIST jerryscript-2.4.0.tar.gz 2802799 BLAKE2B 18a3f71e7d3e2fc43772cb94aa3b0d4d28d72c6cd174eb0195f09283c5da5140ef85e86c6ed7a82e672724563549294c26d870b55c8bd9d0a92251b1002c612a SHA512 e96e6c6a2207ff869474801a1f8bbd3ce453d4076e558736ebf6962ccab08540f57cf932ec43bcd40429e21f1c6453d77874dd0a467d91a15d8357257533c1ea
diff --git a/dev-lang/jerryscript/jerryscript-2.4.0.ebuild b/dev-lang/jerryscript/jerryscript-2.4.0.ebuild
new file mode 100644
index 000000000000..d3949f02d599
--- /dev/null
+++ b/dev-lang/jerryscript/jerryscript-2.4.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Ultra-lightweight JavaScript engine for the Internet of Things"
+HOMEPAGE="https://github.com/jerryscript-project/jerryscript"
+SRC_URI="https://github.com/jerryscript-project/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+src_prepare() {
+ find . -name CMakeLists.txt -print0 | xargs -0 sed -i \
+ -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:" \
+ -e "s:DESTINATION lib):DESTINATION $(get_libdir)):" \
+ || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_STRIP=OFF
+ -DJERRY_DEBUGGER=ON
+ -DJERRY_ERROR_MESSAGES=ON
+ -DJERRY_EXTERNAL_CONTEXT=ON
+ -DJERRY_LINE_INFO=ON
+ -DJERRY_LOGGING=ON
+ -DJERRY_PARSER_DUMP_BYTE_CODE=ON
+ -DJERRY_PARSER=ON
+ -DJERRY_REGEXP_DUMP_BYTE_CODE=ON
+ -DJERRY_SNAPSHOT_EXEC=ON
+ -DJERRY_SNAPSHOT_SAVE=ON
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+}
diff --git a/dev-lang/jerryscript/metadata.xml b/dev-lang/jerryscript/metadata.xml
new file mode 100644
index 000000000000..0c73846f82dc
--- /dev/null
+++ b/dev-lang/jerryscript/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/jerryscript-project/jerryscript/issues</bugs-to>
+ <remote-id type="github">jerryscript-project/jerryscript</remote-id>
+ </upstream>
+</pkgmetadata>