From 612ba38d06bdf23c20d3b383da65c7cbab5010e2 Mon Sep 17 00:00:00 2001 From: blue-devil Date: Sun, 31 May 2020 01:50:07 +0300 Subject: [PATCH] qhull:first pisi rel --- science/misc/qhull/actions.py | 21 ++++++ .../misc/qhull/files/qhull-no-static.patch | 42 ++++++++++++ science/misc/qhull/files/qhull-pic.patch | 25 ++++++++ science/misc/qhull/pspec.xml | 64 +++++++++++++++++++ science/misc/qhull/translations.xml | 14 ++++ 5 files changed, 166 insertions(+) create mode 100644 science/misc/qhull/actions.py create mode 100644 science/misc/qhull/files/qhull-no-static.patch create mode 100644 science/misc/qhull/files/qhull-pic.patch create mode 100644 science/misc/qhull/pspec.xml create mode 100644 science/misc/qhull/translations.xml diff --git a/science/misc/qhull/actions.py b/science/misc/qhull/actions.py new file mode 100644 index 0000000000..3835a53f8d --- /dev/null +++ b/science/misc/qhull/actions.py @@ -0,0 +1,21 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import pisitools +from pisi.actionsapi import cmaketools + +def setup(): + cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_SKIP_RPATH=ON") + +def build(): + cmaketools.make() + +def install(): + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("README*", "COPYING*") \ No newline at end of file diff --git a/science/misc/qhull/files/qhull-no-static.patch b/science/misc/qhull/files/qhull-no-static.patch new file mode 100644 index 0000000000..99dcb18814 --- /dev/null +++ b/science/misc/qhull/files/qhull-no-static.patch @@ -0,0 +1,42 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 09aa249..f1f4b50 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -353,7 +353,7 @@ endif() + + set( + qhull_TARGETS_INSTALL +- ${qhull_CPP} ${qhull_STATIC} ${qhull_STATICR} ${qhull_SHAREDR} ++ ${qhull_CPP} ${qhull_SHAREDR} + qhull rbox qconvex qdelaunay qvoronoi qhalf + ${qhull_SHARED} ${qhull_SHAREDP} # Deprecated, use qhull_r instead + ) +@@ -485,22 +485,22 @@ set(qvoronoi_SOURCES src/qvoronoi/qvoronoi.c) + set(qhalf_SOURCES src/qhalf/qhalf.c) + + add_executable(qhull ${qhull_SOURCES}) +-target_link_libraries(qhull ${qhull_STATICR}) ++target_link_libraries(qhull ${qhull_SHAREDR}) + + add_executable(rbox ${rbox_SOURCES}) +-target_link_libraries(rbox ${qhull_STATIC}) ++target_link_libraries(rbox ${qhull_SHARED}) + + add_executable(qconvex ${qconvex_SOURCES}) +-target_link_libraries(qconvex ${qhull_STATIC}) ++target_link_libraries(qconvex ${qhull_SHARED}) + + add_executable(qdelaunay ${qdelaunay_SOURCES}) +-target_link_libraries(qdelaunay ${qhull_STATIC}) ++target_link_libraries(qdelaunay ${qhull_SHARED}) + + add_executable(qvoronoi ${qvoronoi_SOURCES}) +-target_link_libraries(qvoronoi ${qhull_STATIC}) ++target_link_libraries(qvoronoi ${qhull_SHARED}) + + add_executable(qhalf ${qhalf_SOURCES}) +-target_link_libraries(qhalf ${qhull_STATIC}) ++target_link_libraries(qhalf ${qhull_SHARED}) + + # --------------------------------------- + # Define options for linking to qhull_SHAREDR or qhull_SHARED diff --git a/science/misc/qhull/files/qhull-pic.patch b/science/misc/qhull/files/qhull-pic.patch new file mode 100644 index 0000000000..5df8fefe1f --- /dev/null +++ b/science/misc/qhull/files/qhull-pic.patch @@ -0,0 +1,25 @@ +From a5d0e644ee886251cec5d05948502517e154a9e1 Mon Sep 17 00:00:00 2001 +From: "Joshua A. Anderson" +Date: Fri, 20 Sep 2019 09:36:51 -0400 +Subject: [PATCH] Build libqhullcpp with position independent code + +This allows libqhullcpp.a to be linked into shared libraries (i.e. +python modules). +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9d44056..f4b6b37 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -466,7 +466,8 @@ endif(UNIX) + + add_library(${qhull_CPP} STATIC ${libqhullcpp_SOURCES}) + set_target_properties(${qhull_CPP} PROPERTIES +- VERSION ${qhull_VERSION}) ++ VERSION ${qhull_VERSION} ++ POSITION_INDEPENDENT_CODE "TRUE") + + # --------------------------------------- + # Define qhull executables linked to qhullstatic library diff --git a/science/misc/qhull/pspec.xml b/science/misc/qhull/pspec.xml new file mode 100644 index 0000000000..d6a6b18ebe --- /dev/null +++ b/science/misc/qhull/pspec.xml @@ -0,0 +1,64 @@ + + + + + qhull + http://www.qhull.org/ + + Blue Devil + bluedevil@sctzine.com + + science.misc + custom + app:console + library + A general dimension code for computing convex hulls and related structures. + Qhull computes the convex hull, Delaunay triangulation, Voronoi diagram, halfspace intersection about a point, furthest-site Delaunay triangulation, and furthest-site Voronoi diagram. + https://github.com/qhull/qhull/archive/2019.1.tar.gz + + cmake + + + + qhull-pic.patch + + qhull-no-static.patch + + + + + qhull + A general dimension code for computing convex hulls and related structures. + + libgcc + + + /usr/lib + /usr/share/man + /usr/bin + /usr/share/doc/qhull + + + + + qhull-devel + Development files for qhull + + qhull + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2020-05-27 + 2019.1 + First pisi release. + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/science/misc/qhull/translations.xml b/science/misc/qhull/translations.xml new file mode 100644 index 0000000000..0b5d4ae7be --- /dev/null +++ b/science/misc/qhull/translations.xml @@ -0,0 +1,14 @@ + + + + qhull + Dışbukey gövdeler ve ilgili yapılar için genel boyutlu algoritmalar. + qhull, dışbukey gövdeler ve ilgili yapılar için genel boyutlu algoritmalar sunar. + + + + qhull-devel + qhull için geliştirme dosyaları + qhull-devel, qhull için geliştirme dosyalarını içerir. + + \ No newline at end of file