diff options
author | David Seifert <soap@gentoo.org> | 2016-03-05 18:27:50 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-03-05 18:29:56 +0100 |
commit | 78a6d83e795f38dfb39883cb954650723e1a7c39 (patch) | |
tree | a28da39d6984790f8c1be795b499de2c40f5064f /sci-mathematics/cgal | |
parent | dev-libs/ntl: version bump to 9.6.4 (diff) | |
download | gentoo-78a6d83e795f38dfb39883cb954650723e1a7c39.tar.gz gentoo-78a6d83e795f38dfb39883cb954650723e1a7c39.tar.bz2 gentoo-78a6d83e795f38dfb39883cb954650723e1a7c39.zip |
sci-mathematics/cgal: Version bump to 4.7
* EAPI=6
* Depend on dev-cpp/eigen
* Subslot depend on dev-libs/boost (#573274)
* Change deps to QT5
* Add optional dep on dev-libs/ntl
Package-Manager: portage-2.2.27
Diffstat (limited to 'sci-mathematics/cgal')
-rw-r--r-- | sci-mathematics/cgal/Manifest | 2 | ||||
-rw-r--r-- | sci-mathematics/cgal/cgal-4.7.ebuild | 81 | ||||
-rw-r--r-- | sci-mathematics/cgal/files/cgal-4.7-fix-buildsystem.patch | 19 | ||||
-rw-r--r-- | sci-mathematics/cgal/metadata.xml | 1 |
4 files changed, 103 insertions, 0 deletions
diff --git a/sci-mathematics/cgal/Manifest b/sci-mathematics/cgal/Manifest index 3f5e1b0bc5aa..370bd04a20ad 100644 --- a/sci-mathematics/cgal/Manifest +++ b/sci-mathematics/cgal/Manifest @@ -2,3 +2,5 @@ DIST CGAL-4.3-doc_html.tar.xz 15582924 SHA256 dd28989ee950178b3f22d8b14111510312 DIST CGAL-4.3.tar.xz 10108992 SHA256 cc475885b4ca4b15ab5d446c0e554b7b69f6980969bc3a8c5b83f8da4ee1bb04 SHA512 dcf329232f6511be6b7eecef7afbfd505529385cb29a3717b762068a3dac52b3706b1d55c6e30b677c6cf2f99aae937de7d730d30cc33680fc39df0f0ff76e70 WHIRLPOOL 862d5bc3387afa1b6702974b7fab3b7d4c35334023eb813bb52a6c7092d6f89104db8c7b851fd7ebb7dfdd38392f9d6459e9afab34bf237b0484f7d395035873 DIST CGAL-4.6.1-doc_html-1.tar.xz 22890352 SHA256 d7259defe9980fa0d333d55050902a443f967889c9fd5217ca77b7042ed1bf27 SHA512 13558742b9baa8c58117a7ebd549d6fce931906c145145e917af3218b05eb7f8f889ee19015a36cc5c70e4699ae6288d6151727f627cf3b0717b8d0ef26a099f WHIRLPOOL dc13ccc90694c4c098941d0b5480017aecbdf49247e950bd93ca298a6e150aaf1b60f4e47938fea07013a7418b42ac3703a2523729b6d2b18e93494eea6faaf7 DIST CGAL-4.6.1.tar.xz 12014652 SHA256 33bd82871ccbaf16dc509f78f3f91dd35d44197cad64bffa63a1671a1812351a SHA512 4227ea03c23f3858a47e0559bc0a3df34e447e18e2b053048378c479b9b7fa2a157cf9aa546d7659a1d4d640218944fe1104a21769144cdfdc8a5144299f4b61 WHIRLPOOL 309deea6268d036b14796b411a7dcdbe75433a6d5eb2296387b05f2957e538cce6e6fe0b23be3921a500eae74db954058ed57aeef8759e44f4038d2fbab884f7 +DIST cgal-4.7-doc_html-1.tar.xz 25248068 SHA256 2a15a16229dd90f991ea976761c8ae3c1f9e09f4023bb4446629c3b948a3b9bd SHA512 7542d1937c8cd8cfd174aa67b74b1e242c1dbbd40ca772eb0b7bdc80a947f0851222b10d098193b5c2cab1fe3f32cd40ab2555248bd99b7a29c296df288dabf7 WHIRLPOOL f7657994ffa71e4c5f30b75060cd87fc46686b5d2e1a05012b36a0c0f2a6b2ddcf40b9fb1ae038c69e3f363d12e92acf6455c2ad2838567d3a1cc31dd4722c54 +DIST cgal-4.7.tar.xz 13673360 SHA256 50bd0a1cad7a8957b09012f831eebaf7d670e2a3467e8f365ec0c71fa5436369 SHA512 8126e861fb091a21a0eaf777205d5d688a0d33f005b91c85b2e5fb91afa66796611ec8a314647a322141169483ab8ff0dba769840bf4fb0f4397cf167172b21f WHIRLPOOL 6f1b0c9855161c0841faf1022742fd09157d5605fb5d5046d2b3bde1f1027b3ee6813ac631fb981f026239e0027434102c16d25b1dfda8619c571adc8639a921 diff --git a/sci-mathematics/cgal/cgal-4.7.ebuild b/sci-mathematics/cgal/cgal-4.7.ebuild new file mode 100644 index 000000000000..7fd5cb7ee10d --- /dev/null +++ b/sci-mathematics/cgal/cgal-4.7.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils + +MY_P=CGAL-${PV} + +DESCRIPTION="C++ library for geometric algorithms and data structures" +HOMEPAGE="http://www.cgal.org/" +SRC_URI=" + https://github.com/CGAL/cgal/releases/download/releases%2F${MY_P}/${MY_P}.tar.xz -> ${P}.tar.xz + doc? ( https://github.com/CGAL/cgal/releases/download/releases%2F${MY_P}/${MY_P}-doc_html.tar.xz -> ${P}-doc_html-1.tar.xz )" + +LICENSE="LGPL-3 GPL-3 Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples +gmp mpfi ntl qt5" + +RDEPEND=" + >=dev-cpp/eigen-3.1 + dev-libs/boost:= + 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}/${P}-fix-buildsystem.patch" +) + +src_prepare() { + cmake-utils_src_prepare + sed \ + -e '/install(FILES AUTHORS/d' \ + -i CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DCGAL_INSTALL_LIB_DIR=$(get_libdir) + -DWITH_CGAL_Qt3=OFF + -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 + fi + if use doc; then + docinto html/ + dodoc -r "${WORKDIR}"/doc_html/* + fi +} diff --git a/sci-mathematics/cgal/files/cgal-4.7-fix-buildsystem.patch b/sci-mathematics/cgal/files/cgal-4.7-fix-buildsystem.patch new file mode 100644 index 000000000000..6aabdc395395 --- /dev/null +++ b/sci-mathematics/cgal/files/cgal-4.7-fix-buildsystem.patch @@ -0,0 +1,19 @@ +Remove customized handling of ${CMAKE_BUILD_TYPE} which conflicts with +how Gentoo handles ${CMAKE_BUILD_TYPE}: +* CMake Error at cmake/modules/CGAL_SetupFlags.cmake:65 (message): +* Gentoo is not a valid build type: only Release or Debug is allowed +* Call Stack (most recent call first): +* CMakeLists.txt:519 (include) + +--- CGAL-4.7/cmake/modules/CGAL_SetupFlags.cmake ++++ CGAL-4.7/cmake/modules/CGAL_SetupFlags.cmake +@@ -61,9 +61,6 @@ + add_definitions(-DCGAL_TEST_SUITE) + endif() + +-if ( NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" ) +- message( FATAL_ERROR "${CMAKE_BUILD_TYPE} is not a valid build type: only Release or Debug is allowed" ) +-endif() + + message( STATUS "Build type: ${CMAKE_BUILD_TYPE}" ) + diff --git a/sci-mathematics/cgal/metadata.xml b/sci-mathematics/cgal/metadata.xml index a08e64a3f762..72fe79675d72 100644 --- a/sci-mathematics/cgal/metadata.xml +++ b/sci-mathematics/cgal/metadata.xml @@ -20,5 +20,6 @@ </longdescription> <use> <flag name="mpfi">Enable support for multiple recision interval arithmetic via <pkg>sci-mathematics/mpfi</pkg></flag> + <flag name="ntl">Enable support for <pkg>dev-libs/ntl</pkg></flag> </use> </pkgmetadata> |