summaryrefslogtreecommitdiff
path: root/media-libs/lensfun
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/lensfun')
-rw-r--r--media-libs/lensfun/Manifest1
-rw-r--r--media-libs/lensfun/lensfun-0.3.4-r1.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/media-libs/lensfun/Manifest b/media-libs/lensfun/Manifest
index 3e63705b355f..b55927f43357 100644
--- a/media-libs/lensfun/Manifest
+++ b/media-libs/lensfun/Manifest
@@ -2,6 +2,7 @@ AUX lensfun-0.3.4-python-egg.patch 651 BLAKE2B f5de8795827c2ee51f48e29f1c82dbce2
AUX lensfun-0.3.4-python.patch 3269 BLAKE2B 93a5837d44ccbf5f460d163a723cdcbd270eb9fd17e40fe93569fe3455972935df3abc452065d4b43b37a2fa7ba637538f1b602fadcad2fca440eb99a224077f SHA512 87726257a54be3666d77ba203abc0559c4893d9d6707875a879e51a739fa033a5eb9264e291ff64ef476dc68c669bbd2c9b7e90b96797d62b3e810a8f07bf1a2
DIST lensfun-0.3.4.tar.gz 1058791 BLAKE2B e68cb72eb730a23c3e2dd691a49606ea92a8b89c4665d62dff126404010c8c7e1162d5906a69fce52eb8fb121da8930bb2e42d74bbd8bb6d2631ed4e97405fa3 SHA512 4db9a08d51ba50c7c2ff528d380bb28e34698b2bb5c40e5f3deeaa5544c888ac7e0f638bbc3f33a4f75dbb67e0425ca36ce6d8cd1d8c043a4173a2df47de08c6
DIST lensfun-0.3.4_rc1.tar.gz 1045616 BLAKE2B fee14b97dcda98be4e8a32443ff71347ba75e46192f8437be580cb6697f6ef2eca92ef57cfcb2de5bd87fe7ba96542a6b5551b12f50fec09a035c69d6f4b427f SHA512 0d034c6996e5650b022d33a7e00ef7e0e00dfa99155aa62c6c3ab48b9ac936e46f812ceea46e2070514e2c77150a1d7c827831686b1cf73e2acf88b6b3dfb6c5
+EBUILD lensfun-0.3.4-r1.ebuild 1712 BLAKE2B 5fff79ec5bf0526514bf80d44dae1a74e61600f758a4cf7375c511bb08872410ca4ffdb0d1139958af35e5227a1210570f43f2064758157cd6b03eb15f8a7ad4 SHA512 fa68d9afe4060bc20561eb918233dba3ebcea4bb1daa4c399afafa2b1fd8085a99e1a8c3057fe08ed5bba771c6f7b82410f068894968e255a489b6709c14b27e
EBUILD lensfun-0.3.4.ebuild 1658 BLAKE2B 04206b77401cf03f012c268bd7d1eb970e281c9a61a3a4edaacd58bd917f900fec0dce198abc97cbb2b513ca4922deba89a1c26a4b0c989ff91a4410121e2bda SHA512 a4b92f15a5b9875871f3403c8cde32bf03e9b6b65ef265faac85e4538bd8f41ec462da72b6c09534cdf57ae59aa5440776a23f73fa255b9bf67df64c6179875c
EBUILD lensfun-0.3.4_rc1.ebuild 1479 BLAKE2B ca2ea014da376a2ae12395676aaa082c5c26144261728caab1251a364de8f34bdf6e54fc1e867fdfcaacb357fcc6d135b70e863144f49388e61b0fdd7af9aefc SHA512 2c7b244629e14ca9805f42e3b5a027529d15a20715a9bdb36e09d52d078b5af893cbdf748d0bd73a911bdc453c3e81eb917c092751fabeb3e48077faa14a3f01
MISC metadata.xml 716 BLAKE2B 866b92afec30235731857799268948cf0d63be654432c72bf6a93084d2e344d486d0156571e08accfce4c9323aee6e7f155620d2e7a72ebfe69ef27b39bb13cb SHA512 fa3c54e5ea453bcefb5e9b9c76c3a45fa74280ba52b713ac93aa5a95341dc0f9111130b1952bc0a4b3b7898d5d0bde46234e1b42453757ead0c42c002141e6c4
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
+}