forked from semios/ports
Compare commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
9b4eb1a6b1 |
@@ -1,38 +0,0 @@
|
|||||||
from lib import cpp
|
|
||||||
from lib.make import *
|
|
||||||
|
|
||||||
|
|
||||||
version("1.0.16")
|
|
||||||
description("The Free Implementation of the Unicode Bidirectional Algorithm.")
|
|
||||||
maintainer("sisungo <[email protected]>")
|
|
||||||
source_url("https://github.com/fribidi/fribidi/releases/download/v1.0.16/fribidi-1.0.16.tar.xz")
|
|
||||||
|
|
||||||
builddep("shortcut/c")
|
|
||||||
builddep("shortcut/autotools")
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
|
||||||
cpp.configure([
|
|
||||||
f"--libdir={get_prefix('libfribidi')}/lib",
|
|
||||||
f"--bindir={get_prefix('fribidi')}/bin",
|
|
||||||
f"--includedir={get_prefix('libfribidi-dev')}/include",
|
|
||||||
"--disable-deprecated",
|
|
||||||
])
|
|
||||||
cpp.make()
|
|
||||||
cpp.make_install()
|
|
||||||
|
|
||||||
on_build(build)
|
|
||||||
|
|
||||||
|
|
||||||
package("libfribidi")
|
|
||||||
dep("semi-libc @same-arch")
|
|
||||||
cpp.use_auto_pack(["lib"])
|
|
||||||
|
|
||||||
package("fribidi")
|
|
||||||
dep("libfribidi (same)")
|
|
||||||
cpp.use_auto_pack(["bin"])
|
|
||||||
|
|
||||||
package("libfribidi-dev")
|
|
||||||
dep("libfribidi (same)")
|
|
||||||
dep("semi-libc-dev @same-arch")
|
|
||||||
cpp.use_auto_pack(["dev"])
|
|
||||||
@@ -1,100 +0,0 @@
|
|||||||
import glob
|
|
||||||
import os
|
|
||||||
import shutil
|
|
||||||
|
|
||||||
from lib.make import *
|
|
||||||
from lib import cpp
|
|
||||||
|
|
||||||
|
|
||||||
version("14.3.1")
|
|
||||||
description("HarfBuzz text shaping engine")
|
|
||||||
maintainer("sisungo <[email protected]>")
|
|
||||||
source_url("https://github.com/harfbuzz/harfbuzz/releases/download/14.3.1/harfbuzz-14.3.1.tar.xz")
|
|
||||||
|
|
||||||
builddep("shortcut/meson")
|
|
||||||
builddep("shortcut/c++")
|
|
||||||
builddep("glib-dev @target")
|
|
||||||
builddep("libicu4c-dev @target")
|
|
||||||
builddep("libcairo-dev @target")
|
|
||||||
builddep("gobject-introspection @target")
|
|
||||||
builddep("glib-tools")
|
|
||||||
|
|
||||||
|
|
||||||
def fix_pc(newpkgname):
|
|
||||||
path = f"lib/pkgconfig/harfbuzz-{newpkgname}.pc"
|
|
||||||
with open(path, 'r') as file:
|
|
||||||
content = file.read()
|
|
||||||
content = content.replace(
|
|
||||||
"-I${includedir}/harfbuzz",
|
|
||||||
f"-I${{includedir}}/harfbuzz -I{get_prefix(f'libharfbuzz-{newpkgname}-dev')}/include/harfbuzz"
|
|
||||||
)
|
|
||||||
content = content.replace("-L${libdir}", f"-L${{libdir}} -L{get_prefix(f'libharfbuzz-{newpkgname}')}/lib")
|
|
||||||
with open(path, 'wt+') as file:
|
|
||||||
file.write(content)
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
|
||||||
cpp.meson_setup([
|
|
||||||
"--prefix=/",
|
|
||||||
f"--libdir={get_prefix('libharfbuzz')}/lib",
|
|
||||||
f"--includedir={get_prefix('libharfbuzz-dev')}/include",
|
|
||||||
f"-Dcmakepackagedir={get_prefix('libharfbuzz-dev')}/lib/cmake",
|
|
||||||
"-Dglib=disabled",
|
|
||||||
"-Dgobject=enabled",
|
|
||||||
"-Dcairo=enabled",
|
|
||||||
"-Dicu=enabled",
|
|
||||||
"-Dfreetype=enabled",
|
|
||||||
"-Dintrospection=enabled",
|
|
||||||
"-Dtests=disabled",
|
|
||||||
])
|
|
||||||
cpp.meson_compile()
|
|
||||||
if os.path.exists("../cpp_install"):
|
|
||||||
shutil.rmtree("../cpp_install")
|
|
||||||
cpp.meson_install()
|
|
||||||
os.mkdir("include/gir")
|
|
||||||
os.rename("share/gir-1.0", "include/gir/gir-1.0")
|
|
||||||
fix_pc("gobject")
|
|
||||||
|
|
||||||
on_build(build)
|
|
||||||
|
|
||||||
|
|
||||||
def pack_glob(composer, globs, excluded_kw=[]):
|
|
||||||
for iglob in globs:
|
|
||||||
for i in glob.glob(iglob):
|
|
||||||
if any(excluded_pattern in i for excluded_pattern in excluded_kw):
|
|
||||||
continue
|
|
||||||
composer.makedirs(os.path.dirname(i))
|
|
||||||
if os.path.islink(i) or os.path.isfile(i):
|
|
||||||
composer.addfile(i)
|
|
||||||
else:
|
|
||||||
composer.add_dir(i)
|
|
||||||
|
|
||||||
|
|
||||||
package("libharfbuzz")
|
|
||||||
dep("libfreetype @same-arch")
|
|
||||||
dep("libcairo @same-arch")
|
|
||||||
dep("libicu4c @same-arch")
|
|
||||||
dep("libpng @same-arch")
|
|
||||||
dep("libz @same-arch")
|
|
||||||
on_pack(lambda c: pack_glob(c, ["lib/*.so*"], ["gobject"]))
|
|
||||||
|
|
||||||
package("libharfbuzz-dev")
|
|
||||||
dep("libharfbuzz (same)")
|
|
||||||
dep("libfreetype-dev @same-arch")
|
|
||||||
dep("libcairo-dev @same-arch")
|
|
||||||
dep("libicu4c-dev @same-arch")
|
|
||||||
dep("libpng-dev @same-arch")
|
|
||||||
dep("libz-dev @same-arch")
|
|
||||||
on_pack(lambda c: pack_glob(c, ["lib/cmake", "lib/pkgconfig/*", "include/harfbuzz/*"], ["gobject"]))
|
|
||||||
|
|
||||||
package("libharfbuzz-gobject")
|
|
||||||
dep("libharfbuzz (same)")
|
|
||||||
dep("libglib @same-arch")
|
|
||||||
dep("libgobject @same-arch")
|
|
||||||
on_pack(lambda c: pack_glob(c, ["lib/*gobject*", "lib/girepository-1.0"]))
|
|
||||||
|
|
||||||
package("libharfbuzz-gobject-dev")
|
|
||||||
dep("libharfbuzz-gobject (same)")
|
|
||||||
dep("libharfbuzz-dev (same)")
|
|
||||||
dep("glib-dev @same-arch")
|
|
||||||
on_pack(lambda c: pack_glob(c, ["lib/pkgconfig/*gobject*", "include/harfbuzz/*gobject*", "include/gir"]))
|
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from lib.make import *
|
||||||
|
from lib import cpp, arch
|
||||||
|
|
||||||
|
|
||||||
|
version("1.14.0-beta.1")
|
||||||
|
description("keymap handling library for toolkits and window systems")
|
||||||
|
maintainer("sisungo <[email protected]>")
|
||||||
|
source_url("https://github.com/xkbcommon/libxkbcommon/archive/refs/tags/xkbcommon-1.14.0-beta1.tar.gz")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/meson")
|
||||||
|
builddep("flex")
|
||||||
|
builddep("bison")
|
||||||
|
builddep("libxml2-dev @target")
|
||||||
|
builddep("libwayland-dev @target")
|
||||||
|
builddep("wayland-protocols @target")
|
||||||
|
builddep("awk")
|
||||||
|
builddep("bash")
|
||||||
|
builddep("xkeyboard-config-dev (=2.48) @any")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
os.environ["PKG_CONFIG_PATH"] = "/share/pkgconfig"
|
||||||
|
|
||||||
|
# FIXME: Building the package requires `/bin/sh` to be bash.
|
||||||
|
if in_atomic():
|
||||||
|
os.system("ln -sf /bin/bash /bin/sh")
|
||||||
|
|
||||||
|
cpp.meson_setup([
|
||||||
|
f"--libdir={get_prefix('libxkbcommon')}/lib",
|
||||||
|
f"--includedir={get_prefix('libxkbcommon-dev')}/include",
|
||||||
|
f"--bindir={get_prefix('xkbcli')}/bin",
|
||||||
|
f"--libexecdir={get_prefix('xkbcli')}/libexec",
|
||||||
|
"-Denable-x11=false",
|
||||||
|
])
|
||||||
|
cpp.meson_compile()
|
||||||
|
cpp.meson_install()
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def pack_libxkbcommon(composer):
|
||||||
|
composer.makedir("lib")
|
||||||
|
for i in glob.glob("lib/*common*so*"):
|
||||||
|
composer.add(i)
|
||||||
|
|
||||||
|
package("libxkbcommon")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
cpp.use_auto_pack(["lib"])
|
||||||
|
|
||||||
|
def pack_libxkbregistry(composer):
|
||||||
|
composer.makedir("lib")
|
||||||
|
for i in glob.glob("lib/*registry*so*"):
|
||||||
|
composer.add(i)
|
||||||
|
|
||||||
|
package("libxkbregistry")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
dep("libxml2 @same-arch")
|
||||||
|
dep("xkeyboard-config (=2.48) @any")
|
||||||
|
cpp.use_auto_pack(["lib"])
|
||||||
|
|
||||||
|
def pack_libxkbcommon_dev(composer):
|
||||||
|
composer.makedirs("lib/pkgconfig")
|
||||||
|
composer.add("lib/pkgconfig/xkbcommon.pc")
|
||||||
|
composer.makedirs("include/xkbcommon")
|
||||||
|
for i in glob.glob("include/xkbcommon/*"):
|
||||||
|
if "registry" in i:
|
||||||
|
continue
|
||||||
|
composer.add(i)
|
||||||
|
|
||||||
|
package("libxkbcommon-dev")
|
||||||
|
dep("libxkbcommon (same)")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
|
|
||||||
|
def pack_libxkbregistry_dev(composer):
|
||||||
|
composer.makedirs("lib/pkgconfig")
|
||||||
|
with open("lib/pkgconfig/xkbregistry.pc", "r") as pcf:
|
||||||
|
pc = pcf.read()
|
||||||
|
pc = pc.replace(get_prefix("libxkbcommon"), get_prefix("libxkbregistry"))
|
||||||
|
pc = pc.replace(get_prefix("libxkbcommon-dev"), get_prefix("libxkbregistry-dev"))
|
||||||
|
with open("lib/pkgconfig/xkbregistry.pc", "wt+") as pcf:
|
||||||
|
pcf.write(pc)
|
||||||
|
composer.add("lib/pkgconfig/xkbregistry.pc")
|
||||||
|
composer.makedirs("include/xkbcommon")
|
||||||
|
for i in glob.glob("include/xkbcommon/*"):
|
||||||
|
if "registry" in i:
|
||||||
|
composer.add(i)
|
||||||
|
|
||||||
|
package("libxkbregistry-dev")
|
||||||
|
dep("libxkbregistry (same)")
|
||||||
|
dep("libxml2-dev @same-arch")
|
||||||
|
dep("xkeyboard-config-dev (=2.48) @any")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
|
|
||||||
|
def pack_bin(composer):
|
||||||
|
composer.add("bin")
|
||||||
|
composer.add("libexec")
|
||||||
|
|
||||||
|
package("xkbcli")
|
||||||
|
dep("libxkbcommon (same)")
|
||||||
|
on_pack(pack_bin)
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
from lib.make import *
|
|
||||||
from lib import cpp
|
|
||||||
|
|
||||||
|
|
||||||
version("2.5.1")
|
|
||||||
description("The FreeDesktop Shared MIMO Info database and utilities")
|
|
||||||
maintainer("sisungo <[email protected]>")
|
|
||||||
source_url("https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/2.5.1/shared-mime-info-2.5.1.tar.gz")
|
|
||||||
|
|
||||||
builddep("shortcut/c++")
|
|
||||||
builddep("shortcut/meson")
|
|
||||||
builddep("libintl-dev @target")
|
|
||||||
builddep("gettext")
|
|
||||||
builddep("libxml2-dev @target")
|
|
||||||
builddep("glib-dev @target")
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
|
||||||
cpp.meson_setup([
|
|
||||||
f"--prefix={get_prefix('shared-mime-info')}",
|
|
||||||
"-Dbuild-tools=true",
|
|
||||||
"-Dbuild-translations=true",
|
|
||||||
"-Dbuild-tests=false",
|
|
||||||
"-Dbuild-spec=false",
|
|
||||||
])
|
|
||||||
cpp.meson_compile()
|
|
||||||
cpp.meson_install()
|
|
||||||
|
|
||||||
on_build(build)
|
|
||||||
|
|
||||||
|
|
||||||
def pack(composer):
|
|
||||||
composer.makedir("lib")
|
|
||||||
composer.makedir("share")
|
|
||||||
composer.add_dir("share/mime")
|
|
||||||
composer.add_dir("share/pkgconfig", "lib/pkgconfig")
|
|
||||||
composer.add_dir("share/locale")
|
|
||||||
composer.add_dir("bin")
|
|
||||||
|
|
||||||
package("shared-mime-info")
|
|
||||||
dep("libxml2 @same-arch")
|
|
||||||
dep("libglib @same-arch")
|
|
||||||
dep("libcxx @same-arch")
|
|
||||||
on_pack(pack)
|
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
import glob
|
||||||
|
|
||||||
|
from lib.make import *
|
||||||
|
from lib import cpp, arch
|
||||||
|
|
||||||
|
|
||||||
|
version("2.48")
|
||||||
|
description("a consistent, well-structured, frequently released, open source database of keyboard configuration data")
|
||||||
|
maintainer("sisungo <[email protected]>")
|
||||||
|
source_url("https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/archive/xkeyboard-config-2.48/xkeyboard-config-xkeyboard-config-2.48.tar.gz")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/meson")
|
||||||
|
builddep("libintl-dev @target")
|
||||||
|
builddep("gettext")
|
||||||
|
builddep("libexpat")
|
||||||
|
builddep("perl")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.meson_setup([
|
||||||
|
f"--prefix={get_prefix('xkeyboard-config')}",
|
||||||
|
])
|
||||||
|
cpp.meson_compile()
|
||||||
|
cpp.meson_install()
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def pack(composer):
|
||||||
|
composer.makedir("share")
|
||||||
|
composer.add("share/xkeyboard-config-2")
|
||||||
|
|
||||||
|
package("xkeyboard-config")
|
||||||
|
arch_any()
|
||||||
|
on_pack(pack)
|
||||||
|
|
||||||
|
def pack_dev(composer):
|
||||||
|
for i in glob.glob("share/pkgconfig/*"):
|
||||||
|
with open(i, "r") as file:
|
||||||
|
content = file.read()
|
||||||
|
content = content.replace(get_prefix("xkeyboard-config-dev"), get_prefix("xkeyboard-config"))
|
||||||
|
with open(i, "wt+") as file:
|
||||||
|
file.write(content)
|
||||||
|
composer.makedir("share")
|
||||||
|
composer.add("share/pkgconfig")
|
||||||
|
|
||||||
|
package("xkeyboard-config-dev")
|
||||||
|
arch_any()
|
||||||
|
dep("xkeyboard-config (same-version) @any")
|
||||||
|
on_pack(pack_dev)
|
||||||
Reference in New Issue
Block a user