Merge updates from master

This commit is contained in:
Repository mirror & CI
2024-04-18 21:48:15 +00:00
5 changed files with 47 additions and 102 deletions

View File

@@ -0,0 +1 @@
DIST PlexAPI-4.15.11.tar.gz 151839 BLAKE2B 3ee67dc00cd948d85742a03aa4bd5072a147eed586b02790565edccda2f8d73d46a7f002c862eec91772e8f0ec7f7349c32065acd2a8d2599e4a98d2eea403aa SHA512 ccfac639a74f97ff4d22be3f649abbc5d8e0df5fef3df713d559c48277afa6d23e759dd7c796e25da634b0890d5994b782436eeafcf0a6174c422193d47dd5c0

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>davidroman96@gmail.com</email>
<name>David Roman</name>
</maintainer>
<upstream>
<remote-id type="pypi">plexapi</remote-id>
<remote-id type="github">pkkid/python-plexapi</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,30 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYPI_PN="PlexAPI"
PYPI_NO_NORMALIZE=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10,11,12} )
inherit distutils-r1 pypi
DESCRIPTION="Python bindings for the Plex API."
HOMEPAGE="
https://pypi.org/project/plexapi/
https://github.com/pkkid/python-plexapi
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
# almost all tests requires a running server
RESTRICT="test"
RDEPEND="
dev-python/requests[${PYTHON_USEDEP}]
"
distutils_enable_sphinx docs

View File

@@ -1,102 +0,0 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PLOCALES="cs de es fr_FR hu id it ja_JP nb_NO pl pt pt_BR pt_PT ru sv tr zh_CN"
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
inherit cmake desktop distutils-r1 plocale
DESCRIPTION="The desktop music player of today!"
HOMEPAGE="https://tauonmusicbox.rocks/"
if [[ ${PV} == *9999 ]]; then
EGIT_SUBMODULES=()
inherit git-r3
EGIT_REPO_URI="https://github.com/Taiko2k/${PN}"
else
SRC_URI="https://github.com/Taiko2k/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
PHAZOR_DEPS="
dev-libs/miniaudio
media-libs/flac
media-libs/libopenmpt
media-sound/mpg123
media-libs/opus
media-libs/opusfile
media-sound/wavpack
media-libs/libsamplerate
sci-libs/kissfft[-cpu_flags_x86_sse]
"
DEPEND="
dev-python/musicbrainzngs[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/PySDL2[${PYTHON_USEDEP}]
media-libs/mutagen[${PYTHON_USEDEP}]
${PHAZOR_DEPS}
"
RDEPEND="${DEPEND}"
BDEPEND="sys-devel/gettext"
src_prepare() {
# Workaround. If PATCHES is used it would be applied to times and fail
eapply "${FILESDIR}/${PN}-fix-build-system.patch"
distutils-r1_src_prepare
cmake_src_prepare
}
src_configure() {
distutils-r1_src_configure
cmake_src_configure
}
src_compile() {
distutils-r1_src_compile
cmake_src_compile
build_locale() {
msgfmt -o "locale/${1}/LC_MESSAGES/tauon.mo" "locale/${1}/LC_MESSAGES/tauon.po" || die
}
plocale_for_each_locale build_locale
}
src_test() {
distutils-r1_src_test
cmake_src_test
}
python_install() {
dobin tauon.py
dolib.so "${WORKDIR}/${P}_build/libphazor.so"
install_locale() {
insinto "/usr/share/locale/${1}/LC_MESSAGES"
doins "locale/${1}/LC_MESSAGES/tauon.mo"
}
plocale_for_each_locale install_locale
insinto "/usr/share/${PN}"
doins -r assets theme templates
doins input.txt
dosym "/usr/$(get_libdir)/libphazor.so" "/usr/share/${PN}/lib/libphazor.so"
sed -i 's/\/opt\/tauon-music-box\/tauonmb.sh/tauon.py/g' extra/tauonmb.desktop || die
domenu extra/tauonmb.desktop
doicon -s scalable extra/tauonmb.svg
distutils-r1_python_install
}

View File

@@ -38,10 +38,12 @@ PHAZOR_DEPS="
"
DEPEND="
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/musicbrainzngs[${PYTHON_USEDEP}]
dev-python/natsort[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/PySDL2[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/setproctitle[${PYTHON_USEDEP}]
dev-python/send2trash[${PYTHON_USEDEP}]
media-video/ffmpeg
@@ -55,6 +57,7 @@ RDEPEND="
${DEPEND}
dev-libs/libappindicator
x11-libs/libnotify
"
BDEPEND="sys-devel/gettext"
@@ -111,4 +114,5 @@ python_install() {
pkg_postinst() {
optfeature "last fm support" dev-python/pylast
optfeature "PLEX support" dev-python/plexapi
}