gentoo-overlay/media-sound/cozy/cozy-1.2.1.ebuild

73 lines
1.7 KiB
Bash
Raw Normal View History

2021-04-29 11:03:43 +03:00
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
2022-09-14 15:31:41 +03:00
PYTHON_COMPAT=( python3_{8..11} )
2021-04-29 11:03:43 +03:00
inherit distutils-r1 meson gnome2-utils xdg-utils
DESCRIPTION="A modern audio book player for Linux and macOS using GTK+ 3"
2022-09-14 15:31:41 +03:00
HOMEPAGE="https://cozy.sh https://github.com/geigi/cozy"
2021-04-29 11:03:43 +03:00
SRC_URI="https://github.com/geigi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-lang/python-3.0
>=x11-libs/gtk+-3.22:3
2021-06-02 15:44:10 +03:00
>=dev-libs/granite-5.3.0
2021-04-29 11:03:43 +03:00
>=dev-python/peewee-3.9.6[${PYTHON_USEDEP}]
media-libs/mutagen[${PYTHON_USEDEP}]
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
sys-apps/file
dev-python/apsw[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
gui-libs/libhandy:1
media-libs/gstreamer:1.0
media-libs/gst-plugins-good:1.0
media-libs/gst-plugins-bad:1.0
media-libs/gst-plugins-ugly:1.0
media-plugins/gst-plugins-libav:1.0
dev-python/gst-python:1.0[${PYTHON_USEDEP}]
dev-python/distro[${PYTHON_USEDEP}]
dev-libs/appstream-glib
dev-util/desktop-file-utils
dev-libs/libdazzle"
2021-04-29 11:03:43 +03:00
DEPEND="${RDEPEND}
>=dev-util/meson-0.4.0
dev-util/ninja
dev-python/setuptools[${PYTHON_USEDEP}]"
2021-04-29 11:12:45 +03:00
src_prepare() {
default
sed -i '/post_install_desktop_database.py/Id' meson.build || die
}
2021-04-29 11:03:43 +03:00
src_configure() {
meson_src_configure
}
src_install() {
meson_src_install
}
pkg_postinst() {
xdg_icon_cache_update
gnome2_schemas_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_icon_cache_update
gnome2_schemas_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}