[arch-commits] Commit in vigra/repos (3 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 14:54:45 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:54:45
Author: foutrelis
Revision: 1059518
archrelease: copy trunk to community-staging-x86_64
Added:
vigra/repos/community-staging-x86_64/
vigra/repos/community-staging-x86_64/PKGBUILD
(from rev 1059517, vigra/trunk/PKGBUILD)
vigra/repos/community-staging-x86_64/vigra-openexr3.patch
(from rev 1059517, vigra/trunk/vigra-openexr3.patch)
----------------------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
vigra-openexr3.patch | 21 ++++++++++++++++++
2 files changed, 76 insertions(+)
Copied: vigra/repos/community-staging-x86_64/PKGBUILD (from rev 1059517, vigra/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-01 14:54:45 UTC (rev 1059518)
@@ -0,0 +1,55 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: AndyRTR <andyrtr at archlinux.org>
+# Contributor: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+
+pkgname=vigra
+pkgver=1.11.1.r45+g8acd73a5
+pkgrel=4
+pkgdesc="Computer vision library"
+arch=(x86_64)
+url="https://ukoethe.github.io/vigra/"
+license=(custom:MIT)
+depends=(libpng libtiff openexr gcc-libs sh hdf5 fftw)
+makedepends=(git cmake boost python-numpy)
+checkdepends=(python-nose)
+optdepends=('python: for python bindings'
+ 'boost-libs: for python bindings')
+source=(git+https://github.com/ukoethe/vigra#commit=8acd73a5e0408326e2a3c1ed1c2c70ffe2b954d0
+ vigra-openexr3.patch)
+sha256sums=(SKIP
+ 2572717e39f916c7c463b8f49306b683c5923906be2721f7da181c58b3a2b34b)
+
+pkgver() {
+ cd ${pkgname}
+ git describe --long --tags | sed 's/^Version-//;s/\([^-]*-g\)/r\1/;s/-/./g;s/\.g/+g/'
+}
+
+prepare() {
+ cd ${pkgbase}
+ # Fix build with openexr 3
+ patch -p1 < ../vigra-openexr3.patch
+}
+
+build() {
+ cmake -B build -S ${pkgbase} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPYTHON_EXECUTABLE=/usr/bin/python \
+ -DWITH_OPENEXR=true \
+ -DWITH_VIGRANUMPY=1 \
+ -DDOCINSTALL=share/doc \
+ -DCMAKE_C_FLAGS="-DH5_USE_110_API" \
+ -DCMAKE_CXX_FLAGS="-DH5_USE_110_API"
+ make -C build
+}
+
+# Numerous failures, upstream almost dead
+# https://github.com/ukoethe/vigra/issues/409
+# https://github.com/ukoethe/vigra/issues/491
+#check() {
+# make -C build -j1 -k check
+#}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm644 ${pkgbase}/LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
Copied: vigra/repos/community-staging-x86_64/vigra-openexr3.patch (from rev 1059517, vigra/trunk/vigra-openexr3.patch)
===================================================================
--- community-staging-x86_64/vigra-openexr3.patch (rev 0)
+++ community-staging-x86_64/vigra-openexr3.patch 2021-12-01 14:54:45 UTC (rev 1059518)
@@ -0,0 +1,21 @@
+diff --git a/config/FindOpenEXR.cmake b/config/FindOpenEXR.cmake
+index ef36cdbf..0423e247 100644
+--- a/config/FindOpenEXR.cmake
++++ b/config/FindOpenEXR.cmake
+@@ -23,6 +23,16 @@
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
++find_package(OpenEXR 3.0 CONFIG QUIET)
++if(TARGET OpenEXR::OpenEXR)
++ find_package(Threads)
++ SET(OPENEXR_FOUND TRUE)
++ SET(OPENEXR_INCLUDE_DIR OpenEXR::OpenEXR)
++ SET(OPENEXR_LIBRARIES OpenEXR::OpenEXR)
++ SET(OPENEXR_VERSION ${OpenEXR_VERSION})
++ return()
++endif()
++
+ FIND_PATH(OPENEXR_INCLUDE_DIR ImfRgbaFile.h PATH_SUFFIXES OpenEXR)
+
+ FOREACH(V "" -2_2 -2_1 -2_0 -1_7)
More information about the arch-commits
mailing list