commit:     b80b9eb2fd8ff7fc3bcf8c181873f6f6e84ef877
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Fri Jun 20 12:45:04 2025 +0000
Commit:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
CommitDate: Fri Jun 20 13:01:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b80b9eb2

media-plugins/eq10q: new package, add 2.2

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>

 media-plugins/eq10q/Manifest                       |  1 +
 media-plugins/eq10q/eq10q-2.2.ebuild               | 36 ++++++++++
 media-plugins/eq10q/files/eq10q-2.2-cmake4.patch   |  9 +++
 .../eq10q/files/eq10q-2.2-fix-lv2-types.patch      | 63 ++++++++++++++++
 media-plugins/eq10q/files/eq10q-2.2-flags.patch    | 15 ++++
 media-plugins/eq10q/files/eq10q-2.2-pow10.patch    | 83 ++++++++++++++++++++++
 media-plugins/eq10q/metadata.xml                   | 11 +++
 7 files changed, 218 insertions(+)

diff --git a/media-plugins/eq10q/Manifest b/media-plugins/eq10q/Manifest
new file mode 100644
index 0000000000..c0769f4a7a
--- /dev/null
+++ b/media-plugins/eq10q/Manifest
@@ -0,0 +1 @@
+DIST eq10q-2.2.tar.gz 797991 BLAKE2B 
453cf8e0dcb330e92dfa6be65a83c63c05450956ea9dcef49206d83758c8ea0746cde7d26932e709116a44eb2ce30bb29fa5a4753f5597e71128767b462cb024
 SHA512 
4c6a79e9f1faeb431abd4e94b6bfa153b1ff5f55b3c2734d35a865ba23e3a7786ee45ee122cdcc26c9a8de915f1c4e2ec588a4c219ad6daf0ccf4a2b474b1e24

diff --git a/media-plugins/eq10q/eq10q-2.2.ebuild 
b/media-plugins/eq10q/eq10q-2.2.ebuild
new file mode 100644
index 0000000000..0308106bb6
--- /dev/null
+++ b/media-plugins/eq10q/eq10q-2.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit cmake
+
+DESCRIPTION="An LV2 audio plugin implementing a powerful and flexible 
parametric equalizer"
+HOMEPAGE="https://eq10q.sourceforge.net/";
+SRC_URI="https://download.sourceforge.net/project/${PN}/${P}.tar.gz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       dev-cpp/gtkmm:2.4
+       media-libs/lv2
+       sci-libs/fftw:3.0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.2-flags.patch
+       "${FILESDIR}"/${PN}-2.2-cmake4.patch
+       "${FILESDIR}"/${PN}-2.2-pow10.patch
+       "${FILESDIR}"/${PN}-2.2-fix-lv2-types.patch
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/$(get_libdir)/lv2"
+       )
+
+       cmake_src_configure
+}

diff --git a/media-plugins/eq10q/files/eq10q-2.2-cmake4.patch 
b/media-plugins/eq10q/files/eq10q-2.2-cmake4.patch
new file mode 100644
index 0000000000..85dffcbfb6
--- /dev/null
+++ b/media-plugins/eq10q/files/eq10q-2.2-cmake4.patch
@@ -0,0 +1,9 @@
+--- a/CMakeLists.txt   2025-06-20 14:20:47.019956704 +0300
++++ b/CMakeLists.txt   2025-06-20 14:39:37.597091838 +0300
+@@ -1,5 +1,5 @@
+ ##EQ10Q TopLevel CMake
+-cmake_minimum_required(VERSION 2.8)
++cmake_minimum_required(VERSION 3.5)
+ PROJECT(eq10q)
+ 
+ ##ADD_DEFINITIONS(-Wall -O3 -fPIC -finline-functions 
-finline-functions-called-once  -msse -mfpmath=sse -std=c99)

