[packages/ChakraCore] new
glen
glen at pld-linux.org
Wed Mar 23 21:48:27 CET 2016
commit 49df82a6693de30f68e753786bb87430f29bfad0
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Mar 23 22:46:04 2016 +0200
new
build attempt based on blog:
http://ariya.ofilabs.com/2016/01/playing-with-chakracore-on-linux.html
ChakraCore.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
---
diff --git a/ChakraCore.spec b/ChakraCore.spec
new file mode 100644
index 0000000..8e0609d
--- /dev/null
+++ b/ChakraCore.spec
@@ -0,0 +1,44 @@
+Summary: ChakraCore is the core part of the Chakra JavaScript engine that powers Microsoft Edge
+Name: ChakraCore
+Version: 0.1
+Release: 0.1
+License: MIT
+Group: X11/Libraries
+# NOTE: not storing on distfiles, until this package is actually useful
+Source0: https://github.com/Microsoft/ChakraCore/archive/linux/ChakraCore.tar.gz
+URL: https://github.com/Microsoft/ChakraCore
+BuildRequires: clang
+BuildRequires: cmake
+ExclusiveArch: %{ix86} %{x8664} arm
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ChakraCore is the core part of Chakra, the high-performance JavaScript
+engine that powers Microsoft Edge and Windows applications written in
+HTML/CSS/JS. ChakraCore supports Just-in-time (JIT) compilation of
+JavaScript for x86/x64/ARM, garbage collection, and a wide range of
+the latest JavaScript features. ChakraCore also supports the
+JavaScript Runtime (JSRT) APIs, which allows you to easily embed
+ChakraCore in your applications.
+
+%prep
+%setup -qc
+mv ChakraCore-*/* .
+
+%build
+install -d build
+cd build
+CC=$(which clang)
+CXX=$(which clang)
+%cmake ..
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE.txt THIRD-PARTY-NOTICES.txt CONTRIBUTING.md CODE_OF_CONDUCT.md
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ChakraCore.git/commitdiff/49df82a6693de30f68e753786bb87430f29bfad0
More information about the pld-cvs-commit
mailing list