diff options
author | Aisha Tammy <floss@bsd.ac> | 2021-06-16 19:16:27 +0000 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-07-07 20:48:29 +0300 |
commit | e3ea35384fe2ff2eb651a3c17cb9aacf4600c264 (patch) | |
tree | 025b7d0d5f91d8e60c42a015eeb8eb2c7f03a087 /sci-mathematics/cgal | |
parent | dev-ruby/ed25519: add ruby30; EAPI 7; fix extension (diff) | |
download | gentoo-e3ea35384fe2ff2eb651a3c17cb9aacf4600c264.tar.gz gentoo-e3ea35384fe2ff2eb651a3c17cb9aacf4600c264.tar.bz2 gentoo-e3ea35384fe2ff2eb651a3c17cb9aacf4600c264.zip |
sci-mathematics/cgal: version bump to 5.2.2
also add shared USE flag
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Closes: https://github.com/gentoo/gentoo/pull/21275
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sci-mathematics/cgal')
-rw-r--r-- | sci-mathematics/cgal/Manifest | 2 | ||||
-rw-r--r-- | sci-mathematics/cgal/cgal-5.2.1-r2.ebuild | 4 | ||||
-rw-r--r-- | sci-mathematics/cgal/cgal-5.2.2.ebuild | 77 | ||||
-rw-r--r-- | sci-mathematics/cgal/metadata.xml | 1 |
4 files changed, 82 insertions, 2 deletions
diff --git a/sci-mathematics/cgal/Manifest b/sci-mathematics/cgal/Manifest index 0f408129e17c..1858d561e21a 100644 --- a/sci-mathematics/cgal/Manifest +++ b/sci-mathematics/cgal/Manifest @@ -3,4 +3,6 @@ DIST CGAL-5.1.tar.xz 22850692 BLAKE2B 42320e07e222c3f69febe7dc478c74ef6cde0de723 DIST CGAL-5.2-doc_html.tar.xz 51123300 BLAKE2B 748b94d199343402baf6aef298b352fc23b9b01995adbe2d5157d8a4d3d772f4e029f0f0ac5282cdb387e5e7b9191082154840e32cd503c97f56295a59419cf4 SHA512 4ffaa9b36c20e62a62bd77fb79d9d9d54cf2b20a1542aa1bef9f6d27f6d7c1412a5f843968ae400d42e8d4bc8ae1d7a16c197503d0fd43fc72592d73213c5c72 DIST CGAL-5.2.1-doc_html.tar.xz 47740788 BLAKE2B 5b18210fdff768c3cc3fed5bcbe8f41c7fd89592120ba9dc540ae2d1e3952676f9bb86150dac2f3e185ba0f9e92fe3fc3a240ca42d3f20a76a76810b7d45a03c SHA512 d013c4aacd031040e55aebe6de15c7ad232ccf70ff5fedfeda12435a2929b57d81183d8cac9ad2130cd3e164901a26b73748d44139ea4eb77f3a1df7d583c05d DIST CGAL-5.2.1.tar.xz 23256952 BLAKE2B a6a720011dde4df80a6ec74e2ee4658cf3239aefcceafdfa764d42478b1c2a7b24da135dc22a74db9ea41c624bed6768c71a19d1f7f03aa541a17a6236184309 SHA512 b1eb40a6b3231bc707fdbc43325dd88655cb6faad5d001caf891f7f5f3890b316c439b762540afcf702f87442b2b96e4e30ae7c06a1bada8cca9ee76f1f83bd5 +DIST CGAL-5.2.2-doc_html.tar.xz 47748668 BLAKE2B 063c46cd3277411ccda7121cb181b9e9534e5f463404df5d4c9848e31ef0c1ae1739885b4eb6ecfcf63088ad57cd3601a2765a18c64204eaf808759be9bdc791 SHA512 2f763698fdf99156636e02c95fd677360daca5c0b51e6a2f92b7a226583760e9eb19ba8adb0451709407bb4582edaee4a2b529f60bd2c467324e9ce222f78647 +DIST CGAL-5.2.2.tar.xz 23260652 BLAKE2B b615d74e8fb9f93dece8d7e88051d6f7f010b8d93de92c540d7c7f4f10a9b99d3ab42ccffebf3ee4b92dcdef443b1a75008d7261ab1e8caa7514fe373a44f053 SHA512 e51a0c82dc39f3c1c5245570f6f5d443ee9056e8aa58d0aeccbe6419323be52528477c9b339a8a071336da432eeca2bbf5322c06a7d0e27ef31c7aeded68c7ec DIST CGAL-5.2.tar.xz 23250240 BLAKE2B eb80a81dd01b2b2e30fe72f45cceee0861b36f47e395d1c905f8551e23d57c36dd9a7c66e32f6c2a0a2cfbd4c780fd5d5ae098709bfc1072e7ac7f761d328fd3 SHA512 8dddec18bd7e375ea3b18c636ddb2ca4f3a318e177305058f702206b830e2605837024e4b1265789f1bdc46dda80133d6fa8d61a036cda3c93a227f4c244cc1a diff --git a/sci-mathematics/cgal/cgal-5.2.1-r2.ebuild b/sci-mathematics/cgal/cgal-5.2.1-r2.ebuild index c8b6a7545f8d..81dbb6147e6e 100644 --- a/sci-mathematics/cgal/cgal-5.2.1-r2.ebuild +++ b/sci-mathematics/cgal/cgal-5.2.1-r2.ebuild @@ -16,7 +16,7 @@ S="${WORKDIR}/${MY_P}" LICENSE="LGPL-3 GPL-3 Boost-1.0" SLOT="0/14" KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc examples +gmp mpfi ntl qt5" +IUSE="doc examples +gmp mpfi ntl qt5 shared" RDEPEND=" dev-cpp/eigen @@ -55,7 +55,7 @@ src_configure() { local mycmakeargs=( -DCGAL_INSTALL_LIB_DIR="$(get_libdir)" -DCGAL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/CGAL" - -DCGAL_HEADER_ONLY=ON + -DCGAL_HEADER_ONLY=$(usex shared OFF ON) -DWITH_LEDA=OFF -DWITH_Eigen3=ON -DWITH_ZLIB=ON diff --git a/sci-mathematics/cgal/cgal-5.2.2.ebuild b/sci-mathematics/cgal/cgal-5.2.2.ebuild new file mode 100644 index 000000000000..10c47f98259c --- /dev/null +++ b/sci-mathematics/cgal/cgal-5.2.2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +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/v${PV}/${MY_P}.tar.xz + doc? ( https://github.com/CGAL/cgal/releases/download/v${PV}/${MY_P}-doc_html.tar.xz )" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-3 GPL-3 Boost-1.0" +SLOT="0/14" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples +gmp mpfi ntl qt5 shared" + +RDEPEND=" + dev-cpp/eigen + dev-libs/boost:=[threads] + dev-libs/mpfr:= + sys-libs/zlib + x11-libs/libX11:= + virtual/glu:= + virtual/opengl:= + gmp? ( dev-libs/gmp:=[cxx] ) + mpfi? ( sci-libs/mpfi ) + ntl? ( dev-libs/ntl ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/xz-utils + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${PN}-4.11.1-fix-buildsystem.patch ) + +src_prepare() { + cmake_src_prepare + # modules provided by dev-cpp/eigen + rm cmake/modules/FindEigen3.cmake || die +} + +src_configure() { + local mycmakeargs=( + -DCGAL_INSTALL_LIB_DIR="$(get_libdir)" + -DCGAL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/CGAL" + -DCGAL_HEADER_ONLY=$(usex shared OFF ON) + -DWITH_LEDA=OFF + -DWITH_Eigen3=ON + -DWITH_ZLIB=ON + -DWITH_GMP=$(usex gmp) + -DWITH_GMPXX=$(usex gmp) + -DWITH_MPFI=$(usex mpfi) + -DWITH_NTL=$(usex ntl) + -DWITH_CGAL_Qt5=$(usex qt5) + ) + cmake_src_configure +} + +src_install() { + use doc && local HTML_DOCS=( "${WORKDIR}"/doc_html/. ) + cmake_src_install + if use examples; then + dodoc -r examples demo + fi +} diff --git a/sci-mathematics/cgal/metadata.xml b/sci-mathematics/cgal/metadata.xml index 05dff372fd2b..7d79128a518d 100644 --- a/sci-mathematics/cgal/metadata.xml +++ b/sci-mathematics/cgal/metadata.xml @@ -29,6 +29,7 @@ <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> + <flag name="shared">Build shared library</flag> </use> <upstream> <remote-id type="github">CGAL/cgal</remote-id> |