forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02dede7823 |
+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()
|
||||
@@ -1,99 +0,0 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.18.4")
|
||||
description("a 2D graphics library with support for multiple output devices")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://cairographics.org/releases/cairo-1.18.4.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("pkgconf")
|
||||
builddep(f"glib-dev @{arch.get_target()}")
|
||||
builddep(f"libfontconfig-dev @{arch.get_target()}")
|
||||
builddep(f"libfreetype-dev @{arch.get_target()}")
|
||||
builddep(f"libpng-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
f"--libdir={get_prefix('libcairo')}/lib",
|
||||
f"--includedir={get_prefix('libcairo-dev')}/include",
|
||||
f"--bindir={get_prefix('libcairo-dev')}/bin",
|
||||
"-Dfontconfig=enabled",
|
||||
"-Dfreetype=enabled",
|
||||
"-Dpng=enabled",
|
||||
"-Dtee=enabled",
|
||||
"-Dglib=enabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_libcairo(composer):
|
||||
composer.makedir("lib")
|
||||
for i in os.listdir("lib"):
|
||||
if ".so" in i and "gobject" not in i:
|
||||
composer.addfile(f"lib/{i}", f"lib/{i}")
|
||||
composer.add_dir("lib/cairo", "lib/cairo")
|
||||
|
||||
def pack_libcairo_dev(composer):
|
||||
composer.makedirs("lib/pkgconfig")
|
||||
for i in os.listdir("lib/pkgconfig"):
|
||||
if "gobject" not in i:
|
||||
composer.addfile(f"lib/pkgconfig/{i}", f"lib/pkgconfig/{i}")
|
||||
composer.makedirs("include/cairo")
|
||||
for i in os.listdir("include/cairo"):
|
||||
if "gobject" not in i:
|
||||
composer.addfile(f"include/cairo/{i}", f"include/cairo/{i}")
|
||||
composer.add_dir("bin", "bin")
|
||||
|
||||
def pack_libcairo_gobject(composer):
|
||||
composer.makedir("lib")
|
||||
for i in os.listdir("lib"):
|
||||
if ".so" in i and "gobject" in i:
|
||||
composer.addfile(f"lib/{i}", f"lib/{i}")
|
||||
|
||||
def pack_libcairo_gobject_dev(composer):
|
||||
composer.makedirs("lib/pkgconfig")
|
||||
for i in os.listdir("lib/pkgconfig"):
|
||||
if "gobject" in i:
|
||||
composer.addfile(f"lib/pkgconfig/{i}", f"lib/pkgconfig/{i}")
|
||||
composer.makedirs("include/cairo")
|
||||
for i in os.listdir("include/cairo"):
|
||||
if "gobject" in i:
|
||||
composer.addfile(f"include/cairo/{i}", f"include/cairo/{i}")
|
||||
|
||||
|
||||
package("libcairo")
|
||||
dep("libfontconfig @same-arch")
|
||||
dep("libpng @same-arch")
|
||||
dep("libpixman @same-arch")
|
||||
dep("libfreetype @same-arch")
|
||||
dep("libz @same-arch")
|
||||
on_pack(pack_libcairo)
|
||||
|
||||
package("libcairo-dev")
|
||||
dep("libcairo (same)")
|
||||
dep("libfontconfig-dev @same-arch")
|
||||
dep("libpng-dev @same-arch")
|
||||
dep("libpixman-dev @same-arch")
|
||||
dep("libfreetype-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
on_pack(pack_libcairo_dev)
|
||||
|
||||
package("libcairo-gobject")
|
||||
dep("libcairo (same)")
|
||||
dep("libglib @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
on_pack(pack_libcairo_gobject)
|
||||
|
||||
package("libcairo-gobject-dev")
|
||||
dep("libcairo-dev (same)")
|
||||
dep("glib-dev @same-arch")
|
||||
on_pack(pack_libcairo_gobject)
|
||||
Reference in New Issue
Block a user