media-sound/exaile: new package, add 4.2.0

Closes: https://bugs.gentoo.org/950323
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44231
Closes: https://github.com/gentoo/gentoo/pull/44231
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate 2025-10-21 09:42:25 +03:00 committed by Sam James
parent 5304613eb6
commit de980678ff
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 126 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST exaile-4.2.0.tar.gz 3959197 BLAKE2B dac5ca29dc3d514a46d64010ed0dbf385e5b08bf102f2b70363a2eb24fe65a67148a51468c427c8e42b0b77bb4b35d1de99911cbae0eb06decd0786fdbb77006 SHA512 61858a78b54df2a5ef842f6a4899984f618b1408be85d201f378169c532ac77819269e64497b9c615cdbe2048bc3d4bd07b78b4adf36f83cc90f22114319475f

View File

@ -0,0 +1,114 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE="sqlite"
inherit optfeature python-single-r1 xdg
DESCRIPTION="GTK+ based media player aiming to be similar to Amarok"
HOMEPAGE="https://www.exaile.org/"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/exaile/exaile.git"
else
MY_PV="${PV/_/-}"
SRC_URI="
https://github.com/exaile/exaile/releases/download/${MY_PV}/exaile-${MY_PV}.tar.gz
-> ${P}.tar.gz
"
S="${WORKDIR}/${PN}-${MY_PV}"
KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="nls test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="${PYTHON_DEPS}
>=media-libs/gstreamer-1.16[introspection]
>=media-libs/gst-plugins-base-1.16:1.0
>=media-libs/gst-plugins-good-1.16:1.0
>=media-plugins/gst-plugins-meta-1.16:1.0
>=x11-libs/gtk+-3.24:3[introspection]
$(python_gen_cond_dep '
dev-python/berkeleydb[${PYTHON_USEDEP}]
>=media-libs/mutagen-1.44[${PYTHON_USEDEP}]
dev-python/dbus-python[${PYTHON_USEDEP}]
>=dev-python/gst-python-1.16:1.0[${PYTHON_USEDEP}]
dev-python/pycairo[${PYTHON_USEDEP}]
>=dev-python/pygobject-3.24:3[${PYTHON_USEDEP}]
')
"
BDEPEND="${PYTHON_DEPS}
sys-apps/help2man
test? (
$(python_gen_cond_dep '
dev-python/pytest[${PYTHON_USEDEP}]
')
)
nls? (
dev-util/intltool
sys-devel/gettext
)
"
pkg_setup() {
python-single-r1_pkg_setup
}
src_compile() {
emake completion desktop_files$(use nls || echo _no_locale)
use nls && emake locale
# Do it by hand to avoid decompressing gzip
LC_ALL=C help2man -n "music manager and player" -N ./exaile > build/exaile.1 || die
}
src_test() {
local -x EXAILE_DIR="${S}"
epytest
}
src_install() {
emake \
PREFIX=/usr \
LIBINSTALLDIR=/usr/$(get_libdir) \
DESTDIR="${D}" \
PYTHON3_CMD="${EPYTHON}" \
install$(use nls || echo _no_locale)
doman build/exaile.1
python_optimize "${D}/usr/$(get_libdir)/${PN}"
python_optimize "${D}/usr/share/${PN}"
}
pkg_postinst() {
xdg_pkg_postinst
# https://github.com/exaile/exaile/blob/master/DEPS
optfeature "device detection" sys-fs/udisks
optfeature "CD info" dev-python/discid dev-python/musicbrainzngs
#optfeature "DAAP plugins" dev-python/spydaap dev-python/zeroconf # spydaap unpackaged
optfeature "Last.FM integration" dev-python/pylast
optfeature "Lyrics from lyricsmania.com" dev-python/lxml
optfeature "Musicbrainz covers" dev-python/musicbrainzngs
optfeature "Podcast plugin" dev-python/feedparser
optfeature "Wikipedia info" net-libs/webkit-gtk:4.1[introspection]
optfeature "Xlib-based hotkeys" dev-libs/keybinder:3[introspection]
optfeature "scalable icons" gnome-base/librsvg:2
optfeature "native notifications" x11-libs/libnotify[introspection]
optfeature "recording streams" media-sound/streamripper
#optfeature "Moodbar plugin" media-sound/moodbar # moodbar unpackaged
optfeature "BPM counter plugin" media-plugins/gst-plugins-soundtouch
# Extras not mentioned in upstream DEPS file
optfeature "Internet Radio" media-plugins/gst-plugins-soup
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>sound@gentoo.org</email>
<name>Gentoo Sound project</name>
</maintainer>
<upstream>
<remote-id type="github">exaile/exaile</remote-id>
</upstream>
</pkgmetadata>