pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import chakracore-0.0.0nb20160826 as wip/chakracore-git.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Fri Aug 26 23:04:03 2016 +0200
Changeset:	2e9f935aad55ef409f273f9cf40345a542e6a116

Added Files:
	chakracore-git/DESCR
	chakracore-git/Makefile
	chakracore-git/PLIST
	chakracore-git/distinfo
	chakracore-git/patches/patch-CMakeLists.txt
	chakracore-git/patches/patch-lib_Runtime_PlatformAgnostic_Platform_CMakeLists.txt

Log Message:
Import chakracore-0.0.0nb20160826 as wip/chakracore-git.

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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2e9f935aad55ef409f273f9cf40345a542e6a116

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 chakracore-git/DESCR                               |  6 ++
 chakracore-git/Makefile                            | 23 +++++++
 chakracore-git/PLIST                               | 74 ++++++++++++++++++++++
 chakracore-git/distinfo                            |  4 ++
 chakracore-git/patches/patch-CMakeLists.txt        | 49 ++++++++++++++
 ...untime_PlatformAgnostic_Platform_CMakeLists.txt | 21 ++++++
 6 files changed, 177 insertions(+)

diffs:
diff --git a/chakracore-git/DESCR b/chakracore-git/DESCR
new file mode 100644
index 0000000..c98fad8
--- /dev/null
+++ b/chakracore-git/DESCR
@@ -0,0 +1,6 @@
+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.
diff --git a/chakracore-git/Makefile b/chakracore-git/Makefile
new file mode 100644
index 0000000..53b4a35
--- /dev/null
+++ b/chakracore-git/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.3 2015/04/25 10:01:54 krytarowski Exp $
+
+GIT_REPOSITORIES=	chakracore
+GIT_REPO.chakracore=	https://github.com/Microsoft/ChakraCore.git
+
+DISTNAME=	chakracore
+PKGNAME=	chakracore-0.0.0
+CATEGORIES=	lang
+
+MAINTAINER=	kamil%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/Microsoft/chakracore
+COMMENT=	Core part of the Chakra Javascript engine that powers Microsoft Edge
+LICENSE=	mit
+
+USE_LANGUAGES=	c c++
+USE_CMAKE=	yes
+
+CXXFLAGS+=	-std=c++11
+
+.include "../../wip/mk/git-package.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../lang/libunwind/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/chakracore-git/PLIST b/chakracore-git/PLIST
new file mode 100644
index 0000000..c54c00a
--- /dev/null
+++ b/chakracore-git/PLIST
@@ -0,0 +1,74 @@
+@comment $NetBSD$
+CoreCLR/Loader/NativeLibs/FromNativePaths_lib.so
+CoreCLR/System.Globalization.Native.so
+CoreCLR/bin/hfa_nested_f32_native_cpp.so
+CoreCLR/bin/hfa_nested_f64_native_cpp.so
+CoreCLR/bin/hfa_simple_f32_native_cpp.so
+CoreCLR/bin/hfa_simple_f64_native_cpp.so
+CoreCLR/bin/jitstructtests_lib.so
+CoreCLR/bin/libBestFitMappingNative.so
+CoreCLR/bin/libBoolNative.so
+CoreCLR/bin/libForeignThreadExceptionsNative.so
+CoreCLR/bin/libFuncPtrAsDelegateParamNative.so
+CoreCLR/bin/libFunctionPointerNative.so
+CoreCLR/bin/libIUnknownNative.so
+CoreCLR/bin/libLPSTRTestNative.so
+CoreCLR/bin/libLPTSTRTestNative.so
+CoreCLR/bin/libMarshalArrayByValNative.so
+CoreCLR/bin/libMarshalBoolArrayNative.so
+CoreCLR/bin/libMarshalEnumNative.so
+CoreCLR/bin/libMarshalStructAsParam.so
+CoreCLR/bin/libNativeCallableDll.so
+CoreCLR/bin/libRefCharArrayNative.so
+CoreCLR/bin/libRefIntNative.so
+CoreCLR/bin/libSimpleStructNative.so
+CoreCLR/bin/libStructABILib.so
+CoreCLR/bin/libUIntPtrNative.so
+CoreCLR/bin/libVector3TestNative.so
+CoreCLR/bin/mirror.so
+CoreCLR/bin/native_i0c.so
+CoreCLR/bin/native_i0s.so
+CoreCLR/bin/native_i1c.so
+CoreCLR/bin/native_i1s.so
+CoreCLR/bin/native_i3c.so
+CoreCLR/bin/native_i3s.so
+CoreCLR/bin/native_i5c.so
+CoreCLR/bin/native_i5s.so
+CoreCLR/bin/native_i6c.so
+CoreCLR/bin/native_i6s.so
+CoreCLR/bin/native_i7c.so
+CoreCLR/bin/native_i7s.so
+CoreCLR/bin/native_i8c.so
+CoreCLR/bin/native_i8s.so
+CoreCLR/bin/test2.so
+CoreCLR/coreconsole
+CoreCLR/corerun
+CoreCLR/crossgen
+CoreCLR/gcinfo/gcinfoencoder.cpp
+CoreCLR/ilasm
+CoreCLR/ildasm
+CoreCLR/inc/cfi.h
+CoreCLR/inc/cor.h
+CoreCLR/inc/cordebuginfo.h
+CoreCLR/inc/coredistools.h
+CoreCLR/inc/corerror.h
+CoreCLR/inc/corhdr.h
+CoreCLR/inc/corinfo.h
+CoreCLR/inc/corjit.h
+CoreCLR/inc/corjithost.h
+CoreCLR/inc/corprof.h
+CoreCLR/inc/gcinfoencoder.h
+CoreCLR/inc/gcinfotypes.h
+CoreCLR/inc/opcode.def
+CoreCLR/inc/openum.h
+CoreCLR/lib/libcoreclrpal.a
+CoreCLR/lib/libcorguids.a
+CoreCLR/lib/libpalrt.a
+CoreCLR/libclrjit.so
+CoreCLR/libcoreclr.so
+CoreCLR/libdbgshim.so
+CoreCLR/libmscordaccore.so
+CoreCLR/libmscordbi.so
+CoreCLR/libsos.so
+CoreCLR/libsosplugin.so
+CoreCLR/sosdocsunix.txt
diff --git a/chakracore-git/distinfo b/chakracore-git/distinfo
new file mode 100644
index 0000000..3e3c86d
--- /dev/null
+++ b/chakracore-git/distinfo
@@ -0,0 +1,4 @@
+$NetBSD$
+
+SHA1 (patch-CMakeLists.txt) = 2350418aa883ab0e7e494443d8373234882be2c9
+SHA1 (patch-lib_Runtime_PlatformAgnostic_Platform_CMakeLists.txt) = 686eaed18ceb2ad0e88bf9777131ee576a39f2bc
diff --git a/chakracore-git/patches/patch-CMakeLists.txt b/chakracore-git/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000..4c242c5
--- /dev/null
+++ b/chakracore-git/patches/patch-CMakeLists.txt
@@ -0,0 +1,49 @@
+$NetBSD$
+
+--- CMakeLists.txt.orig	2016-08-26 18:28:16.000000000 +0000
++++ CMakeLists.txt
+@@ -58,6 +58,27 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL Darwin
+     endif()
+     set(CLR_CMAKE_PLATFORM_DARWIN 1)
+ else()
++elseif(CMAKE_SYSTEM_NAME STREQUAL NetBSD)
++    add_definitions(
++        -DPLATFORM_UNIX
++    )
++
++    if(NOT ICULIB)
++      set(ICULIB "icuuc")
++      add_definitions(
++        -DU_DISABLE_RENAMING=1 #in case we link against to an older binary of icu
++        )
++      message("using ICU from system default: ${ICULIB}")
++    endif()
++
++    set(CLR_CMAKE_PLATFORM_UNIX 1)
++    if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)
++        set(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64 1)
++    else()
++        clr_unknown_arch()
++    endif()
++    set(CLR_CMAKE_PLATFORM_NETBSD 1)
++else()
+     clr_unknown_arch()
+ endif()
+ 
+@@ -90,6 +111,16 @@ if(CLR_CMAKE_PLATFORM_UNIX)
+         endif(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64)
+     endif(CLR_CMAKE_PLATFORM_LINUX)
+ 
++    if(CLR_CMAKE_PLATFORM_NETBSD)
++        add_definitions(-D__NETBSD__=1)
++        if(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64)
++            message("Detected NetBSD x86_64")
++            add_definitions(-DNETBSD64)
++        else()
++            clr_unknown_arch()
++        endif(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64)
++    endif(CLR_CMAKE_PLATFORM_NETBSD)
++
+     if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_SYSTEM_PROCESSOR STREQUAL amd64)
+         set(IS_64BIT_BUILD 1)
+         add_definitions(-D_M_X64 -D_M_AMD64 -D_AMD64_)
diff --git a/chakracore-git/patches/patch-lib_Runtime_PlatformAgnostic_Platform_CMakeLists.txt b/chakracore-git/patches/patch-lib_Runtime_PlatformAgnostic_Platform_CMakeLists.txt
new file mode 100644
index 0000000..9bca912
--- /dev/null
+++ b/chakracore-git/patches/patch-lib_Runtime_PlatformAgnostic_Platform_CMakeLists.txt
@@ -0,0 +1,21 @@
+$NetBSD$
+
+--- lib/Runtime/PlatformAgnostic/Platform/CMakeLists.txt.orig	2016-08-26 18:28:16.000000000 +0000
++++ lib/Runtime/PlatformAgnostic/Platform/CMakeLists.txt
+@@ -19,6 +19,16 @@ set(PL_SOURCE_FILES
+   Unix/SystemInfo.cpp
+   Common/UnicodeText.Common.cpp
+   )
++elseif(CMAKE_SYSTEM_NAME STREQUAL NetBSD)
++set(PL_SOURCE_FILES
++  # xplat-todo: implement them for unix! or carry them into common
++  Linux/UnicodeText.ICU.cpp
++  Unix/DateTime.cpp
++  Linux/HiResTimer.cpp
++  Linux/NumbersUtility.cpp
++  Unix/SystemInfo.cpp
++  Common/UnicodeText.Common.cpp
++  )
+ endif()
+ 
+ if(NOT STATIC_LIBRARY)


Home | Main Index | Thread Index | Old Index