diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 14:59:24 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 14:59:24 -0300 |
commit | 17665a6708d6043155fba9ea134c03a0af06c2be (patch) | |
tree | 871fd6c8d7206d621724651d5ad3697058316bc6 /testing/opencolorio | |
parent | 4b0b4a36e7cb374d81e6eae73779490c3f0dc2ed (diff) | |
download | aports-17665a6708d6043155fba9ea134c03a0af06c2be.tar.bz2 aports-17665a6708d6043155fba9ea134c03a0af06c2be.tar.xz |
testing/opencolorio: drop py2 support
Diffstat (limited to 'testing/opencolorio')
-rw-r--r-- | testing/opencolorio/APKBUILD | 70 |
1 files changed, 27 insertions, 43 deletions
diff --git a/testing/opencolorio/APKBUILD b/testing/opencolorio/APKBUILD index d85e126048..e8a6cf7dd2 100644 --- a/testing/opencolorio/APKBUILD +++ b/testing/opencolorio/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: Mark Riedesel <mark@klowner.com> pkgname=opencolorio pkgver=1.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="A color management framework for visual effects and animation" url="https://opencolorio.org" arch="all" license="BSD-3-Clause AND GPL-2.0-or-later" -makedepends="boost-dev cmake freeglut-dev glew-dev lcms2-dev python2-dev - python3-dev tinyxml-dev yaml-cpp-dev" -subpackages="py2-$pkgname:py2 py3-$pkgname:py3 $pkgname-dev $pkgname-tools" +makedepends="boost-dev cmake freeglut-dev glew-dev lcms2-dev python3-dev + tinyxml-dev yaml-cpp-dev" +subpackages="py3-$pkgname:py3 $pkgname-dev $pkgname-tools" source="$pkgname-$pkgver.tar.gz::https://github.com/imageworks/OpenColorIO/archive/v$pkgver.tar.gz OpenColorIO-gcc.patch ocio-1.1.0-yamlcpp060.patch @@ -17,9 +17,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/imageworks/OpenColorIO/archi builddir="$srcdir/OpenColorIO-$pkgver" build() { - local pyver use_sse2 - cd "$builddir" - + local use_ss2 # Just to be sure we're using Alpine packages. rm -f ext/lcms* ext/tinyxml* ext/yaml* @@ -28,34 +26,27 @@ build() { *) use_sse2=FALSE ;; esac - local pyver - for pyver in python3 python2; do - mkdir build-$pyver && cd build-$pyver + mkdir build + cd build - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DOCIO_BUILD_TRUELIGHT=OFF \ - -DOCIO_BUILD_NUKE=OFF \ - -DOCIO_BUILD_SHARED=ON \ - -DOCIO_BUILD_STATIC=OFF \ - -DOCIO_USE_SSE="$use_sse2" \ - -DPYTHON=/usr/bin/$pyver \ - -DUSE_EXTERNAL_YAML=TRUE \ - -DUSE_EXTERNAL_TINYXML=TRUE \ - -DUSE_EXTERNAL_LCMS=TRUE \ - -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-error=cast-function-type" \ - || return 1 - make || return 1 - cd .. - done + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DOCIO_BUILD_TRUELIGHT=OFF \ + -DOCIO_BUILD_NUKE=OFF \ + -DOCIO_BUILD_SHARED=ON \ + -DOCIO_BUILD_STATIC=OFF \ + -DOCIO_USE_SSE="$use_sse2" \ + -DPYTHON=/usr/bin/python3 \ + -DUSE_EXTERNAL_YAML=TRUE \ + -DUSE_EXTERNAL_TINYXML=TRUE \ + -DUSE_EXTERNAL_LCMS=TRUE \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-error=cast-function-type" + make } package() { - local pyver - for pyver in python3 python2; do - cd "$builddir"/build-$pyver - make DESTDIR="$pkgdir" install || return 1 - done + cd "$builddir"/build + make DESTDIR="$pkgdir" install } tools() { @@ -65,19 +56,12 @@ tools() { mv "$pkgdir"/usr/bin "$subpkgdir"/usr } -_python() { - pkgdesc="Python $1 bindings for OpenColorIO color management framework" - depends="python$1" - - mv "$pkgdir"$2 "$subpkgdir" -} - -py2() { - _python 2 "$(python2 -c 'import site; print(site.getsitepackages()[0])')" -} - py3() { - _python 3 "$(python3 -c 'import site; print(site.getsitepackages()[0])')" + pkgdesc="Python3 bindings for OpenColorIO color management framework" + depends="python3" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib } sha512sums="909874a9f91a8d229622810fc70233680c6e75203bd8555179322de2873da00bf302432e19f189b787ffcda3157ddec1e4601c97f75a36e16f644fe7d42f6998 opencolorio-1.1.0.tar.gz |