Add new packages and build scripts for various libraries

- Introduced build scripts for gsettings-desktop-schemas, hypercorn, json-glib, libassuan, libbsd, libcloudproviders, libdaemon, libmd, libproxy, libsass, libseccomp, libxcomposite, libxdamage, libxtst, lmdb, python-aiofiles, python-blinker, python-flask, python-h11, python-h2, python-hpack, python-hyperframe, python-itsdangerous, python-more-itertools, python-priority, python-pyaml, python-quart, python-tappy, python-werkzeug, python-wsproto, sassc, snowball, talloc, xmltoman, and xorg-xprop.
- Added TOML configuration files for each package specifying build types, dependencies, and source URLs.
- Implemented custom build scripts for packages requiring specific build commands and configurations.
- Included patches for snowball to make libstemmer a shared library.
This commit is contained in:
2026-03-25 17:44:55 -05:00
parent 47993f6730
commit 45bcdeddaf
51 changed files with 1552 additions and 0 deletions
+255
View File
File diff suppressed because it is too large Load Diff
+44
View File
@@ -0,0 +1,44 @@
[build]
type = "meson"
[build.flags]
build_dir = "build"
configure = [
"-Ddefault_bus=dbus-broker",
"-Ddocs=true",
"-Dgtk2_atk_adaptor=false",
]
skip_tests = true # container doesn't like it
[dependencies]
build = [
"gobject-introspection",
"libxml215",
"meson",
"python-sphinx",
"gi-docgen"
]
runtime = [
"sh",
"dbus",
"glib2",
"glibc",
"gsettings-desktop-schemas",
"libgcc",
"libx11",
"libxi",
"libxtst",
"xorg-xprop",
]
test = [ "at-spi2-core" ]
[package]
description = "Protocol definitions and daemon for D-Bus at-spi"
homepage = "https://gitlab.gnome.org/GNOME/at-spi2-core"
license = "LGPL-2.1-or-later"
name = "at-spi2-core"
version = "2.60.0"
[[source]]
extract_dir = "$name-$version"
url = "https://gitlab.gnome.org/GNOME/at-spi2-core.git#$version"
+32
View File
@@ -0,0 +1,32 @@
[build]
type = "autotools"
[build.flags]
configure = [
"--without-bash-malloc",
"--with-installed-readline",
]
skip-tests = true
[dependencies]
optional = ["bash-completion"]
runtime = [
"readline",
"glibc",
"ncurses",
]
[package]
description = "The GNU Bourne Again shell"
homepage = "https://www.gnu.org/software/bash/"
license = "GPL-3.0-or-later"
name = "bash"
version = "5.3"
[[source]]
extract_dir = "$name-$version"
sha256 = "0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba"
url = "https://mirrors.kernel.org/gnu/bash/bash-$version.tar.gz"
[[manual_sources]]
files = [ "postinstall.sh", "postupdate.sh", "postremove.sh" ]
+5
View File
@@ -0,0 +1,5 @@
grep -qe '^/bin/bash$' etc/shells || echo '/bin/bash' >> etc/shells
grep -qe '^/usr/bin/bash$' etc/shells || echo '/usr/bin/bash' >> etc/shells
grep -qe '^/bin/rbash$' etc/shells || echo '/bin/rbash' >> etc/shells
grep -qe '^/usr/bin/rbash$' etc/shells || echo '/usr/bin/rbash' >> etc/shells
+2
View File
@@ -0,0 +1,2 @@
sed -ri -e '\|^/usr/bin/bash$|d' -e '\|^/bin/bash$|d' etc/shells
sed -ri -e '\|^/usr/bin/rbash$|d' -e '\|^/bin/rbash$|d' etc/shells
+5
View File
@@ -0,0 +1,5 @@
grep -qe '^/bin/bash$' etc/shells || echo '/bin/bash' >> etc/shells
grep -qe '^/usr/bin/bash$' etc/shells || echo '/usr/bin/bash' >> etc/shells
grep -qe '^/bin/rbash$' etc/shells || echo '/bin/rbash' >> etc/shells
grep -qe '^/usr/bin/rbash$' etc/shells || echo '/usr/bin/rbash' >> etc/shells
@@ -0,0 +1,29 @@
[build]
type = "meson"
[build.flags]
build_dir = "build"
post_install = [
"install -Dm644 ../update-desktop-database.toml $DESTDIR/usr/share/depot.d/hooks/update-desktop-database.toml",
]
[dependencies]
build = ["meson"]
runtime = [
"glibc",
"glib2",
]
[package]
description = "Command line utilities for working with desktop entries"
homepage = "https://www.freedesktop.org/wiki/Software/desktop-file-utils"
license = "GPL-2.0-or-later"
name = "desktop-file-utils"
version = "0.28"
[[source]]
extract_dir = "$name-$version"
url = "https://gitlab.freedesktop.org/xdg/desktop-file-utils.git#$version"
[[manual_sources]]
file = "update-desktop-database.toml"
@@ -0,0 +1,12 @@
[hook]
name = "update-desktop-database"
description = "Update desktop file MIME type cache"
[when]
phase = "post"
operation = ["install", "update", "remove"]
paths = ["usr/share/applications/*.desktop"]
[exec]
command = "/usr/bin/update-desktop-database --quiet"
needs_paths = false
+22
View File
@@ -0,0 +1,22 @@
[build]
type = "makefile"
[build.flags]
makefile_commands = ["make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr"]
makefile_install_commands = ["make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr DESTDIR=$DESTDIR install"]
[dependencies]
runtime = ["glibc"]
[package]
description = "Embeddable Javascript engine"
homepage = "https://duktape.org/"
license = "MIT"
name = "duktape"
version = "2.7.0"
[[source]]
extract_dir = "$name-$version"
sha256 = "90f8d2fa8b5567c6899830ddef2c03f3c27960b11aca222fa17aa7ac613c2890"
url = "https://duktape.org/duktape-$version.tar.xz"
post_extract = [ '''sed -i 's/^#undef DUK_USE_FASTINT$/#define DUK_USE_FASTINT/' src/duk_config.h''', '''sed -i 's/duktape\.c/& -lm/' Makefile.sharedlibrary''' ]
+31
View File
@@ -0,0 +1,31 @@
[build]
type = "python"
[dependencies]
build = [
"git",
"python-setuptools",
"python-wheel",
]
runtime = [
"graphviz",
"python",
"python-jinja",
"python-magic",
"python-markdown",
"python-markupsafe",
"python-packaging",
"python-pygments",
"python-typogrify",
]
[package]
description = "Documentation generator for GObject-based libraries"
homepage = "https://gnome.pages.gitlab.gnome.org/gi-docgen/"
license = "Apache-2.0 OR GPL-3.0-or-later"
name = "gi-docgen"
version = "2026.1"
[[source]]
extract_dir = "$name-$version"
url = "https://gitlab.gnome.org/GNOME/gi-docgen.git#$version"
@@ -0,0 +1,30 @@
[build]
type = "meson"
[build.flags]
build_dir = "build"
[dependencies]
build = [
"gsettings-desktop-schemas",
"meson",
]
runtime = [
"glib2",
"glibc",
"gnutls",
"gsettings-system-schemas",
"libproxy",
]
test = [ "ca-certs" ]
[package]
description = "Network extensions for GLib"
homepage = "https://gitlab.gnome.org/GNOME/glib-networking"
license = "LGPL-2.1-or-later"
name = "glib-networking"
version = "2.80.1"
[[source]]
extract_dir = "$name-$version"
url = "https://gitlab.gnome.org/GNOME/glib-networking.git#$version"
+78
View File
@@ -0,0 +1,78 @@
#!/bin/sh
set -eu
makei() {
echo "==> Running: make DESTDIR=\"$pkgdir\" install $*"
make DESTDIR="$pkgdir" install "$@"
}
mesoni() {
echo "==> Running: meson install --destdir \"$pkgdir\" $*"
meson install --destdir "$pkgdir" "$@"
}
cmakei() {
echo "==> Running: cmake --install $*"
DESTDIR="$pkgdir" cmake --install "$@"
}
starmove() {
[ "$#" -ge 1 ] || {
echo "starmove: requires at least one path pattern" >&2
return 1
}
[ "${DEPOT_OUTPUT_NAME:-}" != "" ] || {
echo "starmove: DEPOT_OUTPUT_NAME is not set" >&2
return 1
}
haul "$DEPOT_OUTPUT_NAME" "$@"
}
depot_starbuild_sync_srcdir() {
workdir=${DEPOT_STARBUILD_WORKDIR:?}
compat_root="$workdir/.depot-starbuild"
mkdir -p "$compat_root/packages"
for entry in "$workdir"/* "$workdir"/.[!.]* "$workdir"/..?*; do
[ -e "$entry" ] || [ -L "$entry" ] || continue
base=$(basename "$entry")
[ "$base" = ".depot-starbuild" ] && continue
[ "$base" = "packages" ] && continue
ln -snf "$entry" "$compat_root/$base"
done
mkdir -p "$compat_root/packages/gsettings-desktop-schemas/"
ln -snf "${DEPOT_PRIMARY_DESTDIR:-$DESTDIR}" "$compat_root/packages/gsettings-desktop-schemas/files"
mkdir -p "$compat_root/packages/gsettings-system-schemas/"
ln -snf "$(subdestdir 'gsettings-system-schemas')" "$compat_root/packages/gsettings-system-schemas/files"
srcdir="$compat_root"
export srcdir
}
depot_starbuild_setup_env() {
package_name=$1
package_version='49.1'
pkgdir=${DESTDIR:?}
export package_name package_version pkgdir
LANG=C
LC_ALL=C
export LANG LC_ALL
depot_starbuild_sync_srcdir
}
depot_build() {
depot_starbuild_setup_env 'gsettings-desktop-schemas'
# Add your commands here
meson setup build -Dprefix=/usr --buildtype=release
ninja -C build
ninja -C build test
}
depot_install() {
depot_starbuild_setup_env 'gsettings-desktop-schemas'
mesoni -C build
}
depot_install_gsettings_system_schemas() {
depot_starbuild_setup_env 'gsettings-system-schemas'
starmove usr/share/glib-2.0/schemas/org.gnome.desktop.enums.xml
starmove usr/share/glib-2.0/schemas/org.gnome.system.*.gschema.xml
}
@@ -0,0 +1,34 @@
[build]
type = "custom"
[dependencies]
build = [
"adwaita-fonts",
"dconf",
"git",
"glib2",
"gobject-introspection",
"meson",
]
runtime = [ "adwaita-fonts", "dconf", "gsettings-system-schemas" ]
[package]
description = "GSettings schemas for GNOME desktop components"
homepage = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas"
license = "LGPL-2.1-or-later"
name = "gsettings-desktop-schemas"
version = "50.0"
[package_dependencies.gsettings-system-schemas]
runtime = ["dconf"]
[[packages]]
description = "GSettings schemas for GNOME system components"
homepage = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas"
license = "LGPL-2.1-or-later"
name = "gsettings-system-schemas"
version = "50.0"
[[source]]
extract_dir = "gsettings-desktop-schemas"
url = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas.git#$version"
+27
View File
@@ -0,0 +1,27 @@
[build]
type = "python"
[dependencies]
build = [
"git",
"python-pdm-backend",
]
optional = ["python-trio"]
runtime = [
"python",
"python-h11",
"python-h2",
"python-priority",
"python-wsproto",
]
[package]
description = "An ASGI Server based on Hyper libraries and inspired by Gunicorn"
homepage = "https://github.com/pgjones/hypercorn"
license = "MIT"
name = "hypercorn"
version = "0.18.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/pgjones/hypercorn.git#$version"
+34
View File
@@ -0,0 +1,34 @@
[build]
type = "meson"
[build.flags]
build_dir = "build"
configure = [
"-Dinstalled_tests=false",
"-Dman=true",
]
split-docs = true
[dependencies]
build = [
"docbook-xsl",
"gi-docgen",
"gobject-introspection",
"meson",
"python-docutils",
]
runtime = [
"glib2",
"glibc",
]
[package]
description = "JSON library built on GLib"
homepage = "https://gnome.pages.gitlab.gnome.org/json-glib/"
license = "LGPL-2.1-or-later"
name = "json-glib"
version = "1.10.8"
[[source]]
extract_dir = "$name-$version"
url = "https://gitlab.gnome.org/GNOME/json-glib.git#$version"
+28
View File
@@ -0,0 +1,28 @@
[build]
type = "autotools"
[build.flags]
configure = ["--enable-maintainer-mode"]
[dependencies]
runtime = [
"glibc",
"libgpg-error",
"sh",
]
[package]
description = "IPC library used by some GnuPG related software"
homepage = "https://www.gnupg.org/related_software/libassuan/"
license = [
"FSFULLR",
"GPL-2.0-or-later",
"LGPL-2.1-or-later",
]
name = "libassuan"
version = "3.0.2"
[[source]]
extract_dir = "$name-$version"
sha256 = "d2931cdad266e633510f9970e1a2f346055e351bb19f9b78912475b8074c36f6"
url = "https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-$version.tar.bz2"
+31
View File
@@ -0,0 +1,31 @@
[build]
type = "autotools"
[build.flags]
no-remove-static = true
post_install = [ "rm $DESTDIR/usr/lib/libbsd.a", "rm -f $DESTDIR/usr/share/man/man3/explicit_bzero.3" ]
skip_tests = true
[dependencies]
runtime = [
"glibc",
"libmd",
]
[package]
description = "Provides useful functions commonly found on BSD systems like strlcpy()"
homepage = "https://libbsd.freedesktop.org/"
license = [
"ISC",
"MIT",
"Beerware",
"BSD-2-Clause",
"BSD-3-Clause",
]
name = "libbsd"
version = "0.12.2"
[[source]]
extract_dir = "$name-$version"
sha256 = "b88cc9163d0c652aaf39a99991d974ddba1c3a9711db8f1b5838af2a14731014"
url = "https://libbsd.freedesktop.org/releases/libbsd-$version.tar.xz"
@@ -0,0 +1,32 @@
[build]
type = "meson"
[build.flags]
build_dir = "build"
configure = ["-Ddocumentation=true"]
split-docs = true
skip-tests = true
[dependencies]
build = [
"gi-docgen",
"gobject-introspection",
"meson",
"vala",
]
runtime = [
"libunwind",
"glib2",
"glibc",
]
[package]
description = "DBus API that allows cloud storage sync clients to expose their services"
homepage = "https://gitlab.gnome.org/GNOME/libcloudproviders"
license = "LGPL-3.0-or-later"
name = "libcloudproviders"
version = "0.4.0"
[[source]]
extract_dir = "$name-$version"
url = "https://gitlab.gnome.org/GNOME/libcloudproviders.git#$version"
+21
View File
@@ -0,0 +1,21 @@
[build]
type = "autotools"
[build.flags]
configure = ["--disable-lynx"]
[dependencies]
runtime = ["glibc"]
[package]
description = "Lightweight C library that eases the writing of UNIX daemons"
homepage = "http://0pointer.de/lennart/projects/libdaemon/"
license = "LGPL-2.1-or-Later"
name = "libdaemon"
version = "0.14"
[[source]]
extract_dir = "$name-$version"
post_extract = ["./bootstrap.sh"]
sha256 = "fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834"
url = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-$version.tar.gz"
+22
View File
@@ -0,0 +1,22 @@
[build]
type = "autotools"
[dependencies]
runtime = ["glibc"]
[package]
description = "Message Digest functions from BSD systems"
homepage = "https://www.hadrons.org/software/libmd/"
license = [
"BSD-3-Clause",
"BSD-2-Clause",
"ISC",
"Beerware",
]
name = "libmd"
version = "1.1.0"
[[source]]
extract_dir = "$name-$version"
sha256 = "1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"
url = "https://libbsd.freedesktop.org/releases/$name-$version.tar.xz"
+34
View File
@@ -0,0 +1,34 @@
[build]
type = "meson"
[build.flags]
build_dir = "build"
configure = ["-Drelease=true"]
split-docs = true
[dependencies]
build = [
"gi-docgen",
"gobject-introspection",
"gsettings-desktop-schemas",
"meson",
"vala",
]
runtime = [
"curl",
"duktape",
"glib2",
"glibc",
"libunwind",
]
[package]
description = "Automatic proxy configuration management library"
homepage = "https://libproxy.github.io/libproxy/"
license = "LGPL-2.1-or-later"
name = "libproxy"
version = "0.5.12"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/libproxy/libproxy#$version"
+24
View File
@@ -0,0 +1,24 @@
[build]
type = "autotools"
[build.flags]
env_vars = [ "LIBSASS_VERSION=$version" ]
[dependencies]
runtime = [
"glibc",
"libcxx",
"libunwind",
]
[package]
description = "C implementation of Sass CSS preprocessor (library)"
homepage = "https://sass-lang.com/libsass/"
license = "MIT"
name = "libsass"
version = "3.6.6"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/sass/libsass.git#$version"
post_extract = [ "autoreconf -fiv" ]
+38
View File
@@ -0,0 +1,38 @@
[build]
type = "autotools"
[build.flags]
post_compile = [
"cd src/python && VERSION_RELEASE=$version CPPFLAGS=\"$CPPFLAGS -I../../include\" python3 setup.py bdist_wheel",
]
post_install = [
"cd src/python && VERSION_RELEASE=$version python3 setup.py install --root=$DESTDIR",
]
skip_tests = true
[dependencies]
build = [
"bash",
"cython",
"gperf",
"python",
"python-setuptools",
"python-wheel",
]
runtime = [
"glibc",
]
optional = ["python"]
[package]
description = "Enhanced seccomp library"
homepage = "https://github.com/seccomp/libseccomp"
license = "LGPL-2.1-only"
name = "libseccomp"
version = "2.6.0"
[[source]]
extract_dir = "$name-$version"
post_extract = ["autoreconf -fiv"]
url = "https://github.com/seccomp/libseccomp.git#v$version"
cherry_pick = ["614530bc8b3c9f49aa59d7eaef4863b746504c23"]
+24
View File
@@ -0,0 +1,24 @@
[build]
type = "autotools"
[build.flags]
configure = ["--disable-static"]
[dependencies]
runtime = [ "libxfixes", "xorgproto", "libx11", "glibc" ]
build = [ "xorg-util-macros" ]
[package]
description = "X11 Composite extension library"
homepage = "https://xorg.freedesktop.org/"
license = [
"HPND-sell-variant",
"MIT",
]
name = "libxcomposite"
version = "0.4.7"
[[source]]
extract_dir = "$name-$version"
sha256 = "8bdf310967f484503fa51714cf97bff0723d9b673e0eecbf92b3f97c060c8ccb"
url = "https://xorg.freedesktop.org/releases/individual/lib/libXcomposite-$version.tar.xz"
+20
View File
@@ -0,0 +1,20 @@
[build]
type = "autotools"
[dependencies]
runtime = [ "libxfixes", "xorgproto", "libx11", "glibc" ]
[build.flags]
configure = ["--disable-static"]
[package]
description = "X11 damaged region extension library"
homepage = "https://xorg.freedesktop.org/"
license = "HPND-sell-variant"
name = "libxdamage"
version = "1.1.7"
[[source]]
extract_dir = "$name-$version"
sha256 = "127067f521d3ee467b97bcb145aeba1078e2454d448e8748eb984d5b397bde24"
url = "https://xorg.freedesktop.org/releases/individual/lib/libXdamage-$version.tar.xz"
+33
View File
@@ -0,0 +1,33 @@
[build]
type = "autotools"
[build.flags]
configure = ["--disable-static"]
[dependencies]
build = ["xorg-util-macros"]
runtime = [
"libxext",
"glibc",
"libx11",
"libxi",
"xorgproto",
]
[package]
description = "library for XTEST & RECORD extensions"
homepage = "https://gitlab.freedesktop.org/xorg/lib/libxtst"
license = [
"HPND-doc",
"HPND-doc-sell",
"HPND-sell-variant",
"MIT-open-group",
"X11",
]
name = "libxtst"
version = "1.2.5"
[[source]]
extract_dir = "$name-$version"
sha256 = "b50d4c25b97009a744706c1039c598f4d8e64910c9fde381994e1cae235d9242"
url = "https://xorg.freedesktop.org/releases/individual/lib/libXtst-$version.tar.xz"
+9
View File
@@ -0,0 +1,9 @@
sed -e "s|@PKGVER@|0.9.35|" -i ../lmdb.pc
cd libraries/liblmdb
make CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" prefix=/usr || exit 1
install -dm755 "$DESTDIR/usr/bin" "$DESTDIR/usr/lib" "$DESTDIR/usr/include" "$DESTDIR/usr/man/man1" "$DESTDIR/usr/share" || exit 1
make CC=clang DESTDIR="$DESTDIR" CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" prefix=/usr install || exit 1
mv "$DESTDIR/usr/man" "$DESTDIR/usr/share/man" || exit 1
install -dm755 "$DESTDIR/usr/lib/pkgconfig" || exit 1
cp ../../../lmdb.pc "$DESTDIR/usr/lib/pkgconfig/lmdb.pc" || exit 1
+10
View File
@@ -0,0 +1,10 @@
prefix=/usr
libdir=${prefix}/lib
includedir=${prefix}/include
Name: liblmdb
Description: Lightning Memory-Mapped Database
URL: https://symas.com/products/lightning-memory-mapped-database/
Version: @PKGVER@
Libs: -L${libdir} -llmdb
Cflags: -I${includedir}
+19
View File
@@ -0,0 +1,19 @@
[build]
type = "custom"
[dependencies]
runtime = ["glibc"]
[package]
description = "Symas Lightning Memory-Mapped Database"
homepage = "https://symas.com/lmdb"
license = "OpenLDAP"
name = "lmdb"
version = "0.9.35"
[[manual_sources]]
file = "lmdb.pc"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/LMDB/lmdb.git#LMDB_$version"
@@ -0,0 +1,21 @@
[build]
type = "python"
[dependencies]
build = [
"python-hatch-vcs",
"python-hatchling",
"git"
]
runtime = ["python"]
[package]
description = "File support for asyncio"
homepage = "https://github.com/Tinche/aiofiles"
license = "Apache-2.0"
name = "python-aiofiles"
version = "25.1.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/Tinche/aiofiles.git#v$version"
+17
View File
@@ -0,0 +1,17 @@
[build]
type = "python"
[dependencies]
build = ["python-flit-core"]
runtime = ["python"]
[package]
description = "Fast, simple object-to-object and broadcast signaling"
homepage = "https://blinker.readthedocs.io/"
license = "MIT"
name = "python-blinker"
version = "1.9.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/pallets-eco/blinker.git#$version"
+33
View File
@@ -0,0 +1,33 @@
[build]
type = "python"
[dependencies]
build = [
"python-flit-core",
"python-wheel",
]
optional = [
"python-asgiref",
"python-cryptography",
"python-dotenv",
]
runtime = [
"python",
"python-blinker",
"python-click",
"python-itsdangerous",
"python-jinja",
"python-markupsafe",
"python-werkzeug",
]
[package]
description = "Micro webdevelopment framework for Python"
homepage = "https://flask.palletsprojects.com/"
license = "BSD-3-Clause"
name = "python-flask"
version = "3.1.3"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/pallets/flask.git#$version"
+21
View File
@@ -0,0 +1,21 @@
[build]
type = "python"
[dependencies]
build = [
"git",
"python-setuptools",
"python-wheel",
]
runtime = ["python"]
[package]
description = "pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
homepage = "https://github.com/python-hyper/h11"
license = "MIT"
name = "python-h11"
version = "0.16.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/python-hyper/h11.git#v$version"
+24
View File
@@ -0,0 +1,24 @@
[build]
type = "python"
[dependencies]
build = [
"python-setuptools",
"git",
"python-wheel",
]
runtime = [
"python-hpack",
"python-hyperframe",
]
[package]
description = "HTTP/2 State-Machine based protocol implementation"
homepage = "https://hyper.rtfd.org/"
license = "MIT"
name = "python-h2"
version = "4.3.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/python-hyper/h2.git#v$version"
+21
View File
@@ -0,0 +1,21 @@
[build]
type = "python"
[dependencies]
build = [
"git",
"python-setuptools",
"python-wheel",
]
runtime = ["python"]
[package]
description = "Pure-Python HPACK header compression"
homepage = "https://hyper.rtfd.org/"
license = "MIT"
name = "python-hpack"
version = "4.1.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/python-hyper/hpack.git#v$version"
@@ -0,0 +1,21 @@
[build]
type = "python"
[dependencies]
build = [
"git",
"python-setuptools",
"python-wheel",
]
runtime = ["python"]
[package]
description = "HTTP/2 framing layer for Python"
homepage = "https://hyper.rtfd.org/"
license = "MIT"
name = "python-hyperframe"
version = "6.1.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/python-hyper/hyperframe.git#v$version"
@@ -0,0 +1,20 @@
[build]
type = "python"
[dependencies]
build = [
"python-flit-core",
"python-wheel",
]
runtime = ["python"]
[package]
description = "Various helpers to pass trusted data to untrusted environments"
homepage = "https://itsdangerous.palletsprojects.com/"
license = "BSD-3-Clause"
name = "python-itsdangerous"
version = "2.2.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/mitsuhiko/itsdangerous.git#$version"
@@ -0,0 +1,21 @@
[build]
type = "python"
[dependencies]
build = [
"python-flit-core",
"python-wheel",
"git"
]
runtime = ["python"]
[package]
description = "More routines for operating on iterables, beyond itertools"
homepage = "https://github.com/more-itertools/more-itertools"
license = "MIT"
name = "python-more-itertools"
version = "10.8.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/more-itertools/more-itertools.git#v$version"
@@ -0,0 +1,20 @@
[build]
type = "python"
[dependencies]
build = [
"python-wheel",
"python-setuptools",
]
runtime = ["python"]
[package]
description = "pure-Python implementation of the HTTP/2 priority tree"
homepage = "https://github.com/python-hyper/priority"
license = "MIT"
name = "python-priority"
version = "2.0.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/python-hyper/priority.git#v$version"
+22
View File
@@ -0,0 +1,22 @@
[build]
type = "python"
[dependencies]
build = [
"git",
"python-setuptools",
"python-wheel",
]
optional = ["python-unidecode"]
runtime = ["python-yaml"]
[package]
description = "PyYAML-based module to produce pretty and readable YAML-serialized data"
homepage = "https://github.com/mk-fg/pretty-yaml"
license = "WTFPL"
name = "python-pyaml"
version = "26.2.1"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/mk-fg/pretty-yaml.git#$version"
+34
View File
@@ -0,0 +1,34 @@
[build]
type = "python"
[dependencies]
build = [
"python-flit-core",
"python-wheel",
]
optional = ["python-dotenv"]
runtime = [
"hypercorn",
"python",
"python-aiofiles",
"python-blinker",
"python-click",
"python-importlib-metadata",
"python-flask",
"python-itsdangerous",
"python-jinja",
"python-markupsafe",
"python-werkzeug",
]
[package]
description = "A Python ASGI web microframework with the same API as Flask"
homepage = "https://github.com/pallets/quart"
license = "MIT"
name = "python-quart"
version = "0.20.0"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/pallets/quart.git#$version"
post_extract = [ '''sed 's/name = "Quart"/name = "quart"/' -i pyproject.toml''' ]
+26
View File
@@ -0,0 +1,26 @@
[build]
type = "python"
[dependencies]
build = [
"python-hatchling",
"python-setuptools",
"python-wheel",
]
runtime = [
"python",
"python-babel",
"python-more-itertools",
"python-pyaml",
]
[package]
description = "Test Anything Protocol (TAP) tools for Python"
homepage = "https://pypi.python.org/pypi/tap.py"
license = "BSD-2-Clause"
name = "python-tappy"
version = "3.2.1"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/python-tap/tappy.git#v$version"
@@ -0,0 +1,24 @@
[build]
type = "python"
[dependencies]
build = [
"git",
"python-flit-core",
]
optional = ["python-watchdog"]
runtime = [
"python",
"python-markupsafe",
]
[package]
description = "Swiss Army knife of Python web development"
homepage = "https://werkzeug.palletsprojects.com/"
license = "BSD-3-Clause"
name = "python-werkzeug"
version = "3.1.5"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/pallets/werkzeug.git#$version"
+21
View File
@@ -0,0 +1,21 @@
[build]
type = "python"
[dependencies]
build = [
"git",
"python-setuptools",
"python-wheel",
]
runtime = ["python-h11"]
[package]
description = "WebSockets state-machine based protocol implementation"
homepage = "https://github.com/python-hyper/wsproto"
license = "MIT"
name = "python-wsproto"
version = "1.3.1"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/python-hyper/wsproto.git#$version"
+20
View File
@@ -0,0 +1,20 @@
[build]
type = "autotools"
[dependencies]
runtime = [
"libsass",
"glibc",
]
[package]
description = "C implementation of Sass CSS preprocessor"
homepage = "https://sass-lang.com/"
license = "MIT"
name = "sassc"
version = "3.6.2"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/sass/sassc.git#$version"
post_extract = [ "autoreconf -fiv" ]
@@ -0,0 +1,75 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Fri, 1 Apr 2022 19:55:54 +0000
Subject: [PATCH] Make libstemmer a shared library
---
GNUmakefile | 15 +++++++--------
libstemmer/symbol.map | 6 ++++++
2 files changed, 13 insertions(+), 8 deletions(-)
create mode 100644 libstemmer/symbol.map
diff --git a/GNUmakefile b/GNUmakefile
index e1403be3c85b..e014388a2e92 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -190,20 +190,19 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.o)
JAVA_CLASSES = $(JAVA_SOURCES:.java=.class)
JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class)
-CFLAGS=-g -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wshadow $(WERROR)
-CPPFLAGS=
+CFLAGS+=-fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wshadow $(WERROR)
INCLUDES=-Iinclude
-all: snowball$(EXEEXT) libstemmer.a stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
+all: snowball$(EXEEXT) libstemmer.so.0 stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
algorithms.mk: libstemmer/mkalgorithms.pl libstemmer/modules.txt
libstemmer/mkalgorithms.pl algorithms.mk libstemmer/modules.txt
clean:
rm -f $(COMPILER_OBJECTS) $(RUNTIME_OBJECTS) \
$(LIBSTEMMER_OBJECTS) $(LIBSTEMMER_UTF8_OBJECTS) $(STEMWORDS_OBJECTS) snowball$(EXEEXT) \
- libstemmer.a stemwords$(EXEEXT) \
+ libstemmer.so.0 stemwords$(EXEEXT) \
libstemmer/modules.h \
libstemmer/modules_utf8.h \
$(C_LIB_SOURCES) $(C_LIB_HEADERS) $(C_LIB_OBJECTS) \
@@ -254,19 +253,19 @@ libstemmer/modules_utf8.h libstemmer/mkinc_utf8.mak: libstemmer/mkmodules.pl lib
libstemmer/libstemmer.o: libstemmer/modules.h $(C_LIB_HEADERS)
-libstemmer.a: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
- $(AR) -cru $@ $^
+libstemmer.so.0: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,$@,-version-script,libstemmer/symbol.map -o $@ $^
examples/%.o: examples/%.c
$(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c -o $@ $<
-stemwords$(EXEEXT): $(STEMWORDS_OBJECTS) libstemmer.a
+stemwords$(EXEEXT): $(STEMWORDS_OBJECTS) libstemmer.so.0
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
tests/%.o: tests/%.c
$(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c -o $@ $<
-stemtest$(EXEEXT): $(STEMTEST_OBJECTS) libstemmer.a
+stemtest$(EXEEXT): $(STEMTEST_OBJECTS) libstemmer.so.0
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
csharp_stemwords$(EXEEXT): $(CSHARP_STEMWORDS_SOURCES) $(CSHARP_RUNTIME_SOURCES) $(CSHARP_SOURCES)
diff --git a/libstemmer/symbol.map b/libstemmer/symbol.map
new file mode 100644
index 000000000000..7a3d42356362
--- /dev/null
+++ b/libstemmer/symbol.map
@@ -0,0 +1,6 @@
+SB_STEMMER_0 {
+ global:
+ sb_stemmer_*;
+ local:
+ *;
+};
+33
View File
@@ -0,0 +1,33 @@
[build]
type = "makefile"
[alternatives]
provides = [ "libstemmer" ]
[build.flags]
makefile_commands = ["make"]
makefile_install_commands = [
'install -D snowball stemwords -t "$DESTDIR/usr/bin"',
'install -Dm644 include/libstemmer.h -t "$DESTDIR/usr/include"',
'install -Dm644 libstemmer.so.0 "$DESTDIR/usr/lib/libstemmer.so.0.0.0"',
'ln -s libstemmer.so.0.0.0 "$DESTDIR/usr/lib/libstemmer.so.0"',
'ln -s libstemmer.so.0 "$DESTDIR/usr/lib/libstemmer.so"',
]
[dependencies]
runtime = ["glibc"]
[package]
description = "String processing language for creating stemming algorithms"
homepage = "https://snowballstem.org/"
license = "BSD-3-Clause"
name = "snowball"
version = "3.0.1"
[[source]]
extract_dir = "$name-$version"
url = "https://github.com/snowballstem/snowball#v$version"
patches = [ "0001-Make-libstemmer-a-shared-library.patch" ]
[[manual_sources]]
file = "0001-Make-libstemmer-a-shared-library.patch"
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
set -eu
depot_build() {
export LDFLAGS="$LDFLAGS -Wl,--undefined-version"
./configure --prefix=/usr \
--sysconfdir=/etc/samba \
--localstatedir=/var \
--bundled-libraries=NONE \
--builtin-libraries=replace \
--enable-talloc-compat1
make
}
depot_check() {
make check
}
depot_install() {
make DESTDIR="$DESTDIR" install
}
+26
View File
@@ -0,0 +1,26 @@
[build]
type = "custom"
[dependencies]
build = [
"python",
"docbook-xsl",
]
optional = ["python"]
runtime = [
"glibc",
"libbsd",
"libxcrypt",
]
[package]
description = "Hierarchical pool based memory allocator with destructors"
homepage = "https://talloc.samba.org/"
license = "GPL-3.0-or-later"
name = "talloc"
version = "2.4.4"
[[source]]
extract_dir = "$name-$version"
sha256 = "55e47994018c13743485544e7206780ffbb3c8495e704a99636503e6e77abf59"
url = "https://www.samba.org/ftp/talloc/talloc-$version.tar.gz"
+24
View File
@@ -0,0 +1,24 @@
[build]
type = "makefile"
[build.flags]
makefile_commands = ["make PREFIX=/usr"]
makefile_install_commands = ["make PREFIX=/usr DESTDIR=$DESTDIR install"]
[dependencies]
runtime = [
"perl",
"perl-xml-parser",
]
[package]
description = "Convert xml to man pages in groff format or html"
homepage = "https://sourceforge.net/projects/xmltoman/"
license = "GPL-2.0-or-later"
name = "xmltoman"
version = "0.4"
[[source]]
extract_dir = "$name-$version"
sha256 = "md5:99be944b9fce40b3fe397049bf14a097"
url = "https://sourceforge.net/projects/xmltoman/files/xmltoman/xmltoman-$version.tar.gz/xmltoman-$version.tar.gz"
+22
View File
@@ -0,0 +1,22 @@
[build]
type = "autotools"
[dependencies]
build = ["xorg-util-macros"]
runtime = [
"libx11",
"glibc",
]
groups = [ "xorg-apps", "xorg" ]
[package]
description = "Property displayer for X"
homepage = "https://gitlab.freedesktop.org/xorg/app/xprop"
license = "MIT-open-group"
name = "xorg-xprop"
version = "1.2.8"
[[source]]
extract_dir = "$name-$version"
sha256 = "d689e2adb7ef7b439f6469b51cda8a7daefc83243854c2a3b8f84d0f029d67ee"
url = "https://xorg.freedesktop.org/archive/individual/app/xprop-$version.tar.xz"