commit: 304d220ac6447c1839923ad85030ce38c4639c41
Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Sun Jun 26 14:40:57 2022 +0000
Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Sun Jun 26 14:40:57 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=304d220a
media-sound/nulloy: add 0.8.2, 9999
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>
media-sound/nulloy/Manifest | 2 +
media-sound/nulloy/files/nulloy.patch | 12 ++++++
media-sound/nulloy/metadata.xml | 11 ++++++
media-sound/nulloy/nulloy-0.9.3.ebuild | 63 ++++++++++++++++++++++++++++++
media-sound/nulloy/nulloy-9999.ebuild | 70 ++++++++++++++++++++++++++++++++++
5 files changed, 158 insertions(+)
diff --git a/media-sound/nulloy/Manifest b/media-sound/nulloy/Manifest
new file mode 100644
index 000000000..96d9bfaa2
--- /dev/null
+++ b/media-sound/nulloy/Manifest
@@ -0,0 +1,2 @@
+DIST nulloy-0.9.3.tar.gz 374184 BLAKE2B
49dc31e3e30b89bab62dcdaeea56a71da4a54a19a866df47034708659494aaca3c622c1466a62ffd1d9f6247e14d06eb2d6992d9779c619c6bcf07154ae10731
SHA512
884828a0968c651af770042aade1ed4491e8d8f49c5e7b16df0115841a3883df00f190da6c1478f2eb9ed065ef0372ff7635e2c5d8d32ec5af8b55b00302b0a9
+DIST nulloy-theme-night-v1.0.tar.gz 350556 BLAKE2B
dbb9b81c1fce9bcc1da4a99ef0369280770e221b2615e9421f7165d450362d96e180a6460b839d0adc21c16286309cffcefe04dba9e1fe5b31c9df729415c883
SHA512
5e4c43d4a5cb1cb41b23e243d12ade6abc7309136caf69a8e0fa24becab22edf5c9b955e5933e3cb9f104e5cd953f9a46344ad04beb3e08e154725de7c852a70
diff --git a/media-sound/nulloy/files/nulloy.patch
b/media-sound/nulloy/files/nulloy.patch
new file mode 100644
index 000000000..155879b1b
--- /dev/null
+++ b/media-sound/nulloy/files/nulloy.patch
@@ -0,0 +1,12 @@
+index 4ddee63..5f02c60 100644
+--- a/src/skins/skins.pri
++++ b/src/skins/skins.pri
+@@ -12,7 +12,7 @@ win32 {
+ ZIP_DEL_CMD = 7z d -tzip
+ }
+
+-unix:SKINS = metro silver slim
++unix:SKINS = metro silver slim night
+ win32:SKINS = Metro Silver Slim
+ for(skin, SKINS) {
+ _depends = $$SRC_DIR/skins/$$lower($${skin})/*
diff --git a/media-sound/nulloy/metadata.xml b/media-sound/nulloy/metadata.xml
new file mode 100644
index 000000000..7e06a7d4b
--- /dev/null
+++ b/media-sound/nulloy/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="person" proxied="yes">
+ <email>[email protected]</email>
+ <name>Vitaly Zdanevich</name>
+ </maintainer>
+ <use>
+ <flag name="skins">Add a few themes, enable if you want
dark</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-sound/nulloy/nulloy-0.9.3.ebuild
b/media-sound/nulloy/nulloy-0.9.3.ebuild
new file mode 100644
index 000000000..2a8ed1a32
--- /dev/null
+++ b/media-sound/nulloy/nulloy-0.9.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg
+
+DESCRIPTION="Music player with a waveform progress bar (sound visualization
like in audio editors)"
+HOMEPAGE="https://nulloy.com"
+
+NAME="nulloy-theme-night-v1.0"
+SRC_URI="https://github.com/nulloy/nulloy/archive/refs/tags/${PV}.tar.gz ->
${P}.tar.gz
+ skins? (
https://gitlab.com/vitaly-zdanevich/nulloy-theme-night/-/archive/v1.0/${NAME}.tar.gz
)"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+skins"
+
+BDEPEND="dev-qt/linguist-tools"
+
+DEPEND="
+ dev-qt/qtcore
+ dev-qt/designer
+ dev-qt/linguist
+ dev-qt/qtscript
+ dev-qt/qtx11extras
+ media-libs/gstreamer
+ media-libs/gst-plugins-base
+ media-plugins/gst-plugins-meta
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ if use skins ; then
+ eapply "${FILESDIR}"/nulloy.patch
+
+ cp -r $WORKDIR/$NAME src/skins/night
+ fi
+
+ default
+}
+
+src_configure() {
+ # Upstream ./configure script does not support specifying an option's
+ # value after an equal sign like in '--prefix="${EPREFIX}/usr"', so we
+ # have to set up all the options ourselves and call the script directly
+ local myconfargs=(
+ $(use skins || echo --no-skins)
+ --no-update-check
+ --no-taglib
+ --gstreamer-tagreader
+ --prefix "${EPREFIX}/usr"
+ --libdir "$(get_libdir)"
+ )
+
+ ./configure "${myconfargs[@]}" || die
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}
diff --git a/media-sound/nulloy/nulloy-9999.ebuild
b/media-sound/nulloy/nulloy-9999.ebuild
new file mode 100644
index 000000000..4cd2267fd
--- /dev/null
+++ b/media-sound/nulloy/nulloy-9999.ebuild
@@ -0,0 +1,70 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit git-r3 xdg
+
+DESCRIPTION="Music player with a waveform progress bar (sound visualization
like in audio editors)"
+HOMEPAGE="https://nulloy.com"
+
+EGIT_REPO_URI="https://github.com/nulloy/nulloy"
+EGIT_CLONE_TYPE="shallow"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="+skins"
+
+BDEPEND="dev-qt/linguist-tools"
+
+DEPEND="
+ dev-qt/qtcore
+ dev-qt/designer
+ dev-qt/linguist
+ dev-qt/qtscript
+ dev-qt/qtx11extras
+ media-libs/gstreamer
+ media-libs/gst-plugins-base
+ media-plugins/gst-plugins-meta
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ git-r3_src_unpack
+
+ if use skins ; then
+
EGIT_REPO_URI=https://gitlab.com/vitaly-zdanevich/nulloy-theme-night.git
+ EGIT_CHECKOUT_DIR=${WORKDIR}/night
+ git-r3_src_unpack
+ fi
+}
+
+src_prepare() {
+ if use skins ; then
+ default
+
+ eapply "${FILESDIR}"/nulloy.patch
+ cp -r $WORKDIR/night src/skins
+ fi
+}
+
+src_configure() {
+ # Upstream ./configure script does not support specifying an option's
+ # value after an equal sign like in '--prefix="${EPREFIX}/usr"', so we
+ # have to set up all the options ourselves and call the script directly
+ local myconfargs=(
+ $(use skins || echo --no-skins)
+ --no-update-check
+ --no-taglib
+ --gstreamer-tagreader
+ --prefix "${EPREFIX}/usr"
+ --libdir "$(get_libdir)"
+ )
+
+ ./configure "${myconfargs[@]}" || die
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}