media-libs/lensfun-0.3.3-r1 dazu
Der Ebuild behebt das Problem der kaputten Python-Installation.
This commit is contained in:
71
media-libs/lensfun/lensfun-0.3.3-r1.ebuild
Normal file
71
media-libs/lensfun/lensfun-0.3.3-r1.ebuild
Normal file
@@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
inherit distutils-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 ~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
|
||||
|
||||
# We have no use for an *.egg file without a corresponding *.pth, and those are deprecated.
|
||||
# Replace it with the unpacked module and its metadata.
|
||||
cd "${BUILD_DIR}/apps"
|
||||
python_domodule lensfun lensfun.egg-info
|
||||
rm "${D}"/usr/lib/${EPYTHON}/site-packages/*.egg || die
|
||||
}
|
||||
Reference in New Issue
Block a user