commit:     de980678ff47b8aece82929cae90b66d0bd9112b
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Tue Oct 21 06:42:25 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 26 06:17:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de980678

media-sound/exaile: new package, add 4.2.0

Closes: https://bugs.gentoo.org/950323
Signed-off-by: Alfred Wingate <parona <AT> 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 <AT> gentoo.org>

 media-sound/exaile/Manifest            |   1 +
 media-sound/exaile/exaile-4.2.0.ebuild | 114 +++++++++++++++++++++++++++++++++
 media-sound/exaile/metadata.xml        |  11 ++++
 3 files changed, 126 insertions(+)

diff --git a/media-sound/exaile/Manifest b/media-sound/exaile/Manifest
new file mode 100644
index 000000000000..03b27d31315f
--- /dev/null
+++ b/media-sound/exaile/Manifest
@@ -0,0 +1 @@
+DIST exaile-4.2.0.tar.gz 3959197 BLAKE2B 
dac5ca29dc3d514a46d64010ed0dbf385e5b08bf102f2b70363a2eb24fe65a67148a51468c427c8e42b0b77bb4b35d1de99911cbae0eb06decd0786fdbb77006
 SHA512 
61858a78b54df2a5ef842f6a4899984f618b1408be85d201f378169c532ac77819269e64497b9c615cdbe2048bc3d4bd07b78b4adf36f83cc90f22114319475f

diff --git a/media-sound/exaile/exaile-4.2.0.ebuild 
b/media-sound/exaile/exaile-4.2.0.ebuild
new file mode 100644
index 000000000000..9154bdbc6d42
--- /dev/null
+++ b/media-sound/exaile/exaile-4.2.0.ebuild
@@ -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
+}

diff --git a/media-sound/exaile/metadata.xml b/media-sound/exaile/metadata.xml
new file mode 100644
index 000000000000..be10e767cdab
--- /dev/null
+++ b/media-sound/exaile/metadata.xml
@@ -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>[email protected]</email>
+               <name>Gentoo Sound project</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">exaile/exaile</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to