summaryrefslogtreecommitdiff
path: root/dev-libs/libcdada
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-12-22 14:08:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2021-12-22 14:08:05 +0000
commit93a93e9a3b53c1a73142a305ea1f8136846942ee (patch)
treeb9791a06ab3284e27b568412c59316c66240c682 /dev-libs/libcdada
parent2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff)
gentoo resync : 22.12.2021
Diffstat (limited to 'dev-libs/libcdada')
-rw-r--r--dev-libs/libcdada/Manifest3
-rw-r--r--dev-libs/libcdada/files/libcdada-0.3.5-respect-CFLAGS.patch23
-rw-r--r--dev-libs/libcdada/libcdada-0.3.5.ebuild54
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-libs/libcdada/Manifest b/dev-libs/libcdada/Manifest
index ad61dca3ac14..a45ced51bb0e 100644
--- a/dev-libs/libcdada/Manifest
+++ b/dev-libs/libcdada/Manifest
@@ -1,4 +1,7 @@
AUX libcdada-0.3.4-Werror.patch 688 BLAKE2B e4c6bf7c8df550a2dbafaab78b9933e39c7c7b8875a6c87c125b25b5396092b17b5e718fbeaf8ac6a79fb759d9378702ca98852e69ef1c782fc069cf85318e9b SHA512 3fb6fcc7ae855c9049256f74d69011a5599307eda280c5d5b546e7a1a8ff08e64eb3a842835753120c498e7f787a86193ef21624a0fd04ef67f8408752fdfe3c
+AUX libcdada-0.3.5-respect-CFLAGS.patch 850 BLAKE2B 84a52e62571a2f4fb9090d07de5abf3cd6865b698d8c30a6d78d80dc01ee76806a931e999c409d24ac4ccbfd884b5dcd933820801b5aedc1987c3be1e387f377 SHA512 d966ffc87dea5d5cba4a82fea2da401baf5e4cefb17337c955dd86347a240b637f22c2965d58562c81b6b6b65c5b04e606bba887d03e2f855b1ed8267d82c248
DIST libcdada-0.3.4.tar.gz 1772957 BLAKE2B 5a7b24e7e033807586a30beb35a304b37262e8e673a02f307af63606b2119e3c76b2ed90cec6f494cac26f77aaafd1756d69c5043cf9adfd6a42cd0db76b4298 SHA512 363f2ebe9a054a6356040bb68460321ffb6dc0f66dfd2f95d275864135bed715e12bb6bbbffe11d665020a119033cd80d6bf323020760339664f1b7a4f1ae9ca
+DIST libcdada-0.3.5.tar.gz 1776937 BLAKE2B 55280e28d2fa6235ac95020b07853748a4551f1c1c2e65b12585064c4fa952dd310b54d5f95f986cea12018d452e1fb086d8bc3c944b169d5aeb280b78f25007 SHA512 4f3d022e54573c4dd0a39d8ef7d097bb209834ba56ec30003ef257e0496c7a08e50a432d0a4a40f019f06feab806cab81ee5ace9c92193266d5ec82cddad3269
EBUILD libcdada-0.3.4-r2.ebuild 884 BLAKE2B 852811e2ae9cc561f2ef0698ec08102dd173deb564be61ee13d4675caac2bf55e1469464a2d6e6db3662b433aaf7f80a7e3fa72ec71398a0cb8c03bcf2deb211 SHA512 b72e444b3eeddcbf9c79a381d7a111b015fcc8ecf25e5f73d33857ca06dea70a390a4c821cf42f83c21d3cea6d5cd992a1a78228f8675dcf2bb39db4595ac86d
+EBUILD libcdada-0.3.5.ebuild 991 BLAKE2B 34b2379bdb5bffb62b94519fc6f3425f711d78ad3df917540ccdec85c01e2a54794fbe970c020f40f8353bff48db78118f8fefb6f48256285f4c6770dd97e452 SHA512 89e4be17b9e747b6ad328db74a2d31f5cd0779ea2511d14757063b2e906740a1d89b46e3bf69b5c709712c869b9d3f9703a5eeebbf399ce747e36c7cafdfb88c
MISC metadata.xml 298 BLAKE2B dc523eb0719867c25f38bd413a4229c4b81b1d347184ce3574d32f96691fa907d14ee54e2f0fae3e94006b3465f0c8fb81c33818ec627d2028571b4d14500292 SHA512 5d9f732d34ef76b98a7366339bcfdbe1a3ef40fb49ff6c804d82f0b089fe2559f6cd26406b2028b49caafdbf0b57ffe27750f34143865fe3cb9b56041898a143
diff --git a/dev-libs/libcdada/files/libcdada-0.3.5-respect-CFLAGS.patch b/dev-libs/libcdada/files/libcdada-0.3.5-respect-CFLAGS.patch
new file mode 100644
index 000000000000..7fa0d01702b3
--- /dev/null
+++ b/dev-libs/libcdada/files/libcdada-0.3.5-respect-CFLAGS.patch
@@ -0,0 +1,23 @@
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -61,7 +61,6 @@ str_test_CPPFLAGS= -I$(top_builddir)/include/ -I$(top_srcdir)/include/
+ str_test_LDADD= -lpthread ../src/libcdada.la
+
+ benchmark_SOURCES= benchmark.cc
+-benchmark_CXXFLAGS= -O3
+ benchmark_CPPFLAGS= -I$(top_builddir)/include/ -I$(top_srcdir)/include/
+ benchmark_LDADD= -lpthread ../src/.libs/libcdada.a
+
+--- a/config_m4/debug.m4
++++ b/config_m4/debug.m4
+@@ -10,8 +10,8 @@
+ AC_DEFINE([DEBUG], [], [Description])
+ AC_MSG_RESULT(yes)
+ else
+- CFLAGS="$CFLAGS -O3" #--compiler-options -fno-strict-aliasing --compiler-options -fno-inline
+- CXXFLAGS="$CXXFLAGS -O3" #-fomit-frame-pointer"
++ CFLAGS="$CFLAGS" #--compiler-options -fno-strict-aliasing --compiler-options -fno-inline
++ CXXFLAGS="$CXXFLAGS" #-fomit-frame-pointer"
+ AC_DEFINE([NDEBUG], [], [Description])
+ AC_MSG_RESULT(no)
+ fi
diff --git a/dev-libs/libcdada/libcdada-0.3.5.ebuild b/dev-libs/libcdada/libcdada-0.3.5.ebuild
new file mode 100644
index 000000000000..6a1c7ec68867
--- /dev/null
+++ b/dev-libs/libcdada/libcdada-0.3.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit autotools python-any-r1
+
+DESCRIPTION="Basic data structures in C"
+HOMEPAGE="https://github.com/msune/libcdada"
+SRC_URI="https://github.com/msune/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( ${PYTHON_DEPS} )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.3.4-Werror.patch
+ "${FILESDIR}"/${PN}-0.3.5-respect-CFLAGS.patch
+)
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with test tests)
+
+ # Needed for tests. We throw them away in src_install anyway.
+ --enable-static
+
+ --disable-valgrind
+ --without-examples
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}