Gentoo Archives: gentoo-commits

From: Vitaly Zdanevich <zdanevich.vitaly@××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-sound/nulloy/files/, media-sound/nulloy/
Date: Sun, 26 Jun 2022 14:42:04
Message-Id: 1656254457.304d220ac6447c1839923ad85030ce38c4639c41.zdanevich.vitaly@gentoo
1 commit: 304d220ac6447c1839923ad85030ce38c4639c41
2 Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
3 AuthorDate: Sun Jun 26 14:40:57 2022 +0000
4 Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
5 CommitDate: Sun Jun 26 14:40:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=304d220a
7
8 media-sound/nulloy: add 0.8.2, 9999
9
10 Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>
11
12 media-sound/nulloy/Manifest | 2 +
13 media-sound/nulloy/files/nulloy.patch | 12 ++++++
14 media-sound/nulloy/metadata.xml | 11 ++++++
15 media-sound/nulloy/nulloy-0.9.3.ebuild | 63 ++++++++++++++++++++++++++++++
16 media-sound/nulloy/nulloy-9999.ebuild | 70 ++++++++++++++++++++++++++++++++++
17 5 files changed, 158 insertions(+)
18
19 diff --git a/media-sound/nulloy/Manifest b/media-sound/nulloy/Manifest
20 new file mode 100644
21 index 000000000..96d9bfaa2
22 --- /dev/null
23 +++ b/media-sound/nulloy/Manifest
24 @@ -0,0 +1,2 @@
25 +DIST nulloy-0.9.3.tar.gz 374184 BLAKE2B 49dc31e3e30b89bab62dcdaeea56a71da4a54a19a866df47034708659494aaca3c622c1466a62ffd1d9f6247e14d06eb2d6992d9779c619c6bcf07154ae10731 SHA512 884828a0968c651af770042aade1ed4491e8d8f49c5e7b16df0115841a3883df00f190da6c1478f2eb9ed065ef0372ff7635e2c5d8d32ec5af8b55b00302b0a9
26 +DIST nulloy-theme-night-v1.0.tar.gz 350556 BLAKE2B dbb9b81c1fce9bcc1da4a99ef0369280770e221b2615e9421f7165d450362d96e180a6460b839d0adc21c16286309cffcefe04dba9e1fe5b31c9df729415c883 SHA512 5e4c43d4a5cb1cb41b23e243d12ade6abc7309136caf69a8e0fa24becab22edf5c9b955e5933e3cb9f104e5cd953f9a46344ad04beb3e08e154725de7c852a70
27
28 diff --git a/media-sound/nulloy/files/nulloy.patch b/media-sound/nulloy/files/nulloy.patch
29 new file mode 100644
30 index 000000000..155879b1b
31 --- /dev/null
32 +++ b/media-sound/nulloy/files/nulloy.patch
33 @@ -0,0 +1,12 @@
34 +index 4ddee63..5f02c60 100644
35 +--- a/src/skins/skins.pri
36 ++++ b/src/skins/skins.pri
37 +@@ -12,7 +12,7 @@ win32 {
38 + ZIP_DEL_CMD = 7z d -tzip
39 + }
40 +
41 +-unix:SKINS = metro silver slim
42 ++unix:SKINS = metro silver slim night
43 + win32:SKINS = Metro Silver Slim
44 + for(skin, SKINS) {
45 + _depends = $$SRC_DIR/skins/$$lower($${skin})/*
46
47 diff --git a/media-sound/nulloy/metadata.xml b/media-sound/nulloy/metadata.xml
48 new file mode 100644
49 index 000000000..7e06a7d4b
50 --- /dev/null
51 +++ b/media-sound/nulloy/metadata.xml
52 @@ -0,0 +1,11 @@
53 +<?xml version="1.0" encoding="UTF-8"?>
54 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
55 +<pkgmetadata>
56 + <maintainer type="person" proxied="yes">
57 + <email>zdanevich.vitaly@××.ru</email>
58 + <name>Vitaly Zdanevich</name>
59 + </maintainer>
60 + <use>
61 + <flag name="skins">Add a few themes, enable if you want dark</flag>
62 + </use>
63 +</pkgmetadata>
64
65 diff --git a/media-sound/nulloy/nulloy-0.9.3.ebuild b/media-sound/nulloy/nulloy-0.9.3.ebuild
66 new file mode 100644
67 index 000000000..2a8ed1a32
68 --- /dev/null
69 +++ b/media-sound/nulloy/nulloy-0.9.3.ebuild
70 @@ -0,0 +1,63 @@
71 +# Copyright 2022 Gentoo Authors
72 +# Distributed under the terms of the GNU General Public License v2
73 +
74 +EAPI=8
75 +
76 +inherit xdg
77 +
78 +DESCRIPTION="Music player with a waveform progress bar (sound visualization like in audio editors)"
79 +HOMEPAGE="https://nulloy.com"
80 +
81 +NAME="nulloy-theme-night-v1.0"
82 +SRC_URI="https://github.com/nulloy/nulloy/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
83 + skins? ( https://gitlab.com/vitaly-zdanevich/nulloy-theme-night/-/archive/v1.0/${NAME}.tar.gz )"
84 +
85 +LICENSE="GPL-3"
86 +SLOT="0"
87 +KEYWORDS="~amd64"
88 +IUSE="+skins"
89 +
90 +BDEPEND="dev-qt/linguist-tools"
91 +
92 +DEPEND="
93 + dev-qt/qtcore
94 + dev-qt/designer
95 + dev-qt/linguist
96 + dev-qt/qtscript
97 + dev-qt/qtx11extras
98 + media-libs/gstreamer
99 + media-libs/gst-plugins-base
100 + media-plugins/gst-plugins-meta
101 +"
102 +RDEPEND="${DEPEND}"
103 +
104 +src_prepare() {
105 + if use skins ; then
106 + eapply "${FILESDIR}"/nulloy.patch
107 +
108 + cp -r $WORKDIR/$NAME src/skins/night
109 + fi
110 +
111 + default
112 +}
113 +
114 +src_configure() {
115 + # Upstream ./configure script does not support specifying an option's
116 + # value after an equal sign like in '--prefix="${EPREFIX}/usr"', so we
117 + # have to set up all the options ourselves and call the script directly
118 + local myconfargs=(
119 + $(use skins || echo --no-skins)
120 + --no-update-check
121 + --no-taglib
122 + --gstreamer-tagreader
123 + --prefix "${EPREFIX}/usr"
124 + --libdir "$(get_libdir)"
125 + )
126 +
127 + ./configure "${myconfargs[@]}" || die
128 +}
129 +
130 +src_install() {
131 + emake INSTALL_ROOT="${D}" install
132 + einstalldocs
133 +}
134
135 diff --git a/media-sound/nulloy/nulloy-9999.ebuild b/media-sound/nulloy/nulloy-9999.ebuild
136 new file mode 100644
137 index 000000000..4cd2267fd
138 --- /dev/null
139 +++ b/media-sound/nulloy/nulloy-9999.ebuild
140 @@ -0,0 +1,70 @@
141 +# Copyright 2022 Gentoo Authors
142 +# Distributed under the terms of the GNU General Public License v2
143 +
144 +EAPI=8
145 +
146 +inherit git-r3 xdg
147 +
148 +DESCRIPTION="Music player with a waveform progress bar (sound visualization like in audio editors)"
149 +HOMEPAGE="https://nulloy.com"
150 +
151 +EGIT_REPO_URI="https://github.com/nulloy/nulloy"
152 +EGIT_CLONE_TYPE="shallow"
153 +
154 +LICENSE="GPL-3"
155 +SLOT="0"
156 +IUSE="+skins"
157 +
158 +BDEPEND="dev-qt/linguist-tools"
159 +
160 +DEPEND="
161 + dev-qt/qtcore
162 + dev-qt/designer
163 + dev-qt/linguist
164 + dev-qt/qtscript
165 + dev-qt/qtx11extras
166 + media-libs/gstreamer
167 + media-libs/gst-plugins-base
168 + media-plugins/gst-plugins-meta
169 +"
170 +RDEPEND="${DEPEND}"
171 +
172 +src_unpack() {
173 + git-r3_src_unpack
174 +
175 + if use skins ; then
176 + EGIT_REPO_URI=https://gitlab.com/vitaly-zdanevich/nulloy-theme-night.git
177 + EGIT_CHECKOUT_DIR=${WORKDIR}/night
178 + git-r3_src_unpack
179 + fi
180 +}
181 +
182 +src_prepare() {
183 + if use skins ; then
184 + default
185 +
186 + eapply "${FILESDIR}"/nulloy.patch
187 + cp -r $WORKDIR/night src/skins
188 + fi
189 +}
190 +
191 +src_configure() {
192 + # Upstream ./configure script does not support specifying an option's
193 + # value after an equal sign like in '--prefix="${EPREFIX}/usr"', so we
194 + # have to set up all the options ourselves and call the script directly
195 + local myconfargs=(
196 + $(use skins || echo --no-skins)
197 + --no-update-check
198 + --no-taglib
199 + --gstreamer-tagreader
200 + --prefix "${EPREFIX}/usr"
201 + --libdir "$(get_libdir)"
202 + )
203 +
204 + ./configure "${myconfargs[@]}" || die
205 +}
206 +
207 +src_install() {
208 + emake INSTALL_ROOT="${D}" install
209 + einstalldocs
210 +}