summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2017-04-06 21:48:33 -0500
committerMatthias Maier <tamiko@gentoo.org>2017-04-06 22:04:30 -0500
commite4354e92bb74adf885fe97476f6989439780bcf4 (patch)
treeecafe2d88eece295053cda816d8073ac8c2e8ed4 /sci-mathematics/cgal
parentdev-python/python-ldap: Version bump to 2.4.32 (diff)
downloadgentoo-e4354e92bb74adf885fe97476f6989439780bcf4.tar.gz
gentoo-e4354e92bb74adf885fe97476f6989439780bcf4.tar.bz2
gentoo-e4354e92bb74adf885fe97476f6989439780bcf4.zip
sci-mathematics/cgal: version bump to 4.9
Fix cmake file location Package-Manager: Portage-2.3.3, Repoman-2.3.2
Diffstat (limited to 'sci-mathematics/cgal')
-rw-r--r--sci-mathematics/cgal/Manifest2
-rw-r--r--sci-mathematics/cgal/cgal-4.9.ebuild86
2 files changed, 88 insertions, 0 deletions
diff --git a/sci-mathematics/cgal/Manifest b/sci-mathematics/cgal/Manifest
index 0c052315f281..87f2d9d0d740 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.8-doc_html-1.tar.xz 25996928 SHA256 27e63a868d6103fbedf43d4adf518de94dd8209d65e352aa60b8773a0e3ee1a2 SHA512 f2363b3a21065b079ee192235cfeac66e87466a5f9646b33cf880f12ea646f87caf957dafd1d22199d5414f0ee378e540db42617641b4627106490ed33f21a80 WHIRLPOOL 34e830e0aad057108d9cb16cc12db0a1477351e866ae50b9af5d268b74bc15037c306f869c3f76406c8d8fa88192e3c5471517806589691b8b6502d8a306326f
DIST cgal-4.8.tar.xz 13509916 SHA256 2483ccf34ae41e830a3e33f2f471aadecf43316fb56bf632e403765ad035ce25 SHA512 9640ba855b968f812876a694502c678737046d1c5ed30c766ceba7ae91ca2731d07b31841aa62c6817b0bacbd36f3bf492f71e0a709ef56cab7ad66ffbfee8d5 WHIRLPOOL 7747ef95005c2f93cef7442becc5a1e6209ad04b9d45ff187b919ea7f3cadf8087634865e177aa2129bb6d8ff054859197d76234b7f55a636eee6fe1dc7dbfce
+DIST cgal-4.9-doc_html-1.tar.xz 26612436 SHA256 f02d18177eac67b602f44a6aa26e8c6ccce1cf32d2b1928dc2456488fa7b06a3 SHA512 df9855ff2b152a32dfb584c68b861e2cd480c073cd8cfddc494295455aff8d96e00ba6424b7a7f460e2f9e8db0fcefe858a656f4834821dd5466f61eb3d555b2 WHIRLPOOL 6b8ae1a88bf546eb54b8b6777f3e9a67688ae51003018ded145e168353020ba6b250a3702c4065e6bcb64bd291b492dffc5a68d4f7cc75670b20cee1aa2b3347
+DIST cgal-4.9.tar.xz 13749292 SHA256 63ac5df71f912f34f2f0f2e54a303578df51f4ec2627db593a65407d791f9039 SHA512 6f55e061917869dea1083e6fccac132a5232c2de4c01d0ed052bbb31789a23cc66334f12a884ed1e8a1b84af0e2a7186000964dd12e4b41914ee7fd5e36baca8 WHIRLPOOL a0554c118b02f23f07c6625f26fe37b0c2fddf0464f06b6c2be27be16bb0e796a8167a5380406a8e15d0f10f2f0f2dd1c1a51dcf6b3339a7234c189b8203e2ce
diff --git a/sci-mathematics/cgal/cgal-4.9.ebuild b/sci-mathematics/cgal/cgal-4.9.ebuild
new file mode 100644
index 000000000000..af8b1b36ce44
--- /dev/null
+++ b/sci-mathematics/cgal/cgal-4.9.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 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="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}/${PN}-4.7-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
+
+ # use C++11 threads instead of boost::thread
+ append-cxxflags -std=c++11
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCGAL_INSTALL_LIB_DIR="$(get_libdir)"
+ -DCGAL_INSTALL_CMAKE_DIR="lib/cmake"
+ -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
+}