freedesktop.org/dbus (#3425)

* new file:   projects/freedesktop.org/dbus/package.yml

* darwin path

* meson args for darwin
This commit is contained in:
Andrew 2023-09-25 16:16:41 +03:00 committed by GitHub
parent 54fa657520
commit d71e112da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,55 @@
distributable:
url: https://dbus.freedesktop.org/releases/dbus/dbus-{{version}}.tar.xz
strip-components: 1
versions:
url: https://dbus.freedesktop.org/releases/dbus/
match: /dbus-\d+\.\d+\.\d+\.tar\.xz/
strip:
- /^dbus-/
- /\.tar\.xz/
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
freedesktop.org/pkg-config: '*'
pagure.io/xmlto: '*'
libexpat.github.io: '*'
mesonbuild.com: '*'
ninja-build.org: '*'
darwin:
gnu.org/patch: '*'
script:
- run: curl -L "$PATCH" | patch -p1
if: darwin
- meson setup $MESON_ARGS build
- meson compile -C build --verbose
- meson install -C build
env:
PATCH: https://raw.githubusercontent.com/Homebrew/formula-patches/0a8a55872e/d-bus/org.freedesktop.dbus-session.plist.osx.diff
MESON_ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
darwin:
MESON_ARGS:
- -Dlaunchd_agent_dir={{prefix}}
provides:
- bin/dbus-cleanup-sockets
- bin/dbus-daemon
- bin/dbus-launch
- bin/dbus-monitor
- bin/dbus-run-session
- bin/dbus-send
- bin/dbus-test-tool
- bin/dbus-update-activation-environment
- bin/dbus-uuidgen
test:
dependencies:
python.org: ^3.11
freedesktop.org/pkg-config: '*'
script:
- dbus-daemon --version | grep {{version}}
- uuid=$(dbus-uuidgen)
- python -c "import uuid; uuid.UUID('$uuid')"
- pkg-config --modversion dbus-{{version.major}} | grep {{version}}