diff options
author | Michael Vetter <jubalh@iodoru.org> | 2018-02-27 09:59:45 +0000 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-03-05 16:47:12 +0100 |
commit | 424c9b11210b6b827b68a743bc1dc7a521b02e5c (patch) | |
tree | 437c06b5e2e850d408892606561cdaa3f58e046b /sci-mathematics | |
parent | sci-mathematics/octave-epstk: Drop old (diff) | |
download | gentoo-424c9b11210b6b827b68a743bc1dc7a521b02e5c.tar.gz gentoo-424c9b11210b6b827b68a743bc1dc7a521b02e5c.tar.bz2 gentoo-424c9b11210b6b827b68a743bc1dc7a521b02e5c.zip |
sci-mathematics/cgal: Add 4.11.1
Bug fix release. For full list of fixes see:
https://github.com/CGAL/cgal/milestone/28?closed=1
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7297
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/cgal/Manifest | 2 | ||||
-rw-r--r-- | sci-mathematics/cgal/cgal-4.11.1.ebuild | 84 | ||||
-rw-r--r-- | sci-mathematics/cgal/files/cgal-4.11.1-fix-buildsystem.patch | 15 |
3 files changed, 101 insertions, 0 deletions
diff --git a/sci-mathematics/cgal/Manifest b/sci-mathematics/cgal/Manifest index 7d9cd232292b..1943c1c12615 100644 --- a/sci-mathematics/cgal/Manifest +++ b/sci-mathematics/cgal/Manifest @@ -1,4 +1,6 @@ DIST CGAL-4.10-doc_html.tar.xz 27147028 BLAKE2B ccdb77a497c2aef3004c3adfd81bf8f79a3322ed6cc071569d23666cf8ad00a94ce01f1bab21171eb461066e45a42c9c7003705d3d3d701879e7eb1e13af0eef SHA512 1c1c90c3ce07c5e4bf5a125cd5dccd0595f5c5d8fcf0f16df8a5506c6fe611c30440e034621c3477ae55670f96abbe389bfc2f3e0c88e099133b03cce6f2923d DIST CGAL-4.10.tar.xz 14249804 BLAKE2B 4715449bebc45fe9270b4a336af964eda4c1a603a9a63b3f3b6922253e18f205e27d5d14dea7ae90ece4184c8b3bafb0ff2963311da7a95ab6d21d8961679ac1 SHA512 2029ad647e73692bb38b2ed9606aae61ec1d74df886bb6fd0f4e3388fb08a51de87a1e290df0dcc621a8abc2654915e2d331ec9f6d27ddd9a21f187a165fa09d +DIST CGAL-4.11.1-doc_html.tar.xz 30575368 BLAKE2B 088cedcde628520625a4494b261e3ae963b8f3688ce4c1117e70f925ff86d11606482d3ce04415d6f03d07a52dfbf041ee315a0e627eb2d7944d08223b51077c SHA512 b16ad29a2981fc72902cc2c850a02c0412eb2f09f5ec864d85c92230ffe1f996c45ae2558b472b0b239d6c7718ccc6da6d65e52b5a7b33d1b406eda4aad0bca5 +DIST CGAL-4.11.1.tar.xz 14650588 BLAKE2B 08a7a61d92fc5293eef194d4bb1a42c69cacd8bbc3ee3c1e803435d0d7e2c3cf6533ce5a8f40fb4bf4e6b2ba34ec2c74abd2c2cbdbddbb874caa75b7d80624ba SHA512 0687ddd52e7a7d5e437a57c06d6c1ad7b325a7d0055fc48ba11be6fbc3e4003e2b28a35a9caac0c69af4c73d7d85553502e777714fa56c64580131b04dbe563e DIST cgal-4.9-doc_html-1.tar.xz 26612436 BLAKE2B 17ea9c6e7bd9c981c0b8282b4e4dd3606e1939902c131947e05eccd1760d743740bc9bc385052954c3e60a49a7d5f1d961b4f954892d172095e3a2cf86e8887e SHA512 df9855ff2b152a32dfb584c68b861e2cd480c073cd8cfddc494295455aff8d96e00ba6424b7a7f460e2f9e8db0fcefe858a656f4834821dd5466f61eb3d555b2 DIST cgal-4.9.tar.xz 13749292 BLAKE2B fc6f44dec7c4cfd6ec13911cd668f0c6df7e73cd85540678f43c95b6fd9130449ca2597222e6b668b05072194302b95d63ff775ca82380aedc4fb8c439967c5b SHA512 6f55e061917869dea1083e6fccac132a5232c2de4c01d0ed052bbb31789a23cc66334f12a884ed1e8a1b84af0e2a7186000964dd12e4b41914ee7fd5e36baca8 diff --git a/sci-mathematics/cgal/cgal-4.11.1.ebuild b/sci-mathematics/cgal/cgal-4.11.1.ebuild new file mode 100644 index 000000000000..99dae7d28937 --- /dev/null +++ b/sci-mathematics/cgal/cgal-4.11.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic + +MY_P=CGAL-${PV} + +DESCRIPTION="C++ library for geometric algorithms and data structures" +HOMEPAGE="https://www.cgal.org/" +SRC_URI=" + https://github.com/CGAL/cgal/releases/download/releases%2F${MY_P}/${MY_P}.tar.xz + doc? ( https://github.com/CGAL/cgal/releases/download/releases%2F${MY_P}/${MY_P}-doc_html.tar.xz )" + +LICENSE="LGPL-3 GPL-3 Boost-1.0" +SLOT="0/13" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples +gmp mpfi ntl qt5" + +RDEPEND=" + >=dev-cpp/eigen-3.1 + dev-libs/boost:=[threads] + dev-libs/mpfr:0= + sys-libs/zlib:= + x11-libs/libX11:= + virtual/glu:= + virtual/opengl:= + gmp? ( dev-libs/gmp:=[cxx] ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + ) + mpfi? ( sci-libs/mpfi ) + ntl? ( dev-libs/ntl )" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/${PN}-4.11.1-fix-buildsystem.patch" +) + +src_prepare() { + cmake-utils_src_prepare + # modules provided by dev-util/cmake and dev-cpp/eigen + rm cmake/modules/Find{Eigen3,GLEW,OpenGL}.cmake || die + sed -e '/install(FILES AUTHORS/d' \ + -i CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DCGAL_INSTALL_LIB_DIR="$(get_libdir)" + -DCGAL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake" + -DWITH_LEDA=OFF + -DWITH_Eigen3=ON + -DWITH_ZLIB=ON + -DWITH_GMP="$(usex gmp)" + -DWITH_GMPXX="$(usex gmp)" + -DWITH_CGAL_Qt5="$(usex qt5)" + -DWITH_MPFI="$(usex mpfi)" + -DWITH_NTL="$(usex ntl)" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + if use examples; then + dodoc -r examples demo + docompress -x /usr/share/doc/${PF}/{examples,demo} + fi + if use doc; then + docinto html/ + dodoc -r "${WORKDIR}"/doc_html/* + docompress -x /usr/share/doc/${PF}/html + fi +} diff --git a/sci-mathematics/cgal/files/cgal-4.11.1-fix-buildsystem.patch b/sci-mathematics/cgal/files/cgal-4.11.1-fix-buildsystem.patch new file mode 100644 index 000000000000..e6c9cd984d67 --- /dev/null +++ b/sci-mathematics/cgal/files/cgal-4.11.1-fix-buildsystem.patch @@ -0,0 +1,15 @@ +diff -urEbwB CGAL-4.11.1/cmake/modules/CGAL_SetupFlags.cmake CGAL-4.11.1.new/cmake/modules/CGAL_SetupFlags.cmake +--- CGAL-4.11.1/cmake/modules/CGAL_SetupFlags.cmake 2018-02-24 21:00:36.000000000 +0100 ++++ CGAL-4.11.1.new/cmake/modules/CGAL_SetupFlags.cmake 2018-03-05 12:13:47.233411449 +0100 +@@ -61,11 +61,6 @@ + add_definitions(-DCGAL_TEST_SUITE) + endif() + +-if ( NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" +- AND NOT "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo" AND NOT "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel" ) +- message( FATAL_ERROR "${CMAKE_BUILD_TYPE} is not a valid build type: only Release, Debug, RelWithDebInfo or MinSizeRel is allowed" ) +-endif() +- + message( STATUS "Build type: ${CMAKE_BUILD_TYPE}" ) + + string( TOUPPER "${CMAKE_BUILD_TYPE}" CGAL_BUILD_TYPE_UPPER ) |