[125442] trunk/dports/math

stromnov at macports.org stromnov at macports.org
Wed Sep 17 14:09:18 PDT 2014


Revision: 125442
          https://trac.macports.org/changeset/125442
Author:   stromnov at macports.org
Date:     2014-09-17 14:09:18 -0700 (Wed, 17 Sep 2014)
Log Message:
-----------
shogun-devel: new port

Added Paths:
-----------
    trunk/dports/math/shogun-devel/
    trunk/dports/math/shogun-devel/Portfile
    trunk/dports/math/shogun-devel/files/
    trunk/dports/math/shogun-devel/files/patch-CMakeLists.txt.diff
    trunk/dports/math/shogun-devel/files/patch-cmake_FindSpinlock.cmake.diff
    trunk/dports/math/shogun-devel/files/patch-src_interfaces_python_modular_CMakeLists.txt.diff
    trunk/dports/math/shogun-devel/files/patch-src_shogun_CMakeLists.txt.diff
    trunk/dports/math/shogun-devel/files/patch-src_shogun_evaluation_ContingencyTableEvaluation.cpp.diff

Added: trunk/dports/math/shogun-devel/Portfile
===================================================================
--- trunk/dports/math/shogun-devel/Portfile	                        (rev 0)
+++ trunk/dports/math/shogun-devel/Portfile	2014-09-17 21:09:18 UTC (rev 125442)
@@ -0,0 +1,101 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+
+name                shogun-devel
+version             3.2.0
+set branch          [join [lrange [split ${version} .] 0 1] .]
+revision            0
+categories          math science
+platforms           darwin
+license             GPL-3
+
+conflicts           shogun
+
+maintainers         stromnov openmaintainer
+
+description         The machine learning toolbox's focus is on large scale \
+                    kernel methods
+
+long_description    ${description} and especially on Support Vector Machines \
+                    (SVM). It provides a generic SVM object interfacing to \
+                    several different SVM implementations, among them the \
+                    state of the art OCAS, LibSVM, SVMLight, SVMLin and GPDT.
+
+homepage            http://shogun-toolbox.org
+master_sites        ${homepage}/archives/shogun/releases/${branch}/sources/
+
+use_bzip2           yes
+
+checksums           rmd160  8a64fb98ee080feccdd49d295117ad162d59443a \
+                    sha256  bc416b615ed90aef80c58a30546c5e2da779347bebb8742ecf11657073fc8f72
+
+worksrcdir          ${worksrcdir}/../build
+patch.dir           ${workpath}/${distname}
+
+universal_variant   no
+
+pre-fetch {
+    if {${os.major} <= 12} {
+        return -code error "Shogun is only supported on Mavericks or above"
+    }
+}
+
+post-extract {
+    file mkdir ${worksrcpath}
+
+    # Fix permissions
+    fs-traverse item ${workpath}/${distname} {
+        if {[file isdirectory ${item}]} {
+            file attributes ${item} -permissions a+rx
+        } elseif {[file isfile ${item}]} {
+            file attributes ${item} -permissions a+r
+        }
+    }
+}
+
+patchfiles          patch-CMakeLists.txt.diff \
+                    patch-src_shogun_CMakeLists.txt.diff \
+                    patch-cmake_FindSpinlock.cmake.diff \
+                    patch-src_shogun_evaluation_ContingencyTableEvaluation.cpp.diff \
+                    patch-src_interfaces_python_modular_CMakeLists.txt.diff
+
+configure.args-append \
+                    ../${distname}/ \
+                    -DENABLE_CCACHE=NO \
+                    -DPythonModular=ON \
+                    -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7
+
+depends_build-append \
+                    port:pkgconfig \
+                    port:python27
+
+depends_lib-append  port:hdf5 \
+                    port:json-c \
+                    port:libxml2 \
+                    port:readline \
+                    port:atlas \
+                    port:arpack \
+                    port:eigen3 \
+                    port:lp_solve \
+                    port:glpk \
+                    port:lzo2 \
+                    port:snappy \
+                    port:gzip \
+                    port:bzip2 \
+                    port:xz \
+                    port:protobuf-cpp
+
+variant python27 description {Build the Python 2.7 API}  {
+    depends_lib-append  port:swig-python \
+                        port:python27 \
+                        port:py27-numpy
+    configure.args-append \
+                        -DPythonModular=ON
+}
+
+livecheck.type      regex
+livecheck.url       http://www.shogun-toolbox.org
+livecheck.regex     {SHOGUN ([0-9.]+)}


Property changes on: trunk/dports/math/shogun-devel/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/math/shogun-devel/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/math/shogun-devel/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/math/shogun-devel/files/patch-CMakeLists.txt.diff	2014-09-17 21:09:18 UTC (rev 125442)
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2014-09-17 20:41:31.000000000 +0400
++++ CMakeLists.txt	2014-09-17 20:41:46.000000000 +0400
+@@ -622,7 +622,7 @@
+ 	IF (EIGEN3_FOUND)
+ 		SET(HAVE_EIGEN3 1)
+ 		LIST(APPEND DEFINES HAVE_EIGEN3)
+-		LIST(APPEND SYSTEM_INCLUDES ${EIGEN_INCLUDE_DIR})
++		LIST(APPEND SYSTEM_INCLUDES ${EIGEN3_INCLUDE_DIR})
+ 	ENDIF()
+ ENDIF()
+ 

