mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
freedesktop.org/dbus (#3425)
* new file: projects/freedesktop.org/dbus/package.yml * darwin path * meson args for darwin
This commit is contained in:
parent
54fa657520
commit
d71e112da6
1 changed files with 55 additions and 0 deletions
55
projects/freedesktop.org/dbus/package.yml
Normal file
55
projects/freedesktop.org/dbus/package.yml
Normal 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}}
|
Loading…
Reference in a new issue