forked from semios/semios-packages
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
837192e485 |
@@ -0,0 +1,51 @@
|
||||
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')}",
|
||||
])
|
||||
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)
|
||||
@@ -1,48 +0,0 @@
|
||||
import os
|
||||
|
||||
import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.3.15")
|
||||
description("Graphite is a \"smart font\" system developed specifically to handle the complexities of lesser-known languages of the world.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/silnrsi/graphite/releases/download/1.3.15/graphite2-1.3.15.tgz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('libgraphite-dev')}",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.add_dir("include", "include")
|
||||
composer.add_dir("share", "share")
|
||||
composer.makedir("lib")
|
||||
composer.add_dir("lib/pkgconfig", "lib/pkgconfig")
|
||||
for i in os.listdir("lib"):
|
||||
if not os.path.isfile(f"lib/{i}"):
|
||||
continue
|
||||
if ".so" in i:
|
||||
os.symlink(f"{get_prefix('libgraphite')}/lib/{i}", f"{composer.workdir}/bundle/lib/{i}")
|
||||
else:
|
||||
composer.addfile(f"lib/{i}", f"lib/{i}")
|
||||
|
||||
|
||||
package("libgraphite")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libgraphite-dev")
|
||||
dep("libgraphite (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
Reference in New Issue
Block a user