Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-video: fix baka-mplayer QA issues #52

Merged
merged 2 commits into from
Dec 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion media-video/baka-mplayer/Manifest

This file was deleted.

30 changes: 22 additions & 8 deletions media-video/baka-mplayer/baka-mplayer-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
inherit git-2 eutils qmake-utils
EAPI=6
inherit git-r3 eutils qmake-utils xdg-utils

DESCRIPTION="Cross-platform libmpv-based multimedia player with uncluttered design"
HOMEPAGE="http://bakamplayer.u8sand.net/"
Expand All @@ -14,24 +13,29 @@ SLOT="0"
KEYWORDS=""
IUSE=""

RDEPEND="dev-qt/qtcore:5
BDEPEND="
dev-qt/linguist-tools:5
virtual/pkconfig
"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtsvg:5
dev-qt/qtwidgets:5
dev-qt/qtx11extras:5
media-video/mpv[libmpv]
x11-libs/libX11"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DEPEND="${RDEPEND}"

S="${WORKDIR}/Baka-MPlayer-${PV}"
S="${WORKDIR}/${PF}"

src_prepare() {
# no need to install license
sed -e '/^INSTALLS/s:license::' -i src/Baka-MPlayer.pro || die
# put manual in our docdir
sed -e '/^manual.path/s:'${PN}':'${PF}':' -i src/Baka-MPlayer.pro || die
eapply_user
}

src_configure() {
Expand All @@ -42,3 +46,13 @@ src_configure() {
lupdate="$(qt5_get_bindir)"/lupdate \
src/Baka-MPlayer.pro
}

pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}

pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}