[arch-commits] Commit in opensubdiv/repos (4 files)

2022-05-17 Thread Konstantin Gizdov via arch-commits
Date: Tuesday, May 17, 2022 @ 21:09:58
  Author: kgizdov
Revision: 1207735

archrelease: copy trunk to community-staging-x86_64

Added:
  opensubdiv/repos/community-staging-x86_64/
  opensubdiv/repos/community-staging-x86_64/PKGBUILD
(from rev 1207734, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-staging-x86_64/cuda11.patch
(from rev 1207734, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-staging-x86_64/python3.patch
(from rev 1207734, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   51 
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 207 insertions(+)

Copied: opensubdiv/repos/community-staging-x86_64/PKGBUILD (from rev 1207734, 
opensubdiv/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-05-17 21:09:58 UTC (rev 1207735)
@@ -0,0 +1,51 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=11
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch
+
opensubdiv-tbb2021.patch::https://github.com/PixarAnimationStudios/OpenSubdiv/commit/9079a517.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292'
+
'c65770d3e65a63c88aa1061e10c5dd6be8616a2479bd5f6d3928c97a5895cfa7d0aac455121db7ee610b9731bfbf07c3f8a26e9cd47623cd1baa046d9aa68cdf')
+options=(!lto)
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  patch -Np1 -i "${srcdir}"/opensubdiv-tbb2021.patch # Support TBB 2021
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-staging-x86_64/cuda11.patch (from rev 
1207734, opensubdiv/trunk/cuda11.patch)
===
--- community-staging-x86_64/cuda11.patch   (rev 0)
+++ community-staging-x86_64/cuda11.patch   2022-05-17 21:09:58 UTC (rev 
1207735)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-staging-x86_64/python3.patch (from rev 
1207734, opensubdiv/trunk/python3.patch)
===
--- community-staging-x86_64/python3.patch  (rev 0)
+++ community-staging-x86_64/python3.patch  2022-05-17 21:09:58 UTC (rev 
1207735)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py 

[arch-commits] Commit in opensubdiv/repos (4 files)

2022-04-28 Thread Konstantin Gizdov via arch-commits
Date: Thursday, April 28, 2022 @ 14:39:26
  Author: kgizdov
Revision: 1191582

archrelease: copy trunk to community-testing-x86_64

Added:
  opensubdiv/repos/community-testing-x86_64/
  opensubdiv/repos/community-testing-x86_64/PKGBUILD
(from rev 1191581, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-testing-x86_64/cuda11.patch
(from rev 1191581, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-testing-x86_64/python3.patch
(from rev 1191581, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   51 
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 207 insertions(+)

Copied: opensubdiv/repos/community-testing-x86_64/PKGBUILD (from rev 1191581, 
opensubdiv/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-04-28 14:39:26 UTC (rev 1191582)
@@ -0,0 +1,51 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=10
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch
+
opensubdiv-tbb2021.patch::https://github.com/PixarAnimationStudios/OpenSubdiv/commit/9079a517.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292'
+
'c65770d3e65a63c88aa1061e10c5dd6be8616a2479bd5f6d3928c97a5895cfa7d0aac455121db7ee610b9731bfbf07c3f8a26e9cd47623cd1baa046d9aa68cdf')
+options=(!lto)
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  patch -Np1 -i "${srcdir}"/opensubdiv-tbb2021.patch # Support TBB 2021
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-testing-x86_64/cuda11.patch (from rev 
1191581, opensubdiv/trunk/cuda11.patch)
===
--- community-testing-x86_64/cuda11.patch   (rev 0)
+++ community-testing-x86_64/cuda11.patch   2022-04-28 14:39:26 UTC (rev 
1191582)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-testing-x86_64/python3.patch (from rev 
1191581, opensubdiv/trunk/python3.patch)
===
--- community-testing-x86_64/python3.patch  (rev 0)
+++ community-testing-x86_64/python3.patch  2022-04-28 14:39:26 UTC (rev 
1191582)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py 

[arch-commits] Commit in opensubdiv/repos (4 files)

2022-01-30 Thread Konstantin Gizdov via arch-commits
Date: Sunday, January 30, 2022 @ 13:39:38
  Author: kgizdov
Revision: 1120234

archrelease: copy trunk to community-testing-x86_64

Added:
  opensubdiv/repos/community-testing-x86_64/
  opensubdiv/repos/community-testing-x86_64/PKGBUILD
(from rev 1120233, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-testing-x86_64/cuda11.patch
(from rev 1120233, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-testing-x86_64/python3.patch
(from rev 1120233, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   51 
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 207 insertions(+)

Copied: opensubdiv/repos/community-testing-x86_64/PKGBUILD (from rev 1120233, 
opensubdiv/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-30 13:39:38 UTC (rev 1120234)
@@ -0,0 +1,51 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=9
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch
+
opensubdiv-tbb2021.patch::https://github.com/PixarAnimationStudios/OpenSubdiv/commit/9079a517.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292'
+
'c65770d3e65a63c88aa1061e10c5dd6be8616a2479bd5f6d3928c97a5895cfa7d0aac455121db7ee610b9731bfbf07c3f8a26e9cd47623cd1baa046d9aa68cdf')
+options=(!lto)
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  patch -Np1 -i "${srcdir}"/opensubdiv-tbb2021.patch # Support TBB 2021
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-testing-x86_64/cuda11.patch (from rev 
1120233, opensubdiv/trunk/cuda11.patch)
===
--- community-testing-x86_64/cuda11.patch   (rev 0)
+++ community-testing-x86_64/cuda11.patch   2022-01-30 13:39:38 UTC (rev 
1120234)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-testing-x86_64/python3.patch (from rev 
1120233, opensubdiv/trunk/python3.patch)
===
--- community-testing-x86_64/python3.patch  (rev 0)
+++ community-testing-x86_64/python3.patch  2022-01-30 13:39:38 UTC (rev 
1120234)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py 

[arch-commits] Commit in opensubdiv/repos (4 files)

2021-11-24 Thread Antonio Rojas via arch-commits
Date: Wednesday, November 24, 2021 @ 22:32:08
  Author: arojas
Revision: 1054743

archrelease: copy trunk to community-staging-x86_64

Added:
  opensubdiv/repos/community-staging-x86_64/
  opensubdiv/repos/community-staging-x86_64/PKGBUILD
(from rev 1054742, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-staging-x86_64/cuda11.patch
(from rev 1054742, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-staging-x86_64/python3.patch
(from rev 1054742, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   50 
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 206 insertions(+)

Copied: opensubdiv/repos/community-staging-x86_64/PKGBUILD (from rev 1054742, 
opensubdiv/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-24 22:32:08 UTC (rev 1054743)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=8
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch
+
opensubdiv-tbb2021.patch::https://github.com/PixarAnimationStudios/OpenSubdiv/commit/9079a517.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292'
+
'c65770d3e65a63c88aa1061e10c5dd6be8616a2479bd5f6d3928c97a5895cfa7d0aac455121db7ee610b9731bfbf07c3f8a26e9cd47623cd1baa046d9aa68cdf')
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  patch -Np1 -i "${srcdir}"/opensubdiv-tbb2021.patch # Support TBB 2021
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-staging-x86_64/cuda11.patch (from rev 
1054742, opensubdiv/trunk/cuda11.patch)
===
--- community-staging-x86_64/cuda11.patch   (rev 0)
+++ community-staging-x86_64/cuda11.patch   2021-11-24 22:32:08 UTC (rev 
1054743)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-staging-x86_64/python3.patch (from rev 
1054742, opensubdiv/trunk/python3.patch)
===
--- community-staging-x86_64/python3.patch  (rev 0)
+++ community-staging-x86_64/python3.patch  2021-11-24 22:32:08 UTC (rev 
1054743)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py 

[arch-commits] Commit in opensubdiv/repos (4 files)

2021-10-31 Thread Sven-Hendrik Haase via arch-commits
Date: Sunday, October 31, 2021 @ 14:12:42
  Author: svenstaro
Revision: 1035064

archrelease: copy trunk to community-testing-x86_64

Added:
  opensubdiv/repos/community-testing-x86_64/
  opensubdiv/repos/community-testing-x86_64/PKGBUILD
(from rev 1035063, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-testing-x86_64/cuda11.patch
(from rev 1035063, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-testing-x86_64/python3.patch
(from rev 1035063, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   47 ++
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 203 insertions(+)

Copied: opensubdiv/repos/community-testing-x86_64/PKGBUILD (from rev 1035063, 
opensubdiv/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-10-31 14:12:42 UTC (rev 1035064)
@@ -0,0 +1,47 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=7
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292')
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-testing-x86_64/cuda11.patch (from rev 
1035063, opensubdiv/trunk/cuda11.patch)
===
--- community-testing-x86_64/cuda11.patch   (rev 0)
+++ community-testing-x86_64/cuda11.patch   2021-10-31 14:12:42 UTC (rev 
1035064)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-testing-x86_64/python3.patch (from rev 
1035063, opensubdiv/trunk/python3.patch)
===
--- community-testing-x86_64/python3.patch  (rev 0)
+++ community-testing-x86_64/python3.patch  2021-10-31 14:12:42 UTC (rev 
1035064)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py b/documentation/processHtml.py
+index 1a81df59..5e610ea8 100755
+--- a/documentation/processHtml.py
 b/documentation/processHtml.py
+@@ -25,9 +25,8 @@
+ 
+ import os
+ import sys
+-import string
+ import re
+-import HTMLParser
++import html.parser as HTMLParser
+ 
+ class HtmlToTextParser(HTMLParser.HTMLParser):
+ def __init__(self):
+@@ 

[arch-commits] Commit in opensubdiv/repos (4 files)

2021-09-09 Thread Konstantin Gizdov via arch-commits
Date: Thursday, September 9, 2021 @ 17:02:25
  Author: kgizdov
Revision: 1013101

archrelease: copy trunk to community-testing-x86_64

Added:
  opensubdiv/repos/community-testing-x86_64/
  opensubdiv/repos/community-testing-x86_64/PKGBUILD
(from rev 1013100, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-testing-x86_64/cuda11.patch
(from rev 1013100, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-testing-x86_64/python3.patch
(from rev 1013100, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   47 ++
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 203 insertions(+)

Copied: opensubdiv/repos/community-testing-x86_64/PKGBUILD (from rev 1013100, 
opensubdiv/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-09-09 17:02:25 UTC (rev 1013101)
@@ -0,0 +1,47 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=6
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292')
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-testing-x86_64/cuda11.patch (from rev 
1013100, opensubdiv/trunk/cuda11.patch)
===
--- community-testing-x86_64/cuda11.patch   (rev 0)
+++ community-testing-x86_64/cuda11.patch   2021-09-09 17:02:25 UTC (rev 
1013101)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-testing-x86_64/python3.patch (from rev 
1013100, opensubdiv/trunk/python3.patch)
===
--- community-testing-x86_64/python3.patch  (rev 0)
+++ community-testing-x86_64/python3.patch  2021-09-09 17:02:25 UTC (rev 
1013101)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py b/documentation/processHtml.py
+index 1a81df59..5e610ea8 100755
+--- a/documentation/processHtml.py
 b/documentation/processHtml.py
+@@ -25,9 +25,8 @@
+ 
+ import os
+ import sys
+-import string
+ import re
+-import HTMLParser
++import html.parser as HTMLParser
+ 
+ class HtmlToTextParser(HTMLParser.HTMLParser):
+ def __init__(self):
+@@ 

[arch-commits] Commit in opensubdiv/repos (4 files)

2021-08-16 Thread Konstantin Gizdov via arch-commits
Date: Monday, August 16, 2021 @ 16:04:25
  Author: kgizdov
Revision: 1001052

archrelease: copy trunk to community-testing-x86_64

Added:
  opensubdiv/repos/community-testing-x86_64/
  opensubdiv/repos/community-testing-x86_64/PKGBUILD
(from rev 1001051, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-testing-x86_64/cuda11.patch
(from rev 1001051, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-testing-x86_64/python3.patch
(from rev 1001051, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   47 ++
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 203 insertions(+)

Copied: opensubdiv/repos/community-testing-x86_64/PKGBUILD (from rev 1001051, 
opensubdiv/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-08-16 16:04:25 UTC (rev 1001052)
@@ -0,0 +1,47 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=5
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'a9f15c1c2c66d5ecfd4b9b9e8f5a5a455488c5745def284fc5f1ac22f4429974de2b85c6da5289c0290ec9a02c2e2d022fcd760e5d37f532a0cd8c479c7f2d1a')
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_52' \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-testing-x86_64/cuda11.patch (from rev 
1001051, opensubdiv/trunk/cuda11.patch)
===
--- community-testing-x86_64/cuda11.patch   (rev 0)
+++ community-testing-x86_64/cuda11.patch   2021-08-16 16:04:25 UTC (rev 
1001052)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_52 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-testing-x86_64/python3.patch (from rev 
1001051, opensubdiv/trunk/python3.patch)
===
--- community-testing-x86_64/python3.patch  (rev 0)
+++ community-testing-x86_64/python3.patch  2021-08-16 16:04:25 UTC (rev 
1001052)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py b/documentation/processHtml.py
+index 1a81df59..5e610ea8 100755
+--- a/documentation/processHtml.py
 b/documentation/processHtml.py
+@@ -25,9 +25,8 @@
+ 
+ import os
+ import sys
+-import string
+ import re
+-import HTMLParser
++import html.parser as HTMLParser
+ 
+ class HtmlToTextParser(HTMLParser.HTMLParser):
+ def __init__(self):
+@@ 

[arch-commits] Commit in opensubdiv/repos (4 files)

2021-07-20 Thread Sven-Hendrik Haase via arch-commits
Date: Tuesday, July 20, 2021 @ 21:21:59
  Author: svenstaro
Revision: 980571

archrelease: copy trunk to community-testing-x86_64

Added:
  opensubdiv/repos/community-testing-x86_64/
  opensubdiv/repos/community-testing-x86_64/PKGBUILD
(from rev 980570, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-testing-x86_64/cuda11.patch
(from rev 980570, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-testing-x86_64/python3.patch
(from rev 980570, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   46 ++
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 202 insertions(+)

Copied: opensubdiv/repos/community-testing-x86_64/PKGBUILD (from rev 980570, 
opensubdiv/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-20 21:21:59 UTC (rev 980571)
@@ -0,0 +1,46 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=3
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'e67d270496b56f6337698ee7bd9f1a0c945e75cd963e5f9dd451414c92c12382525190d691de269d783cffebed0b0dae5bd8fd94e555d7bb94ae06034edc375f')
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++-10 \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-testing-x86_64/cuda11.patch (from rev 
980570, opensubdiv/trunk/cuda11.patch)
===
--- community-testing-x86_64/cuda11.patch   (rev 0)
+++ community-testing-x86_64/cuda11.patch   2021-07-20 21:21:59 UTC (rev 
980571)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_37 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-testing-x86_64/python3.patch (from rev 
980570, opensubdiv/trunk/python3.patch)
===
--- community-testing-x86_64/python3.patch  (rev 0)
+++ community-testing-x86_64/python3.patch  2021-07-20 21:21:59 UTC (rev 
980571)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py b/documentation/processHtml.py
+index 1a81df59..5e610ea8 100755
+--- a/documentation/processHtml.py
 b/documentation/processHtml.py
+@@ -25,9 +25,8 @@
+ 
+ import os
+ import sys
+-import string
+ import re
+-import HTMLParser
++import html.parser as HTMLParser
+ 
+ class HtmlToTextParser(HTMLParser.HTMLParser):
+ def __init__(self):
+@@ -89,10 +88,10 @@ def ReadNavigationTemplate( filePath ):
+ try:
+

[arch-commits] Commit in opensubdiv/repos (4 files)

2021-06-14 Thread Konstantin Gizdov via arch-commits
Date: Monday, June 14, 2021 @ 14:16:18
  Author: kgizdov
Revision: 963445

archrelease: copy trunk to community-testing-x86_64

Added:
  opensubdiv/repos/community-testing-x86_64/
  opensubdiv/repos/community-testing-x86_64/PKGBUILD
(from rev 963444, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-testing-x86_64/cuda11.patch
(from rev 963444, opensubdiv/trunk/cuda11.patch)
  opensubdiv/repos/community-testing-x86_64/python3.patch
(from rev 963444, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   46 ++
 cuda11.patch  |   17 ++
 python3.patch |  139 
 3 files changed, 202 insertions(+)

Copied: opensubdiv/repos/community-testing-x86_64/PKGBUILD (from rev 963444, 
opensubdiv/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-06-14 14:16:18 UTC (rev 963445)
@@ -0,0 +1,46 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.4
+pkgrel=2
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda11.patch)
+sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
+
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
+
'e67d270496b56f6337698ee7bd9f1a0c945e75cd963e5f9dd451414c92c12382525190d691de269d783cffebed0b0dae5bd8fd94e555d7bb94ae06034edc375f')
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  # wtf
+  mkdir -p CMakeFiles/osd_static_gpu.dir/osd
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++-10 \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-testing-x86_64/cuda11.patch (from rev 
963444, opensubdiv/trunk/cuda11.patch)
===
--- community-testing-x86_64/cuda11.patch   (rev 0)
+++ community-testing-x86_64/cuda11.patch   2021-06-14 14:16:18 UTC (rev 
963445)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt2021-06-14 16:59:54.699746298 
+0300
 OpenSubdiv-3_4_4-new/CMakeLists.txt2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++elseif (CUDA_VERSION_MAJOR LESS 11)
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_37 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-testing-x86_64/python3.patch (from rev 
963444, opensubdiv/trunk/python3.patch)
===
--- community-testing-x86_64/python3.patch  (rev 0)
+++ community-testing-x86_64/python3.patch  2021-06-14 14:16:18 UTC (rev 
963445)
@@ -0,0 +1,139 @@
+diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
+index 32b12a3d..581159ca 100644
+--- a/documentation/CMakeLists.txt
 b/documentation/CMakeLists.txt
+@@ -54,7 +54,7 @@ else()
+ 
+ endif()
+ 
+-find_package(PythonInterp 2.6)
++find_package(PythonInterp 3.8)
+ 
+ # ReST - HTML documentation
+ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND)
+diff --git a/documentation/processHtml.py b/documentation/processHtml.py
+index 1a81df59..5e610ea8 100755
+--- a/documentation/processHtml.py
 b/documentation/processHtml.py
+@@ -25,9 +25,8 @@
+ 
+ import os
+ import sys
+-import string
+ import re
+-import HTMLParser
++import html.parser as HTMLParser
+ 
+ class HtmlToTextParser(HTMLParser.HTMLParser):
+ def __init__(self):
+@@ -89,10 +88,10 @@ def ReadNavigationTemplate( filePath ):
+ try:
+   

[arch-commits] Commit in opensubdiv/repos (4 files)

2021-02-16 Thread Konstantin Gizdov via arch-commits
Date: Tuesday, February 16, 2021 @ 08:56:23
  Author: kgizdov
Revision: 862262

archrelease: copy trunk to community-testing-x86_64

Added:
  opensubdiv/repos/community-testing-x86_64/
  opensubdiv/repos/community-testing-x86_64/PKGBUILD
(from rev 862261, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-testing-x86_64/cuda9.patch
(from rev 862261, opensubdiv/trunk/cuda9.patch)
  opensubdiv/repos/community-testing-x86_64/python3.patch
(from rev 862261, opensubdiv/trunk/python3.patch)

---+
 PKGBUILD  |   43 +++
 cuda9.patch   |   25 ++
 python3.patch |  211 
 3 files changed, 279 insertions(+)

Copied: opensubdiv/repos/community-testing-x86_64/PKGBUILD (from rev 862261, 
opensubdiv/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-16 08:56:23 UTC (rev 862262)
@@ -0,0 +1,43 @@
+# Maintainer: Sven-Hendrik Haase 
+pkgname=opensubdiv
+pkgver=3.4.3
+pkgrel=5
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv;
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz;
+python3.patch
+cuda9.patch)
+sha512sums=('44fd1361d9e7f48c3fa84f3420ed34743571220602aefb082a42f769ca5b8e9ac21907ce8714f6e3a2caadd75adae03c535a1949a8e6450dfea9ae7a2247cfc2'
+
'035a6691080e9ec1a6eb5e4a7746f3f0ba6caea4b74c1bfededdc477b701431456b026ee75dbf7ca03fabd6526f62e9181c616a62304f26e614474577b96fcc7'
+
'fe51160959f71f33e3c8008158f9f98c3c7a065b22360e7719ec1d262105b35d02c2c2f64f05acee58281c938a007a88054dcc07f1aef89908e6dbf4e3e3ab6f')
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+  patch -Np1 -i "${srcdir}"/cuda9.patch
+  mkdir build
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  cmake .. \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+  -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"/build
+
+  DESTDIR="$pkgdir/" make install
+
+  rm -rf "${pkgdir}"/usr/bin
+}

Copied: opensubdiv/repos/community-testing-x86_64/cuda9.patch (from rev 862261, 
opensubdiv/trunk/cuda9.patch)
===
--- community-testing-x86_64/cuda9.patch(rev 0)
+++ community-testing-x86_64/cuda9.patch2021-02-16 08:56:23 UTC (rev 
862262)
@@ -0,0 +1,25 @@
+From 7b9157bca7138480c387ef3d5b69b6cf1eb498e5 Mon Sep 17 00:00:00 2001
+From: "Daniel M. Weeks" 
+Date: Fri, 15 Dec 2017 22:45:55 -0500
+Subject: [PATCH] CUDA 9 compatible gpu-architecture default
+
+---
+ CMakeLists.txt | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4f3cd9d40..fa438b461 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -513,8 +513,10 @@ if(CUDA_FOUND)
+ if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+ if (CUDA_VERSION_MAJOR LESS 6)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-else()
++elseif (CUDA_VERSION_MAJOR LESS 9)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++else()
++set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
+ endif()
+ endif()
+ endif()

Copied: opensubdiv/repos/community-testing-x86_64/python3.patch (from rev 
862261, opensubdiv/trunk/python3.patch)
===
--- community-testing-x86_64/python3.patch  (rev 0)
+++ community-testing-x86_64/python3.patch  2021-02-16 08:56:23 UTC (rev 
862262)
@@ -0,0 +1,211 @@
+diff --git a/build_scripts/build_osd.py b/build_scripts/build_osd.py
+index e8ebef88..4b2b6fb9 100644
+--- a/build_scripts/build_osd.py
 b/build_scripts/build_osd.py
+@@ -38,7 +38,7 @@ import shutil
+ import subprocess
+ import sys
+ import tarfile
+-import urllib2
++import urllib.request, urllib.error, urllib.parse
+ import zipfile
+ 
+ # Helpers for printing output
+@@ -46,26 +46,26 @@ verbosity = 1
+ 
+ def Print(msg):
+ if verbosity > 0:
+-print msg
++print(msg)
+ 
+ def PrintWarning(warning):
+ if verbosity > 0:
+-print "WARNING:", warning
++print("WARNING:", warning)
+ 
+ def PrintStatus(status):
+ if verbosity >= 1:
+-print "STATUS:", status
++print("STATUS:", status)
+ 
+ def PrintInfo(info):
+ if verbosity >= 2:
+-print "INFO:", info
++print("INFO:", info)
+