Compare commits

..
Author SHA1 Message Date
sisungo 02dede7823 feat: add package Mako-py
Signed-off-by: sisungo <[email protected]>
2026-08-16 10:43:10 +08:00
3 changed files with 30 additions and 54 deletions
+1 -1
View File
@@ -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
+29
View File
@@ -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()
@@ -1,53 +0,0 @@
from lib.make import *
from lib import cpp
version("1.86.0")
description("to describe the APIs and collect them in a uniform, machine readable format")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/gobject-introspection/1.86/gobject-introspection-1.86.0.tar.xz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("pkgconf")
builddep(f"glib-dev @{arch.get_target()}")
builddep(f"libffi-dev @{arch.get_target()}")
builddep(f"setuptools.py @{arch.get_target()}")
builddep(f"libpython-dev @{arch.get_target()}")
builddep("libexpat")
builddep("flex")
builddep("bison")
def build():
cpp.meson_setup([
f"--prefix={get_prefix('gobject-introspection')}",
f"-Dgir_dir_prefix=/lib/{arch.get_target()}/include/gir",
"--bindir=/bin",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
def pack(composer):
composer.add_dir("bin", "bin")
composer.add_dir("lib", "lib")
composer.add_dir("include", "include")
composer.makedir("share")
composer.add_dir("share/gir-1.0", "share/gir-1.0")
composer.add_dir("share/gobject-introspection-1.0", "share/gobject-introspection-1.0")
def pack_docs(composer):
composer.makedir("share")
composer.add_dir("share/man", "share/man")
package("gobject-introspection")
dep("glib-dev @same-arch")
dep("libffi-dev @same-arch")
dep("semi-libc @same-arch")
on_pack(pack)
package("gobject-introspection-docs")
on_pack(pack_docs)