[arch-commits] Commit in python-pynest2d/repos (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:58:19 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:58:19
  Author: foutrelis
Revision: 1059623

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pynest2d/repos/community-staging-x86_64/
  python-pynest2d/repos/community-staging-x86_64/PKGBUILD
    (from rev 1059622, python-pynest2d/trunk/PKGBUILD)
  python-pynest2d/repos/community-staging-x86_64/fix-cpp-version.patch
    (from rev 1059622, python-pynest2d/trunk/fix-cpp-version.patch)

-----------------------+
 PKGBUILD              |   31 +++++++++++++++++++++++++++++++
 fix-cpp-version.patch |   11 +++++++++++
 2 files changed, 42 insertions(+)

Copied: python-pynest2d/repos/community-staging-x86_64/PKGBUILD (from rev 1059622, python-pynest2d/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-01 14:58:19 UTC (rev 1059623)
@@ -0,0 +1,31 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=python-pynest2d
+pkgver=4.10.0
+pkgrel=2
+pkgdesc="Python bindings for libnest2d"
+arch=(x86_64)
+url="https://github.com/Ultimaker/pynest2d"
+license=("LGPL")
+depends=(python polyclipping nlopt)
+makedepends=(sip4 cmake boost libnest2d)
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/Ultimaker/pynest2d/archive/${pkgver}.tar.gz fix-cpp-version.patch)
+sha512sums=('62a3c6266bf3c4e7f806d9674debe6872917af422443dd5e9c54a430bf95190fb00cf6dd3fd4e66572f266a673f4cf1500a3d42565cfd1cf2ce4e288b7db2acc'
+            '0d01349a110bc2cde6b7279ba8b8d60cd71c599fe10054e4082aac86bf4e30184959dcfcc795a63ae7517845c014b14db029a6070833696191d874dbfa24ed30')
+
+prepare() {
+  cd pynest2d-${pkgver}
+  patch -Np1 -i ${srcdir}/fix-cpp-version.patch
+
+  mkdir build
+}
+
+build() {
+  cd pynest2d-${pkgver}/build
+  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+}
+
+package() {
+  cd pynest2d-${pkgver}/build
+  make DESTDIR="${pkgdir}" install
+}

Copied: python-pynest2d/repos/community-staging-x86_64/fix-cpp-version.patch (from rev 1059622, python-pynest2d/trunk/fix-cpp-version.patch)
===================================================================
--- community-staging-x86_64/fix-cpp-version.patch	                        (rev 0)
+++ community-staging-x86_64/fix-cpp-version.patch	2021-12-01 14:58:19 UTC (rev 1059623)
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -17,7 +17,7 @@ find_package(Boost REQUIRED)  # Dependency of libnest2d.
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLIBNEST2D_GEOMETRIES_clipper -DLIBNEST2D_OPTIMIZERS_nlopt -DLIBNEST2D_THREADING_std")  # Tell libnest2d to use Clipper and NLopt, and standard threads.
+
+ # Some build options.
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 14)
+ if(APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
+ endif()



More information about the arch-commits mailing list