forked from semios/semios-packages
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7bae4acc42 |
@@ -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)
|
||||
@@ -0,0 +1,22 @@
|
||||
from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("3.0")
|
||||
description("C parser in Python")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
|
||||
|
||||
def build():
|
||||
python.build()
|
||||
python.install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("pycparser.py")
|
||||
python.dep("python")
|
||||
python.use_auto_pack()
|
||||
Reference in New Issue
Block a user