media-libs/lensfun: drop 0.3.3

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2023-05-04 15:12:59 +02:00
parent c159067d29
commit eb3a94ce38
3 changed files with 0 additions and 114 deletions
-1
View File
@@ -1,2 +1 @@
DIST lensfun-0.3.3.tar.gz 992432 BLAKE2B 174f9a34195ca8d7f09de43a2f0d1015bc766579607c44541f631142386a3b5c27c823f9f54f08d462946a0809610b6a87e61cd093b69339fa7d57d28cc833ae SHA512 2d913e3d121ac069f4cb7acb3f09c9cf11c5d0069e743500631bd4b6007a1b19ebccf871a4ac8cfc2797a03066f8a678ea9d70feba0f7d6a05c28cef61f7d9cf
DIST lensfun-0.3.4_rc1.tar.gz 1045616 BLAKE2B fee14b97dcda98be4e8a32443ff71347ba75e46192f8437be580cb6697f6ef2eca92ef57cfcb2de5bd87fe7ba96542a6b5551b12f50fec09a035c69d6f4b427f SHA512 0d034c6996e5650b022d33a7e00ef7e0e00dfa99155aa62c6c3ab48b9ac936e46f812ceea46e2070514e2c77150a1d7c827831686b1cf73e2acf88b6b3dfb6c5
@@ -1,48 +0,0 @@
Adapted from upstream commit
From 694542f350fc7c9ccafa2d9acb4d4e00e690cbdc Mon Sep 17 00:00:00 2001
From: Sebastian Kraft <mail@sebastiankraft.net>
Date: Thu, 22 Dec 2016 18:51:29 +0100
Subject: [PATCH] Fix some warnings which were introduced when swithcing to
C++11 mode
---
libs/lensfun/cpuid.cpp | 4 ++--
libs/lensfun/mod-pc.cpp | 8 ++++----
tests/test_modifier.cpp | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/libs/lensfun/cpuid.cpp b/libs/lensfun/cpuid.cpp
index c435f8ac..d2d63972 100644
--- a/libs/lensfun/cpuid.cpp
+++ b/libs/lensfun/cpuid.cpp
@@ -92,9 +92,9 @@ guint _lf_detect_cpu_features ()
{
#define cpuid(cmd) \
__asm volatile ( \
- "push %%"R_BX"\n" \
+ "push %%" R_BX "\n" \
"cpuid\n" \
- "pop %%"R_BX"\n" \
+ "pop %%" R_BX "\n" \
: "=a" (ax), "=c" (cx), "=d" (dx) \
: "0" (cmd))
diff --git a/tests/test_modifier.cpp b/tests/test_modifier.cpp
index f087917c..ffa3d4d7 100644
--- a/tests/test_modifier.cpp
+++ b/tests/test_modifier.cpp
@@ -78,8 +78,8 @@ void test_mod_projection_center(lfFixture* lfFix, gconstpointer data)
// check if output becomes NaN when processing geometry conversion
void test_mod_projection_borders(lfFixture* lfFix, gconstpointer data)
{
- float in[2] = {lfFix->img_width, lfFix->img_height};
- float in2[2] = {(lfFix->img_width-1)/2, (lfFix->img_height-1)/2};
+ float in[2] = {(float) lfFix->img_width, (float) lfFix->img_height};
+ float in2[2] = {(float) (lfFix->img_width-1)/2, (float) (lfFix->img_height-1)/2};
float res[2] = {0, 0};
lfLensType geom_types [] = {LF_RECTILINEAR, LF_PANORAMIC, LF_EQUIRECTANGULAR, LF_FISHEYE_STEREOGRAPHIC, LF_FISHEYE, LF_FISHEYE_EQUISOLID, LF_FISHEYE_ORTHOGRAPHIC, LF_FISHEYE_THOBY, LF_UNKNOWN};
--
2.26.2
-65
View File
@@ -1,65 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit python-single-r1 cmake
DESCRIPTION="Library for rectifying and simulating photographic lens distortions"
HOMEPAGE="https://lensfun.github.io"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3 CC-BY-SA-3.0" # See README for reasoning.
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
IUSE="doc cpu_flags_x86_sse cpu_flags_x86_sse2 test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
BDEPEND="
doc? (
app-doc/doxygen
dev-python/docutils
)
"
RDEPEND="${PYTHON_DEPS}
>=dev-libs/glib-2.40
media-libs/libpng:0=
sys-libs/zlib
"
DEPEND="${RDEPEND}"
DOCS=( README.md docs/mounts.txt ChangeLog )
PATCHES=(
"${FILESDIR}/${PN}-0.3.2-warnings.patch"
)
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html
-DSETUP_PY_INSTALL_PREFIX=/usr
-DBUILD_LENSTOOL=ON
-DBUILD_STATIC=OFF
-DBUILD_DOC=$(usex doc)
-DBUILD_FOR_SSE=$(usex cpu_flags_x86_sse)
-DBUILD_FOR_SSE2=$(usex cpu_flags_x86_sse2)
-DBUILD_TESTS=$(usex test)
)
cmake_src_configure
}
src_test() {
mkdir -p "${T}/db/lensfun" || die
cp data/db/* "${T}/db/lensfun/" || die
XDG_DATA_HOME="${T}/db" cmake_src_test
}
src_install() {
cmake_src_install
python_optimize
}