Added: trunk/dports/math/shogun-devel/files/patch-cmake_FindSpinlock.cmake.diff
===================================================================
--- trunk/dports/math/shogun-devel/files/patch-cmake_FindSpinlock.cmake.diff	                        (rev 0)
+++ trunk/dports/math/shogun-devel/files/patch-cmake_FindSpinlock.cmake.diff	2014-09-17 21:09:18 UTC (rev 125442)
@@ -0,0 +1,15 @@
+--- cmake/FindSpinlock.cmake.orig	2013-12-19 01:25:15.000000000 +0400
++++ cmake/FindSpinlock.cmake	2013-12-19 01:34:27.000000000 +0400
+@@ -1,10 +1,10 @@
+ IF (CMAKE_USE_PTHREADS_INIT)
+ 	SET(_bindir "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}")
+ 	IF (DARWIN)
+-		TRY_COMPILE(HAVE_SPINLOCK "${_bindir}" "${CMAKE_MODULE_PATH}/spinlock-test-darwin.cpp")
++		TRY_COMPILE(HAVE_SPINLOCK "${_bindir}" "${CMAKE_CURRENT_LIST_DIR}/spinlock-test-darwin.cpp")
+ 	ELSE ()
+ 		TRY_COMPILE(HAVE_SPINLOCK "${_bindir}"
+-			"${CMAKE_MODULE_PATH}/spinlock-test.cpp"
++			"${CMAKE_CURRENT_LIST_DIR}/spinlock-test.cpp"
+ 			CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=${CMAKE_THREAD_LIBS_INIT}"
+ 		)
+ 	ENDIF ()

Added: trunk/dports/math/shogun-devel/files/patch-src_interfaces_python_modular_CMakeLists.txt.diff
===================================================================
--- trunk/dports/math/shogun-devel/files/patch-src_interfaces_python_modular_CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/math/shogun-devel/files/patch-src_interfaces_python_modular_CMakeLists.txt.diff	2014-09-17 21:09:18 UTC (rev 125442)
@@ -0,0 +1,20 @@
+--- src/interfaces/python_modular/CMakeLists.txt.orig	2014-09-17 23:06:19.000000000 +0400
++++ src/interfaces/python_modular/CMakeLists.txt	2014-09-17 23:09:05.000000000 +0400
+@@ -14,16 +14,7 @@
+                   RESULT_VARIABLE PYTHON_CVPY_PROCESS
+                   OUTPUT_VARIABLE PYTHON_STD_PACKAGES_PATH
+                   OUTPUT_STRIP_TRAILING_WHITESPACE)
+-  if("${PYTHON_STD_PACKAGES_PATH}" MATCHES "site-packages")
+-    set(_PYTHON_PACKAGES_PATH "python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages")
+-  else() #debian based assumed, install to the dist-packages.
+-    set(_PYTHON_PACKAGES_PATH "python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages")
+-  endif()
+-  if(EXISTS "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/${PYTHON_PACKAGES_PATH}")
+-    set(_PYTHON_PACKAGES_PATH "lib${LIB_SUFFIX}/${_PYTHON_PACKAGES_PATH}")
+-  else()
+-    set(_PYTHON_PACKAGES_PATH "lib/${_PYTHON_PACKAGES_PATH}")
+-  endif()
++  set(_PYTHON_PACKAGES_PATH ${PYTHON_STD_PACKAGES_PATH})
+ elseif(CMAKE_HOST_WIN32)
+   get_filename_component(PYTHON_PATH "${PYTHON_EXECUTABLE}" PATH)
+   file(TO_CMAKE_PATH "${PYTHON_PATH}" PYTHON_PATH)

Added: trunk/dports/math/shogun-devel/files/patch-src_shogun_CMakeLists.txt.diff
===================================================================
--- trunk/dports/math/shogun-devel/files/patch-src_shogun_CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/math/shogun-devel/files/patch-src_shogun_CMakeLists.txt.diff	2014-09-17 21:09:18 UTC (rev 125442)
@@ -0,0 +1,11 @@
+--- src/shogun/CMakeLists.txt.orig	2013-12-19 02:00:19.000000000 +0400
++++ src/shogun/CMakeLists.txt	2013-12-19 02:03:59.000000000 +0400
+@@ -16,7 +16,7 @@
+                      -D DST=${CMAKE_CURRENT_SOURCE_DIR}/lib/versionstring.h
+                      -D ROOT_DIR=${CMAKE_SOURCE_DIR}
+                      -D PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
+-                     -P ${CMAKE_MODULE_PATH}/version.cmake
++                     -P ${PROJECT_SOURCE_DIR}/cmake/version.cmake
+     COMMENT "Generating version header"
+ )
+ add_dependencies(shogun version)

Added: trunk/dports/math/shogun-devel/files/patch-src_shogun_evaluation_ContingencyTableEvaluation.cpp.diff
===================================================================
--- trunk/dports/math/shogun-devel/files/patch-src_shogun_evaluation_ContingencyTableEvaluation.cpp.diff	                        (rev 0)
+++ trunk/dports/math/shogun-devel/files/patch-src_shogun_evaluation_ContingencyTableEvaluation.cpp.diff	2014-09-17 21:09:18 UTC (rev 125442)
@@ -0,0 +1,11 @@
+--- src/shogun/evaluation/ContingencyTableEvaluation.cpp.orig	2014-09-17 22:47:57.000000000 +0400
++++ src/shogun/evaluation/ContingencyTableEvaluation.cpp	2014-09-17 22:48:08.000000000 +0400
+@@ -52,7 +52,7 @@
+ 	return 42;
+ }
+ 
+-inline EEvaluationDirection CContingencyTableEvaluation::get_evaluation_direction() const
++EEvaluationDirection CContingencyTableEvaluation::get_evaluation_direction() const
+ {
+ 	switch (m_type)
+ 	{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140917/7695d204/attachment.html>


More information about the macports-changes mailing list