diff --git a/media-plugins/eq10q/files/eq10q-2.2-fix-lv2-types.patch 
b/media-plugins/eq10q/files/eq10q-2.2-fix-lv2-types.patch
new file mode 100644
index 0000000000..0a292e6103
--- /dev/null
+++ b/media-plugins/eq10q/files/eq10q-2.2-fix-lv2-types.patch
@@ -0,0 +1,63 @@
+From: Sebastian Ramacher <[email protected]>
+Date: Sat, 16 May 2020 15:38:28 +0200
+Subject: Fix lv2 types
+
+---
+ gui/bassup_ui.cpp  | 2 +-
+ gui/dyn_ui.cpp     | 2 +-
+ gui/eq10q_ui.cpp   | 2 +-
+ gui/midside_ui.cpp | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/gui/bassup_ui.cpp b/gui/bassup_ui.cpp
+index dc7ca6d..da504b9 100644
+--- a/gui/bassup_ui.cpp
++++ b/gui/bassup_ui.cpp
+@@ -38,7 +38,7 @@ using namespace std;
+ #define BASSUP_GUI_URI "http://eq10q.sourceforge.net/bassup/gui";
+ 
+ 
+-static LV2UI_Handle instantiateBassUp_gui(const _LV2UI_Descriptor 
*descriptor, const char *plugin_uri, const char *bundle_path, 
LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget 
*widget, const LV2_Feature *const *features)
++static LV2UI_Handle instantiateBassUp_gui(const LV2UI_Descriptor *descriptor, 
const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function 
write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const 
LV2_Feature *const *features)
+ {
+   #ifdef TESTING_EQ10Q
+   cout<<"instantiateEq10q_gui Entring... ";
+diff --git a/gui/dyn_ui.cpp b/gui/dyn_ui.cpp
+index 661a094..fbf13d2 100644
+--- a/gui/dyn_ui.cpp
++++ b/gui/dyn_ui.cpp
+@@ -37,7 +37,7 @@ This plugin is inside the Sapista Plugins Bundle
+ using namespace std;
+ #endif
+ 
+-static LV2UI_Handle instantiateDyn_gui(const _LV2UI_Descriptor *descriptor, 
const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function 
write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const 
LV2_Feature *const *features)
++static LV2UI_Handle instantiateDyn_gui(const LV2UI_Descriptor *descriptor, 
const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function 
write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const 
LV2_Feature *const *features)
+ {
+   #ifdef TESTING_EQ10Q
+   cout<<"instantiateDyn_gui Entring... ";
+diff --git a/gui/eq10q_ui.cpp b/gui/eq10q_ui.cpp
+index 0ca0217..67f7cef 100644
+--- a/gui/eq10q_ui.cpp
++++ b/gui/eq10q_ui.cpp
+@@ -38,7 +38,7 @@ using namespace std;
+ #endif
+ 
+ 
+-static LV2UI_Handle instantiateEq10q_gui(const _LV2UI_Descriptor *descriptor, 
const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function 
write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const 
LV2_Feature *const *features)
++static LV2UI_Handle instantiateEq10q_gui(const LV2UI_Descriptor *descriptor, 
const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function 
write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const 
LV2_Feature *const *features)
+ {
+   #ifdef TESTING_EQ10Q
+   cout<<"instantiateEq10q_gui Entring... ";
+diff --git a/gui/midside_ui.cpp b/gui/midside_ui.cpp
+index a614c09..1d1818d 100644
+--- a/gui/midside_ui.cpp
++++ b/gui/midside_ui.cpp
+@@ -37,7 +37,7 @@ This plugin is inside the Sapista Plugins Bundle
+ using namespace std;
+ #endif
+ 
+-static LV2UI_Handle instantiateMidSide_gui(const _LV2UI_Descriptor 
*descriptor, const char *plugin_uri, const char *bundle_path, 
LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget 
*widget, const LV2_Feature *const *features)
++static LV2UI_Handle instantiateMidSide_gui(const LV2UI_Descriptor 
*descriptor, const char *plugin_uri, const char *bundle_path, 
LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget 
*widget, const LV2_Feature *const *features)
+ {
+   #ifdef TESTING_EQ10Q
+   cout<<"instantiateEq10q_gui Entring... ";

diff --git a/media-plugins/eq10q/files/eq10q-2.2-flags.patch 
b/media-plugins/eq10q/files/eq10q-2.2-flags.patch
new file mode 100644
index 0000000000..e5cefa5112
--- /dev/null
+++ b/media-plugins/eq10q/files/eq10q-2.2-flags.patch
@@ -0,0 +1,15 @@
+--- a/CMakeLists.txt   2016-12-11 15:07:48.000000000 +0300
++++ b/CMakeLists.txt   2025-06-20 14:52:07.734175894 +0300
+@@ -3,10 +3,10 @@ cmake_minimum_required(VERSION 2.8)
+ PROJECT(eq10q)
+ 
+ ##ADD_DEFINITIONS(-Wall -O3 -fPIC -finline-functions 
-finline-functions-called-once  -msse -mfpmath=sse -std=c99)
+-set(CMAKE_C_FLAGS "-Wall -O3 -fPIC -finline-functions 
-finline-functions-called-once  -msse -mfpmath=sse -std=c99")
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fPIC -finline-functions 
-finline-functions-called-once -std=c99")
+ #set(CMAKE_C_FLAGS "-Wall -O0 -g -fPIC -finline-functions 
-finline-functions-called-once  -msse -mfpmath=sse -std=c99")
+ 
+-set(CMAKE_CXX_FLAGS "-Wall -fPIC -std=c++11")
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fPIC -std=c++11")
+ #set(CMAKE_CXX_FLAGS "-Wall -O0 -g -fPIC -DPIC -std=c++11") ##Debuging GUI
+ 
+ ##ADD_DEFINITIONS(-Wall -O0 -g -fPIC -DPIC) ###USED FOR DEBUG

diff --git a/media-plugins/eq10q/files/eq10q-2.2-pow10.patch 
b/media-plugins/eq10q/files/eq10q-2.2-pow10.patch
new file mode 100644
index 0000000000..69a8f01af8
--- /dev/null
+++ b/media-plugins/eq10q/files/eq10q-2.2-pow10.patch
@@ -0,0 +1,83 @@
+From: Aurelien Jarno <[email protected]>
+Date: Sat, 16 May 2020 15:37:49 +0200
+Subject: Replace deprecated pow10 by exp10.
+
+Forwarded: no
+---
+ gui/widgets/bandctl.cpp  |  4 ++--
+ gui/widgets/bodeplot.cpp | 14 +++++++-------
+ 2 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/gui/widgets/bandctl.cpp b/gui/widgets/bandctl.cpp
+index a2ce684..7702582 100644
+--- a/gui/widgets/bandctl.cpp
++++ b/gui/widgets/bandctl.cpp
+@@ -949,7 +949,7 @@ bool BandCtl::parseBtnString(BandCtl::Button* btn)
+   if(str_k.length() > 0)
+   {
+     val_k = atof(str_k.c_str()) * 1e3;
+-    val *= pow10(3.0 - str.length());
++    val *= exp10(3.0 - str.length());
+     if(str.length() > 3)
+     {
+       //throw an error, imposible to match str > 3 with k
+@@ -960,7 +960,7 @@ bool BandCtl::parseBtnString(BandCtl::Button* btn)
+   }
+   if(str_d.length() > 0)
+   {
+-    val_d = atof(str_d.c_str())/ pow10((double)str_d.length());
++    val_d = atof(str_d.c_str())/ exp10((double)str_d.length());
+   }
+    
+   btn->value = val + val_k + val_d;
+diff --git a/gui/widgets/bodeplot.cpp b/gui/widgets/bodeplot.cpp
+index 584f87e..0dab144 100644
+--- a/gui/widgets/bodeplot.cpp
++++ b/gui/widgets/bodeplot.cpp
+@@ -194,14 +194,14 @@ void PlotEQCurve::resetCenterSpan()
+ {
+   //Compute center and span for the full range spectrum
+   double sp = log10(MAX_FREQ/MIN_FREQ);
+-  double cn = MIN_FREQ * sqrt(pow10(sp));
++  double cn = MIN_FREQ * sqrt(exp10(sp));
+   setCenterSpan(cn, sp);
+ }
+ 
+ void PlotEQCurve::setCenterSpan(double center, double span)
+ { 
+-  m_minFreq = center / sqrt(pow10(span));
+-  m_maxFreq = center * sqrt(pow10(span));
++  m_minFreq = center / sqrt(exp10(span));
++  m_maxFreq = center * sqrt(exp10(span));
+     
+   //Initalize the grid
+   const double f_grid[GRID_VERTICAL_LINES] = {20.0, 30.0, 40.0, 50.0, 60.0, 
70.0, 80.0, 90.0,
+@@ -246,8 +246,8 @@ void PlotEQCurve::setCenter(double center)
+ {
+   //Limit center to the possible range according the current span
+   double sp = log10(m_maxFreq/m_minFreq);
+-  double cmin = MIN_FREQ * sqrt(pow10(sp));
+-  double cmax = MAX_FREQ / sqrt(pow10(sp));
++  double cmin = MIN_FREQ * sqrt(exp10(sp));
++  double cmax = MAX_FREQ / sqrt(exp10(sp));
+   
+   double cn = center;
+   cn = cn > cmax ? cmax : cn;
+@@ -259,7 +259,7 @@ void PlotEQCurve::setSpan(double span)
+ {
+   //Limit center to the possible range according the current span
+   double sp_act = log10(m_maxFreq/m_minFreq);
+-  double cn = m_minFreq * sqrt(pow10(sp_act));
++  double cn = m_minFreq * sqrt(exp10(sp_act));
+   double smax1 = 2.0*log10(cn/MIN_FREQ);
+   double smax2= 2.0*log10(MAX_FREQ/cn);
+   double smax = smax1 < smax2 ? smax1 : smax2;
+@@ -306,7 +306,7 @@ void PlotEQCurve::recomputeCenterFreq(double xDiff)
+   double fmax = MIN_FREQ*pow((MAX_FREQ/MIN_FREQ),((local_x2 + 
3.5)/((double)m_zoom_surface_ptr->get_width())));
+   
+   double sp_act = log10(fmax/fmin);
+-  double cn = fmin * sqrt(pow10(sp_act));
++  double cn = fmin * sqrt(exp10(sp_act));
+   setCenter(cn);
+ }
+ 

diff --git a/media-plugins/eq10q/metadata.xml b/media-plugins/eq10q/metadata.xml
new file mode 100644
index 0000000000..5fc573d021
--- /dev/null
+++ b/media-plugins/eq10q/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Alexander Tsoy</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="sourceforge">eq10q</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to