Add EQ10Q
The darkelf overlay had this package as well, but the ebuild had a few issues.
This commit is contained in:
parent
278b417098
commit
900a4ce3fe
4
media-plugins/eq10q/Manifest
Normal file
4
media-plugins/eq10q/Manifest
Normal file
@ -0,0 +1,4 @@
|
||||
AUX replace_pow10.patch 2733 BLAKE2B 6331effc79ef2b9f2ae0fc6792ac03d55bd1bb980b7000cdac91b46f66132ca9ed19fdf864efb355c81ea3eaadb1a7969f58e217c96e3afae3d391dbcfda78b5 SHA512 c7c93576ac5588c57689e62341988b11f789696d04bac1995d57dc52bc9bd76d229a44d0c634f79701f88338b351e1c0a314c9809d34ce2cc47a401b0a964de4
|
||||
DIST eq10q-2.2.tar.gz 797991 BLAKE2B 453cf8e0dcb330e92dfa6be65a83c63c05450956ea9dcef49206d83758c8ea0746cde7d26932e709116a44eb2ce30bb29fa5a4753f5597e71128767b462cb024 SHA512 4c6a79e9f1faeb431abd4e94b6bfa153b1ff5f55b3c2734d35a865ba23e3a7786ee45ee122cdcc26c9a8de915f1c4e2ec588a4c219ad6daf0ccf4a2b474b1e24
|
||||
EBUILD eq10q-2.2.ebuild 603 BLAKE2B 75b9a7842385066b163928af5c31a7c52baca7b756e89e1adf7c6951bc74cd5b06276208175ecc063dfb1f7c3487755fcc53ad69f67493c3bf14e0f068a93040 SHA512 d06a06a086de2a069a30f244100a8600df88a3abf346c848801817f79956138e7f9be9ea354fb2f248040b67d22bacc7cfceedea15156bfd6e610ed66776f7d0
|
||||
MISC metadata.xml 236 BLAKE2B fdb34c66e3059efc0efb2328ffedb24c495be95dfeb68b7adcdf5ab1a88eee6788294d07ec032238de7d9127cffd50a1598b42aa8f99d3d11f54a761c79a9482 SHA512 43add4c2db3d06110521dea982cfcbddc98d63bb1e1b89952511654d54f09746e0d76ac1e0f0e70d2832357f44fe11fc4653500b856c7b29d05a55bb70535e80
|
34
media-plugins/eq10q/eq10q-2.2.ebuild
Normal file
34
media-plugins/eq10q/eq10q-2.2.ebuild
Normal file
@ -0,0 +1,34 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
SRC_URI="mirror://sourceforge/eq10q/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Audio plugin bundle over the LV2 standard for Linux"
|
||||
HOMEPAGE="http://eq10q.sourceforge.net/"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
dev-cpp/gtkmm:2.4
|
||||
media-libs/lv2
|
||||
>=sci-libs/fftw-3
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}/replace_pow10.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
"-DCMAKE_INSTALL_PREFIX=/usr/$(get_libdir)/lv2"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
76
media-plugins/eq10q/files/replace_pow10.patch
Normal file
76
media-plugins/eq10q/files/replace_pow10.patch
Normal file
@ -0,0 +1,76 @@
|
||||
Replace instances of pow10() with pow()
|
||||
|
||||
The pow10() GNU extension is no longer supported. I could have replaced it with
|
||||
exp10(), but I'd rather avoid using GNU extensions when possible.
|
||||
|
||||
Patch by Ryan Fox
|
||||
|
||||
--- 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 *= pow(10, 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())/ pow(10, (double)str_d.length());
|
||||
}
|
||||
|
||||
btn->value = val + val_k + val_d;
|
||||
--- 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(pow(10, 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(pow(10, span));
|
||||
+ m_maxFreq = center * sqrt(pow(10, 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(pow(10, sp));
|
||||
+ double cmax = MAX_FREQ / sqrt(pow(10, 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(pow(10, 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(pow(10, sp_act));
|
||||
setCenter(cn);
|
||||
}
|
||||
|
8
media-plugins/eq10q/metadata.xml
Normal file
8
media-plugins/eq10q/metadata.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>flewkey@2a03.party</email>
|
||||
<name>Ryan Fox</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user