forked from semios/semios-packages
Compare commits
12
Commits
zipsupport
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ed5e65337 | ||
|
|
839b57e9bf | ||
|
|
3a1f472de2 | ||
|
|
452e767da4 | ||
|
|
933e526f26 | ||
|
|
8edccbc04e | ||
|
|
402aedcfb7 | ||
|
|
02dede7823 | ||
|
|
e9e835a7cf | ||
|
|
a14d1e6ea0 | ||
|
|
9711728da6 | ||
|
|
9810303b71 |
@@ -117,6 +117,7 @@ def _is_dev_file(ent) -> bool:
|
||||
or ent.name.endswith(".la")
|
||||
or ent.name.endswith(".pc")
|
||||
or ent.name.endswith(".h")
|
||||
or ent.name.endswith(".hpp")
|
||||
or ent.name.endswith(".cmake")
|
||||
or ent.name.endswith(".inc")
|
||||
or ("Makefile" in ent.name)
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ def _depcommon(s: str):
|
||||
if ")" in s:
|
||||
return s.replace(")", f", +python{PY3_VERSION})")
|
||||
else:
|
||||
return s.replace(".py", f" (+python{PY3_VERSION})")
|
||||
return s.replace(".py", f".py (+python{PY3_VERSION})")
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("1.4.1")
|
||||
description("A super-fast templating language that borrows the best ideas from the existing templating languages.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://files.pythonhosted.org/packages/2a/12/b5fa2353e2754cd67fb9f83793fa48ff42c213a5da7e719869d2301f6ab8/mako-1.4.1.tar.gz")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
python.builddep("MarkupSafe.py")
|
||||
|
||||
|
||||
def build():
|
||||
python.build()
|
||||
python.install()
|
||||
os.chdir("lib")
|
||||
while len(os.listdir(".")) == 1:
|
||||
os.chdir(os.listdir(".")[0])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("Mako.py")
|
||||
python.dep("python")
|
||||
python.dep("MarkupSafe.py")
|
||||
python.use_auto_pack()
|
||||
@@ -0,0 +1,22 @@
|
||||
from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("3.0.3")
|
||||
description("Safely add untrusted strings to HTML/XML markup.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
|
||||
|
||||
def build():
|
||||
python.build()
|
||||
python.install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("MarkupSafe.py")
|
||||
python.dep("python")
|
||||
python.use_auto_pack()
|
||||
@@ -0,0 +1,22 @@
|
||||
from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("6.0.3")
|
||||
description("YAML parser and emitter for Python")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
|
||||
|
||||
def build():
|
||||
python.build()
|
||||
python.install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("PyYAML.py")
|
||||
python.dep("python")
|
||||
python.use_auto_pack()
|
||||
@@ -0,0 +1,37 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("22.1.5")
|
||||
description("A tool and a library for bi-directional translation between SPIR-V and LLVM IR")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v22.1.5.tar.gz")
|
||||
|
||||
builddep("shortcut/cmake")
|
||||
builddep("shortcut/c++")
|
||||
builddep(f"libllvm-dev (~22.1.0) @{arch.get_target()}")
|
||||
builddep(f"libllvm-static (~22.1.0) @{arch.get_target()}")
|
||||
builddep("pkgconf")
|
||||
builddep("spirv-headers")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=ON",
|
||||
f"-DLLVM_DIR=/lib/{arch.get_target()}/cmake/llvm",
|
||||
f"-DSPIRV-Headers_SOURCE_DIR=/lib/{arch.get_target()}",
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('libllvmspirv-dev')}",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libllvmspirv-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
package("llvm-spirv")
|
||||
dep("libllvm (~22.1.0) @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -0,0 +1,43 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
sdk_version = "1.4.357.0"
|
||||
|
||||
version(sdk_version)
|
||||
description("an API and commands for processing SPIR-V modules")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/vulkan-sdk-1.4.357.0.tar.gz")
|
||||
|
||||
builddep("shortcut/cmake")
|
||||
builddep("shortcut/c++")
|
||||
builddep(f"spirv-headers (={sdk_version}) @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
f"-DSPIRV-Headers_SOURCE_DIR=/lib/{arch.get_target()}",
|
||||
"-DCMAKE_CXX_FLAGS=-Wno-error=switch",
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('spirv-tools-dev')}",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
try:
|
||||
os.rename("lib64", "lib")
|
||||
os.rename("lib32", "lib")
|
||||
except:
|
||||
pass
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("spirv-tools")
|
||||
dep("libcxx @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("spirv-tools-dev")
|
||||
dep("spirv-tools (same)")
|
||||
cpp.use_auto_pack(["lib", "dev"])
|
||||
Reference in New Issue
Block a user