summaryrefslogtreecommitdiff
path: root/sci-mathematics/cgal
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/cgal
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/cgal')
-rw-r--r--sci-mathematics/cgal/Manifest10
-rw-r--r--sci-mathematics/cgal/cgal-4.10.ebuild88
-rw-r--r--sci-mathematics/cgal/cgal-4.9.ebuild86
-rw-r--r--sci-mathematics/cgal/files/cgal-4.7-fix-buildsystem.patch19
-rw-r--r--sci-mathematics/cgal/metadata.xml28
5 files changed, 231 insertions, 0 deletions
diff --git a/sci-mathematics/cgal/Manifest b/sci-mathematics/cgal/Manifest
new file mode 100644
index 000000000000..86d579203fc6
--- /dev/null
+++ b/sci-mathematics/cgal/Manifest
@@ -0,0 +1,10 @@
+AUX cgal-4.7-fix-buildsystem.patch 761 SHA256 b005e46e49c7c4b7938c36d0a1fc170e4e04c7bc693e00c3cc05a8297effefe1 SHA512 97d380e915561a8407f6daf681457d5cce1f5ae2f8e1af25b1bea21876d661941144d53c6d96f90c65b9377aece98d2c0b14450917f4b768644de51020fe2338 WHIRLPOOL b8730651bb986f84f6547648cdf794c9b1a372d0b4d1865ec42a59a3c9eddeb2d8fb89609e000cd574fc0eca94804cb47b3bf5c6f6646137aeef3367cef566e0
+DIST CGAL-4.10-doc_html.tar.xz 27147028 SHA256 a65471afa68e34f2fdd607c60625db941de34d5d8c5759b3f3cb3aae3c563a6a SHA512 1c1c90c3ce07c5e4bf5a125cd5dccd0595f5c5d8fcf0f16df8a5506c6fe611c30440e034621c3477ae55670f96abbe389bfc2f3e0c88e099133b03cce6f2923d WHIRLPOOL 82bd1988915c1fc89d98ac11270e00a573b2885df3404deb2166fcdaf7d4d0a663bbdc5e56acfe00fbb401314b0f6a097847ea703c188522a6112f2d4c4f3eb0
+DIST CGAL-4.10.tar.xz 14249804 SHA256 eb56e17dcdecddf6a6fb808931b2142f20aaa182916ddbd912273c51e0f0c045 SHA512 2029ad647e73692bb38b2ed9606aae61ec1d74df886bb6fd0f4e3388fb08a51de87a1e290df0dcc621a8abc2654915e2d331ec9f6d27ddd9a21f187a165fa09d WHIRLPOOL df96d9d9820214d7ddacd86eda1edeecf92ab0022203a26ca21ba61f65ba1872e62004761f97aee01dcc1f9dfcf32659ec025c43d44e434d578c68b012c495d9
+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
+EBUILD cgal-4.10.ebuild 1996 SHA256 3eecc7cce351b176b0b641ffc155ba2cabf558d3320f1d6bb0627449863d68cf SHA512 af69e87c18b6d000f224402e609c729051b1d05d864d759c0e7e5a2550c9ff2f5cd15e899bbd475879a86fb10bef41a33f149dd50615337a9ff9fcd73937bed5 WHIRLPOOL 07698dfac4d0409cd43f1b39870bb2c4e6a9cfe5e947122b3e1679f103965dfd7f9e9392aada349a73c545be7c417ee5f22fc4df456cb79f443e37e1d3ee1ab7
+EBUILD cgal-4.9.ebuild 1920 SHA256 ed685e790ac30508c135be51274ef701fb280d3739169d1fa5674572b3e1b688 SHA512 19e6e2a617a8c9c4fbd5ab4f832c14f5c5ca6ce600f34e3aa6dc8f73aa98c0b3e0b64667a5f29d552c974f164e71c500ee1c3f14c781e659a5fdfae6615c6f03 WHIRLPOOL 51e5c11a18eaa6cdccaf93673fabfa4fe2f287f930e20a232aee480eaba05027b8709b3ae0c5a72cd1178cc68cd8cada31b2f933466dc6d6a9f1fb7f32ae262e
+MISC ChangeLog 4619 SHA256 4210645cae15e999d10ea583dd3ec7f1a3c58b1dcc7a66131b6bb2752afb1fdd SHA512 4d478e3a88a250fa0054cda8856a8959195a519a496cac90315d954a42c52ff75d57f35165cc32063d96987529da81d686b635cc35740cdfd634eacd9f2252cb WHIRLPOOL f9667d860815b7a33de7b16713ec5ed936b040df68864fa3961004baeafa471040cd0d046803334a2bf5e998817923d373b1be1caf4bf2e95f30332d1bfe0f9c
+MISC ChangeLog-2015 4429 SHA256 57f6baa8960302195581c7c836cf8f596351da1e4c5e1c41618d146d5a4a4b0a SHA512 15d9fb8a5795b6d8a434b9d2ececd587c10b25dfbe4fdf9ce6096150e6a756d5aedc50eafbcee190c96e518fe87604b1e4668feebe48f0d742628dc705ab83b7 WHIRLPOOL 5d7e8660a1d78b3fc88334d2e4f5da11f48be2d965eeec1c06ccf78653ccdff60b36ed8f2fdad12708522c3f18e419505657dad6af75f8342cfeb60249a1b029
+MISC metadata.xml 1320 SHA256 ec19cae222012105154341d89afe512b61b6aa93d280aed2f8714fb967ac4f0c SHA512 ee385a11e84af08f5c8146da067d27beceea4f15b2ede403ed799dc7766a4f749904356f22175eceb121555d6a40f3994381f6a1f8d2a90178962b65cf2a40d0 WHIRLPOOL c08c5ca8f8a276c0caed2935dc5fa3bf1e35b51387e46401c20f16b5fc94b91ce0a69be1e1e8f52024bbf2ce0227c121f055f3eb1949748f536e3a2aafe75ff5
diff --git a/sci-mathematics/cgal/cgal-4.10.ebuild b/sci-mathematics/cgal/cgal-4.10.ebuild
new file mode 100644
index 000000000000..7d4bbdec8af9
--- /dev/null
+++ b/sci-mathematics/cgal/cgal-4.10.ebuild
@@ -0,0 +1,88 @@
+# 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
+ 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:=
+ 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="$(get_libdir)/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
+ 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/cgal-4.9.ebuild b/sci-mathematics/cgal/cgal-4.9.ebuild
new file mode 100644
index 000000000000..b8c9051efdad
--- /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
+}
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
new file mode 100644
index 000000000000..ec85a1dbc69a
--- /dev/null
+++ b/sci-mathematics/cgal/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Computational Geometry Algorithms Library is a collaborative
+ open source library containing:
+ * the Kernel with geometric primitives such as points, vectors,
+ lines, predicates for testing things such as relative positions of
+ points, and operations such as intersections and distance calculation.
+ * the Basic Library which is a collection of standard data
+ structures and geometric algorithms, such as convex hull in 2D/3D,
+ (Delaunay) triangulation in 2D/3D, planar map, polyhedron, smallest
+ enclosing circle, and multidimensional query structures.
+ * the Support Library which offers interfaces to other packages,
+ e.g., for visualisation, and I/O, and other support facilities.
+ </longdescription>
+ <use>
+ <flag name="mpfi">Enable support for multiple recision interval arithmetic via <pkg>sci-libs/mpfi</pkg></flag>
+ <flag name="ntl">Enable support for <pkg>dev-libs/ntl</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">CGAL/cgal</remote-id>
+ </upstream>
+</pkgmetadata>