From 489ad76afc0f1bc04ad6a8d6b8be2588df73f260 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Fri, 17 May 2013 14:08:41 +0200 Subject: [PATCH] Add cgal-4.2 --- sci-mathematics/cgal/Manifest | 15 +++--- sci-mathematics/cgal/cgal-4.2.ebuild | 70 ++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 6 deletions(-) create mode 100644 sci-mathematics/cgal/cgal-4.2.ebuild diff --git a/sci-mathematics/cgal/Manifest b/sci-mathematics/cgal/Manifest index a1dd577..72dcd28 100644 --- a/sci-mathematics/cgal/Manifest +++ b/sci-mathematics/cgal/Manifest @@ -1,6 +1,9 @@ -DIST CGAL-3.8-doc_html.tar.xz 17238908 RMD160 f978fc8c4deb7c1d2fe95e4dbe401f59735e6fbd SHA1 2f45c864864af8f7054ae8d4adb9651d27a09eab SHA256 2ba764fee4d907f8553454378db103ede87b99bfa6ab45a8c080d66513ba32d7 -DIST CGAL-3.8.tar.xz 9754596 RMD160 41b00fdbdd1d9378a13d05f91e88c5afdc721031 SHA1 5cd165d3a99a5741606e9138a3363e5a16f049f4 SHA256 a631283ccd35092ff6a1999d7e6f02aff26efd82384e1c192b41b7eb9e44bfe4 -DIST CGAL-4.0-doc_html.tar.xz 18465688 RMD160 1c8fbf803e6d9b6bc858c8e4e08d5beabc9a1ba7 SHA1 66bbf2626c8b9a5a48cea68b389f2205dce39406 SHA256 247501ba4fdcaf459ceb3066f79a9cba8cae27d7b5ddd622b3409f20a8e9a244 -DIST CGAL-4.0.tar.xz 9875796 RMD160 655b425335da05537f208b8d4e3a00bcad0f6dd2 SHA1 d1f3f328bc5cb026ddb825cb585c7ae27a8856f7 SHA256 a64f0d4b387b9db4cb76410776b93b4c6c86d1b0c5d049ed00386951ca72a5f3 -EBUILD cgal-3.8.ebuild 1815 RMD160 bd3a6b46f1593f50692d31e320100d10a680da15 SHA1 f61feb1dbe9ecfc8b5dd1afe62ac99186b3dc532 SHA256 b9c076439a9be5430f6b427792e16d9b1e241a8d27a3db7fdd95223fe4d7aaa8 -EBUILD cgal-4.0.ebuild 1834 RMD160 15cbabb1579249841fff70f698cbc3a59f4a7047 SHA1 07c7c01793f9a209dffbe840ba9380acba2230b6 SHA256 86321678831a72217c61552ea7975567715a5c0acaef4b0cd6fca9ea7f95ad61 +DIST CGAL-3.8-doc_html.tar.xz 17238908 SHA256 2ba764fee4d907f8553454378db103ede87b99bfa6ab45a8c080d66513ba32d7 +DIST CGAL-3.8.tar.xz 9754596 SHA256 a631283ccd35092ff6a1999d7e6f02aff26efd82384e1c192b41b7eb9e44bfe4 +DIST CGAL-4.0-doc_html.tar.xz 18465688 SHA256 247501ba4fdcaf459ceb3066f79a9cba8cae27d7b5ddd622b3409f20a8e9a244 +DIST CGAL-4.0.tar.xz 9875796 SHA256 a64f0d4b387b9db4cb76410776b93b4c6c86d1b0c5d049ed00386951ca72a5f3 +DIST CGAL-4.2-doc_html.tar.xz 18853688 SHA256 ff28549be2d7e3331d68485bb348c29ece0b5d27526a64010d8f869895816525 SHA512 3150c9402f96503f03059b0d35abc550c4142e35a62641b00b2dd76e836b4c86a7404a003838647bc5be92e27bc52a37b1ce937d96d77eb7e0a2d6d5ed07cd60 WHIRLPOOL 0cbaa6bebccd2afbdfc76c6bf8a0867cea7df46807a5fad4dc104c4dc36542de2fa0be6cd1e53c35a64e5cc6f6e913358266b959421932eab6c48c727afbe6c8 +DIST CGAL-4.2.tar.xz 10005840 SHA256 6b78d7af2e328d380963bfd8294612449252bf50e69d8a96780feed40d3db916 SHA512 fa83f3e05830dfc83a7fd5f9c660201f245507e88b8343c14ccf366e1ff2c74b71c522cc20669196a8f2c286fa8d597f02e34ab2c6c210b13daaf8e7dfcc7a0e WHIRLPOOL 28351d9335abb5ba8db9f250c9c57851de2b8f43dbc210c0e563b228e26b34017dd92b1a880ee63fc8c33d4037520eba4410b70d1f6884a4a09260d18f55f687 +EBUILD cgal-3.8.ebuild 1815 SHA256 b9c076439a9be5430f6b427792e16d9b1e241a8d27a3db7fdd95223fe4d7aaa8 SHA512 bc634f0b631023c2eba74fccfdb55ce21ebd88431931fe1da05649ec3ff8e811453456a4f90edfc7454552dc1652099357068f56e48f0340f9d6b430ae148910 WHIRLPOOL e5aee9edefbd67a72090b5bbc71041856a87d34aeae7a5fcc8139e8998c288f4ef0b9366a51e2cbf2952ceb8ae27e7b591abe0f6b3fc38f17dccaa50750ff138 +EBUILD cgal-4.0.ebuild 1834 SHA256 86321678831a72217c61552ea7975567715a5c0acaef4b0cd6fca9ea7f95ad61 SHA512 180fedb24b94eef14daa07c209289282789ec610bdc6d2ce5804dd17f2cb28df2a97f6934d5bbaf34183e6a4e876a4440ea3a6f60ce27051b894b4ea064691f5 WHIRLPOOL 45a169cde907aa9380d9e73c68438134239c4fb4aa6ed8e2654ca4f5ecba80ac6375f6da3b228f52a4cf59ef6904e5cf7dc67da8da87e460c9cc566f342fb30b +EBUILD cgal-4.2.ebuild 1474 SHA256 d9579d81e2bfd7e324ea455934420dfd3f6c19634a48fbd8eb7c49ed15beccfe SHA512 594cc6e4f33f0b3e17095d4c8cba0309fb23eb70142f96fe6ad412c920b50b95a22d3f480d16a81e5e27293c0a6163adf0fa39d57436f230f286f6d5578ed976 WHIRLPOOL c8ebce47bc16e054c67f3b4152c5f20f3d2a0e6d8427bec4bd1dad7200554f9cdc9692eed4573e5934f3775a1db8d6920c73b38ca0964f3dbef219658afebcfd diff --git a/sci-mathematics/cgal/cgal-4.2.ebuild b/sci-mathematics/cgal/cgal-4.2.ebuild new file mode 100644 index 0000000..021dc53 --- /dev/null +++ b/sci-mathematics/cgal/cgal-4.2.ebuild @@ -0,0 +1,70 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +CMAKE_BUILD_TYPE=Release + +inherit base multilib cmake-utils + +MY_P=CGAL-${PV} +PID=32361 +DPID=32365 + +DESCRIPTION="C++ library for geometric algorithms and data structures" +HOMEPAGE="http://www.cgal.org/ https://gforge.inria.fr/projects/cgal/" +SRC_URI=" + http://gforge.inria.fr/frs/download.php/${PID}/${MY_P}.tar.xz + doc? ( http://gforge.inria.fr/frs/download.php/${DPID}/${MY_P}-doc_html.tar.xz )" + +LICENSE="LGPL-3 GPL-3 Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples +gmp mpfi qt4" + +RDEPEND=" + dev-libs/boost + dev-libs/mpfr + sys-libs/zlib + x11-libs/libX11 + virtual/glu + virtual/opengl + gmp? ( dev-libs/gmp[cxx] ) + qt4? ( + dev-qt/qtgui:4 + dev-qt/qtopengl:4 ) + mpfi? ( sci-libs/mpfi )" +DEPEND="${RDEPEND} + app-arch/xz-utils" + +S="${WORKDIR}/${MY_P}" + +DOCS="AUTHORS CHANGES* README" + +src_prepare() { + base_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 + $(cmake-utils_use_with gmp) + $(cmake-utils_use_with gmp GMPXX) + $(cmake-utils_use_with qt4 CGAL_Qt4) + $(cmake-utils_use_with mpfi) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + use doc && dohtml -r "${WORKDIR}"/doc_html/cgal_manual/* + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples demo + fi +} -- 2.39.5