diff options
author | Markus Meier <maekke@gentoo.org> | 2024-04-21 08:04:11 +0200 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2024-04-21 08:04:11 +0200 |
commit | 81c29e448f7a39f61d04035f087f00c73e92bdfd (patch) | |
tree | b7cbd0be713f6d17a91ef2bec52f195dd9d57e40 /media-libs | |
parent | net-misc/hath: add 0.5.8 (diff) | |
download | gentoo-81c29e448f7a39f61d04035f087f00c73e92bdfd.tar.gz gentoo-81c29e448f7a39f61d04035f087f00c73e92bdfd.tar.bz2 gentoo-81c29e448f7a39f61d04035f087f00c73e92bdfd.zip |
media-libs/lensfun: add py 3.12 for bug #929638 and remove egg info for bug #922948
Signed-off-by: Markus Meier <maekke@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/lensfun/lensfun-0.3.4-r1.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/media-libs/lensfun/lensfun-0.3.4-r1.ebuild b/media-libs/lensfun/lensfun-0.3.4-r1.ebuild new file mode 100644 index 000000000000..3d3c034751be --- /dev/null +++ b/media-libs/lensfun/lensfun-0.3.4-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +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/refs/tags/v${PV/_rc/-RC}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P/_rc/-RC}" + +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 )" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/glib-2.40 + media-libs/libpng:= + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( + app-text/doxygen + dev-python/docutils + ) +" + +DOCS=( README.md docs/mounts.txt ChangeLog ) + +PATCHES=( + "${FILESDIR}"/lensfun-0.3.4-python.patch + "${FILESDIR}"/lensfun-0.3.4-python-egg.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html + -DPython3_EXECUTABLE="${PYTHON}" + -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_fix_shebang "${ED}"/usr/bin + python_optimize + rm -r "${D}/$(python_get_sitedir)"/*.egg-info || die +} |