Skip to content

Commit

Permalink
media-sound/pwvucontrol: new package, add 0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Jan 13, 2025
1 parent 0e203a9 commit b51a4cf
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ The following packages are available in this overlay:
* media-plugins/obs-wlrobs
* An obs-studio plugin that allows you to screen capture on wlroots based wayland compositors
* https://hg.sr.ht/~scoopta/wlrobs
* media-sound/pwvucontrol
* Pipewire Volume Control
* https://github.com/saivert/pwvucontrol
* media-video/libwireplumber-compat
* Compatibility version 4.x of libwireplumber
* Dependency for pwvucontrol (wireplumber.rs)
Expand Down
1 change: 1 addition & 0 deletions media-sound/pwvucontrol/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST pwvucontrol-0.4.7.tar.xz 21750052 BLAKE2B f20cae83f0a429c322eca491b671ef729d6eb71a9764fd5381ca8b8123e14a762e0ed29a84b5cd28af62a0127ffe1d93cee9ed79542529e78f6d224bc53e6f26 SHA512 63e34c8ddcec2c625d734999dae23349125e2149ca075feddac373acb789aeeb4baaa1c5c7a2efdd4565e8b3f5f512ef7464eb967df60a979d021d745ef0dbde
11 changes: 11 additions & 0 deletions media-sound/pwvucontrol/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Benjamin Neff</name>
<email>[email protected]</email>
</maintainer>
<upstream>
<remote-id type="github">saivert/pwvucontrol</remote-id>
</upstream>
</pkgmetadata>
67 changes: 67 additions & 0 deletions media-sound/pwvucontrol/pwvucontrol-0.4.7.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson cargo gnome2-utils

WIREPLUMBER_RS_COMMIT="6e48383a85aecfca22dac3ffc589fb3f25404eda"

DESCRIPTION="Pipewire Volume Control"
HOMEPAGE="https://github.com/saivert/pwvucontrol"
SRC_URI="https://github.com/saivert/${PN}/releases/download/${PV}/${P}.tar.xz"

LICENSE="GPL-3"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT MPL-2.0
Unicode-DFS-2016
"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
>=dev-libs/glib-2.66
gui-libs/gtk:4
>=gui-libs/libadwaita-1.2
media-video/pipewire
>=media-video/libwireplumber-compat-0.4.15:0.4
"
RDEPEND="${DEPEND}"

src_configure() {
meson_src_configure

# Use vendored crates with gentoo cargo config for offline build
rm -rf "${WORKDIR}/cargo_home/gentoo"
ln -s "${WORKDIR}/${P}/vendor" "${WORKDIR}/cargo_home/gentoo"
ln -s "${WORKDIR}/cargo_home" "${BUILD_DIR}/cargo-home"

# Added from .cargo/config to also replace git crates
cat <<-EOF >> "${WORKDIR}/cargo_home/config.toml"
[source."git+https://github.com/arcnmx/wireplumber.rs.git?rev=${WIREPLUMBER_RS_COMMIT}"]
git = "https://github.com/arcnmx/wireplumber.rs.git"
rev = "${WIREPLUMBER_RS_COMMIT}"
replace-with = "gentoo"
EOF
}

src_compile() {
meson_src_compile
}

src_install() {
meson_src_install
}

pkg_postinst() {
gnome2_gconf_install
gnome2_schemas_update
xdg_icon_cache_update
}

pkg_postrm() {
gnome2_gconf_uninstall
gnome2_schemas_update
xdg_icon_cache_update
}
15 changes: 15 additions & 0 deletions metadata/md5-cache/media-sound/pwvucontrol-0.4.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
BDEPEND=>=dev-build/meson-1.2.3 app-alternatives/ninja dev-build/meson-format-array || ( dev-lang/rust-bin:1.84.0 dev-lang/rust:1.84.0 dev-lang/rust-bin:1.83.0 dev-lang/rust:1.83.0 dev-lang/rust-bin:1.82.0 dev-lang/rust:1.82.0 dev-lang/rust-bin:1.81.0 dev-lang/rust:1.81.0 dev-lang/rust-bin:1.80.1 dev-lang/rust:1.80.1 dev-lang/rust-bin:1.79.0 dev-lang/rust:1.79.0 dev-lang/rust-bin:1.78.0 dev-lang/rust:1.78.0 dev-lang/rust-bin:1.77.1 dev-lang/rust:1.77.1 dev-lang/rust-bin:1.76.0 dev-lang/rust:1.76.0 dev-lang/rust-bin:1.75.0 dev-lang/rust:1.75.0 dev-lang/rust-bin:1.74.1 dev-lang/rust:1.74.1 dev-lang/rust-bin:1.71.1 dev-lang/rust:1.71.1 )
DEFINED_PHASES=compile configure install postinst postrm setup test unpack
DEPEND=>=dev-libs/glib-2.66 gui-libs/gtk:4 >=gui-libs/libadwaita-1.2 media-video/pipewire >=media-video/libwireplumber-compat-0.4.15:0.4
DESCRIPTION=Pipewire Volume Control
EAPI=8
HOMEPAGE=https://github.com/saivert/pwvucontrol
INHERIT=meson cargo gnome2-utils
IUSE=debug
KEYWORDS=~amd64
LICENSE=GPL-3 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT MPL-2.0 Unicode-DFS-2016
RDEPEND=>=dev-libs/glib-2.66 gui-libs/gtk:4 >=gui-libs/libadwaita-1.2 media-video/pipewire >=media-video/libwireplumber-compat-0.4.15:0.4
SLOT=0
SRC_URI=https://github.com/saivert/pwvucontrol/releases/download/0.4.7/pwvucontrol-0.4.7.tar.xz
_eclasses_=toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 python-utils-r1 42c5abe4a656a4993a06a4fc61dbdd12 meson 99466844dd8d4fcfb07578a76f5a9922 rust 44c8464f6266787f32aab8b1f056a28b rust-toolchain 3f822985d9297438ed2443aa1fbdf33e cargo b5f350ebe96460cff090d0f2ae7e698a xdg-utils 42869b3c8d86a70ef3cf75165a395e09 gnome2-utils a8cf148ec7f5ae0b1f1d33ae5f7f9e88
_md5_=b802e78ffb5330bc66812596b36fbb89

0 comments on commit b51a4cf

Please sign in to comment.