ispc new package

This commit is contained in:
Rmys
2021-06-30 16:28:37 +03:00
parent cbeccf2a80
commit cbfeddc30a
8 changed files with 180 additions and 4 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
pisitools.cflags.add("-fPIE")
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
-DNCURSES_TINFO_LIBRARY=/usr/lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DISPC_INCLUDE_EXAMPLES=OFF \
-DISPC_INCLUDE_TESTS=OFF \
-DISPC_NO_DUMPS=ON", sourceDir="..")
def build():
shelltools.cd("build")
cmaketools.make()
def install():
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("..")
pisitools.dodoc("LICENSE*", "README*")
@@ -0,0 +1,17 @@
From 22bbf8efc0deeb62cd706f1c2fee97201eb7427a Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar@redhat.com>
Date: Fri, 13 Dec 2019 00:39:17 +0000
Subject: [PATCH] Link against libclang-cpp.so
--- ispc-1.16.0/CMakeLists.txt.orig 2021-06-11 17:41:24.000000000 -0700
+++ ispc-1.16.0/CMakeLists.txt 2021-06-13 11:23:05.621934106 -0700
@@ -281,7 +281,7 @@
list(APPEND ISPC_TARGETS wasm-i32x4)
endif()
-set(CLANG_LIBRARY_LIST clangFrontend clangDriver clangSerialization clangParse clangSema clangAnalysis clangAST clangBasic clangEdit clangLex)
+set(CLANG_LIBRARY_LIST clang-cpp)
set(LLVM_COMPONENTS engine ipo bitreader bitwriter instrumentation linker option frontendopenmp)
if (X86_ENABLED)
+54
View File
@@ -0,0 +1,54 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>ispc</Name>
<Homepage>https://ispc.github.io/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<Summary>C-based SPMD programming language compiler</Summary>
<Description>C tabanlı SPMD programlama dili derleyicisi</Description>
<Archive sha1sum="aebacd6f73da06c6620ecadabee2414170857b6c" type="targz">https://github.com/ispc/ispc/archive/refs/tags/v1.16.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>flex</Dependency>
<Dependency>cmake</Dependency>
<Dependency>doxygen</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>llvm-mlir</Dependency>
<Dependency>llvm-polly</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>llvm-clang-devel</Dependency>
<Dependency>python3-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">0001-Link-against-libclang-cpp.so.patch</Patch>
</Patches>
</Source>
<Package>
<Name>ispc</Name>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
<Dependency>llvm-libs</Dependency>
<Dependency>llvm-clang</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-06-30</Date>
<Version>1.16.0</Version>
<Comment>First release</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>ispc</Name>
<Summary xml:lang="tr">C-based SPMD programming language compiler</Summary>
<Description xml:lang="tr">C tabanlı SPMD programlama dili derleyicisi</Description>
</Source>
</PISI>