summaryrefslogtreecommitdiff
path: root/dev-libs/libnest2d
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-12 21:55:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-12 21:55:15 +0000
commit7218e1b46bceac05841e90472501742d905fb3fc (patch)
tree56fae051db521b8fce8014cbc8b11484885b14b3 /dev-libs/libnest2d
parent6d691ad5b6239929063441bbd14c489e92e7396e (diff)
gentoo resync : 12.03.2021
Diffstat (limited to 'dev-libs/libnest2d')
-rw-r--r--dev-libs/libnest2d/Manifest6
-rw-r--r--dev-libs/libnest2d/files/libnest2d-0.4-add-soversion-to-shared-library.patch21
-rw-r--r--dev-libs/libnest2d/files/libnest2d-0.4-fix-cpp-version.patch11
-rw-r--r--dev-libs/libnest2d/libnest2d-0.4-r1.ebuild (renamed from dev-libs/libnest2d/libnest2d-0.4.ebuild)10
-rw-r--r--dev-libs/libnest2d/metadata.xml3
5 files changed, 46 insertions, 5 deletions
diff --git a/dev-libs/libnest2d/Manifest b/dev-libs/libnest2d/Manifest
index 06819ec8ac8c..cf13b9cfd8cc 100644
--- a/dev-libs/libnest2d/Manifest
+++ b/dev-libs/libnest2d/Manifest
@@ -1,4 +1,6 @@
AUX libnest2d-0.4-add-disallowed-areas.patch 4671 BLAKE2B 1b57d9a00f9ad5df3d0396d039bcf64570dedb0da939ad60a6eeca199de280a413fa80c4fb6edf976b920634243ce1f8da6a7c00cf08930a6309c4955f48f7e4 SHA512 1915a937b91c1e3d06d4a0b5914d706f84da171cfd2ebf161b0017e67a5a28bbefd80d7a290348735b4143e4b67f421c5d611831af1b89b76371327d74d11508
+AUX libnest2d-0.4-add-soversion-to-shared-library.patch 901 BLAKE2B 32d77c3c07059f4b2b9d58715a799395943560ebd7a738f585f43907bd21115e3f297fe6df7f0b3b1801c5b04d7e2e16eb09aff642a26edb5b35339dc2440eb9 SHA512 1d367a09a9f0ac51347c3a3dc440eb772b877abf00acd92a9ce166ecc4a9b537dbdbbab254c3b742c20b48fc5bee58b79811504921ec15a19700d8bcacee0d4b
+AUX libnest2d-0.4-fix-cpp-version.patch 205 BLAKE2B 3fb0503ec974b00af5d9f48a87be245bb1ed560034bee1ac6ee045074762e4d51a903ece3a15969a3f5d50ddd8c0d3b771cff97196bf25c056058b8cb4edad44 SHA512 c05cdf4fa075b16c694fd7279e25d4f9533f339318650db55d486528def6c697529a51135eafa7bb2a2de07bc8d7bbd520565b356316c135d3814484bfadd855
DIST libnest2d-0.4.tar.gz 365065 BLAKE2B 74a4aef18be22d24e4e73288dd3e330b2f5baa3b2c705683c22767dfb0394a7b332bad957321f57ec7eaaf4740cff9ca1ed86f9d552be65df1b2af76ceba61e9 SHA512 fadce18986b844eed13a581f84055df909a17407a0980deb6c7c24248a969a537a8840650bcfc673e61973810ce9a008acb599e3b8e00c9bff6b566ca41cd62c
-EBUILD libnest2d-0.4.ebuild 886 BLAKE2B 4fa60f8279f4bdbe3291ac835035a7ea577378907cc69db305393bd04515dd935a08cbe6978ab97c184baf63e1355027e1d26a45003687e22c92cefc194a7729 SHA512 6a6687807a9382fb2bfbb59c3535f78615167104f19251514bd008332cb556181b6cfead8cfc91a5dd28fab09f51c8c391ffed3be640a36208267c5be91b39d5
-MISC metadata.xml 1336 BLAKE2B f0ec248a2a93ed26c928e087e0674b2ea6e8511761f5944bd4683db7e33c3db194053bd94d638b2157b32834037f1919095c549dc608c7819b2e9ad137bbb57d SHA512 f334cec00c1dac77b4d27b1fa7260c16e2f1bc5e510ff2a0fbcec72c8670f9a5768b50be533656083abbca8ff5c6367694b1b1e343ea6725f7fd8625b8a3012e
+EBUILD libnest2d-0.4-r1.ebuild 990 BLAKE2B e90a03cff6a4404503bf34f0e75427de49df2791079bc31f3861f1a5e08121495d92cf28873b053aa35cbf23895c20c222d79a9104a64ef88e561c1382d20564 SHA512 0e7c2be102f24169570fbabbb0ae28fc9caba371f60a85e65244dc8dc36f0355402e28848e413a2807cff3c6d27f2bb6fbb31b893c2fa73856be96cf8a2c803e
+MISC metadata.xml 1406 BLAKE2B 013e0c6f04e1ebe734d744f1d31924404c43523e73697f9897a9e3b2eed6cf7e8e82722e98eadb7e7416b9a58823c3879ae51190ff211dbad13a295eb209b170 SHA512 36b1316bead34cdf259a8de5834f9d95b6b1fd4a7b65fc979da51a0f725762c5ebe1b9300a7c7826a6dd2ce30affb4b42f10f59e7d590b31fcfa49c6e375ffe9
diff --git a/dev-libs/libnest2d/files/libnest2d-0.4-add-soversion-to-shared-library.patch b/dev-libs/libnest2d/files/libnest2d-0.4-add-soversion-to-shared-library.patch
new file mode 100644
index 000000000000..456f543207a9
--- /dev/null
+++ b/dev-libs/libnest2d/files/libnest2d-0.4-add-soversion-to-shared-library.patch
@@ -0,0 +1,21 @@
+From 12b64796aee24d5af41df3a10c4313dc713c3e74 Mon Sep 17 00:00:00 2001
+From: Karl Nilsson <karl.robert.nilsson@gmail.com>
+Date: Wed, 13 Jan 2021 21:51:34 -0500
+Subject: [PATCH] CMake: add SOVERSION to shared library
+
+---
+ CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 374e90f..c2f2bec 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -95,6 +95,7 @@ if(NOT LIBNEST2D_HEADER_ONLY)
+ add_library(${LIBNAME} ${PROJECT_SOURCE_DIR}/src/libnest2d.cpp)
+ set_target_properties(${LIBNAME} PROPERTIES PREFIX "")
+ set_target_properties(${LIBNAME} PROPERTIES DEBUG_POSTFIX "d")
++ set_target_properties(${LIBNAME} PROPERTIES SOVERSION "1.0")
+ target_link_libraries(${LIBNAME} PUBLIC libnest2d_headeronly)
+ target_compile_definitions(${LIBNAME} PUBLIC LIBNEST2D_STATIC)
+ target_sources(${LIBNAME} PRIVATE ${LIBNEST2D_SRCFILES})
diff --git a/dev-libs/libnest2d/files/libnest2d-0.4-fix-cpp-version.patch b/dev-libs/libnest2d/files/libnest2d-0.4-fix-cpp-version.patch
new file mode 100644
index 000000000000..4032618fb538
--- /dev/null
+++ b/dev-libs/libnest2d/files/libnest2d-0.4-fix-cpp-version.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,7 +2,7 @@
+
+ project(Libnest2D)
+
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 14)
+ set(CMAKE_CXX_STANDARD_REQUIRED)
+
+ # Add our own cmake module path.
diff --git a/dev-libs/libnest2d/libnest2d-0.4.ebuild b/dev-libs/libnest2d/libnest2d-0.4-r1.ebuild
index c9896b772210..721bfa9f47c3 100644
--- a/dev-libs/libnest2d/libnest2d-0.4.ebuild
+++ b/dev-libs/libnest2d/libnest2d-0.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -10,7 +10,7 @@ HOMEPAGE="https://github.com/tamasmeszaros/libnest2d"
SRC_URI="https://github.com/tamasmeszaros/libnest2d/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
-SLOT="0"
+SLOT="0/1"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="examples static-libs test"
@@ -26,7 +26,11 @@ DEPEND="${RDEPEND}
test? ( >=dev-cpp/catch-2.9.1 )
"
-PATCHES=( "${FILESDIR}"/${P}-add-disallowed-areas.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-add-disallowed-areas.patch
+ "${FILESDIR}"/${P}-add-soversion-to-shared-library.patch
+ "${FILESDIR}"/${P}-fix-cpp-version.patch
+ )
src_configure() {
local mycmakeargs=(
diff --git a/dev-libs/libnest2d/metadata.xml b/dev-libs/libnest2d/metadata.xml
index 6690b27e3325..5b40bbe2f999 100644
--- a/dev-libs/libnest2d/metadata.xml
+++ b/dev-libs/libnest2d/metadata.xml
@@ -5,6 +5,9 @@
<email>3dprint@gentoo.org</email>
<name>Gentoo 3D Printer Project</name>
</maintainer>
+ <slots>
+ <subslots>soname major version number</subslots>
+ </slots>
<longdescription>
Libnest2D is a library and framework for the 2D bin packaging problem. Inspired from the SVGNest Javascript
library the project is built from scratch in C++11. The library is written with a policy that it should be