mpv-plugin/mpv-mpris: add 1.0, drop CFLAGS patching

CFLAGS are now honoured in correct order by the build system,
i.e. -O* is not overwritten anymore.

Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
This commit is contained in:
Oliver Freyermuth
2023-03-30 22:33:07 +02:00
parent 6fbbec5772
commit 95e13e9442
3 changed files with 59 additions and 5 deletions

View File

@@ -1,2 +1,3 @@
DIST mpv-mpris-0.8.1.tar.gz 13469 BLAKE2B a284a9ffb7f0c36254bcec6d5cc102e19bca551b02657c1802cc0790e7ce61866b8928fa42e0de483463a05e2e513d90f53477b3fd5ca2cf29c1ce0fe8efc766 SHA512 a7ed2c7d5d0b7eb323026ae7b21c8a55e02a90b9fe761d7162ed7162200cf00793842f04a7a2ac841f7de3196657cfb17029ce7285ea977cd35284879db0184d
DIST mpv-mpris-0.9.tar.gz 13746 BLAKE2B bcfb6efd51265409545e007980774b1ee7b7415fd89788c909be95d0fa12175c8ef9529d18c608345e88b6cba2b11f98a7bcb6cc1977a8b791b7025b6197c269 SHA512 82845320fe8d1ce903e8c9027070339d0281ace3887743728df0c0b4abb12de59bd7e86927d86b2669c54f80fee03d5f65e2c086ddafd5bcf55039db51bf64fc
DIST mpv-mpris-1.0.tar.gz 13974 BLAKE2B fd74326ef24f080505f7da075603b16a44a3c44cebe716ab7c7b013d49e0247e9f4c7b52e842044419a561d3d60cf806682e68343f1f4679e11d562eb8308385 SHA512 edc8218477a3b9b6c0568a122f3c02efde86a4de97f84872b767031e58c6916d4e3b34de75275538e8f18f28f15a139d8fca8631a76cecc04d8df88c457d5fad

View File

@@ -0,0 +1,58 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MPV_REQ_USE="cplugins(+),libmpv"
inherit mpv-plugin toolchain-funcs
DESCRIPTION="MPRIS plugin for mpv"
HOMEPAGE="https://github.com/hoyon/mpv-mpris"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hoyon/${PN}.git"
else
SRC_URI="https://github.com/hoyon/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
fi
LICENSE="MIT"
IUSE="test"
RDEPEND="
dev-libs/glib:2
"
DEPEND="${RDEPEND}"
# temporary dep for tests on media-video/mpv due to https://github.com/mpv-player/mpv/pull/11468
BDEPEND="
virtual/pkgconfig
test? (
app-misc/jq
app-text/jo
media-sound/playerctl
|| (
media-video/mpv[lua]
media-video/mpv[javascript]
>=media-video/mpv-0.36
)
net-misc/socat
sys-apps/dbus
x11-apps/xauth
x11-misc/xvfb-run
x11-themes/sound-theme-freedesktop
)
"
MPV_PLUGIN_FILES=( mpris.so )
RESTRICT="!test? ( test )"
src_compile() {
tc-export CC
emake PKG_CONFIG="$(tc-getPKG_CONFIG)"
}
src_test() {
emake test
}

View File

@@ -48,11 +48,6 @@ MPV_PLUGIN_FILES=( mpris.so )
RESTRICT="!test? ( test )"
src_prepare() {
sed -e 's:-O2 ::' -i Makefile || die "sed Makefile(s) failed"
default
}
src_compile() {
tc-export CC
emake PKG_CONFIG="$(tc-getPKG_CONFIG)"