From owner-svn-ports-all@freebsd.org Fri Oct 12 01:55:32 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F6DC10CEB21; Fri, 12 Oct 2018 01:55:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44F348C6A9; Fri, 12 Oct 2018 01:55:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3FE3918C68; Fri, 12 Oct 2018 01:55:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9C1tWIo077266; Fri, 12 Oct 2018 01:55:32 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9C1tVsq077262; Fri, 12 Oct 2018 01:55:31 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201810120155.w9C1tVsq077262@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Fri, 12 Oct 2018 01:55:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r481867 - in head/math: . py-primme py-primme/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/math: . py-primme py-primme/files X-SVN-Commit-Revision: 481867 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 01:55:32 -0000 Author: yuri Date: Fri Oct 12 01:55:30 2018 New Revision: 481867 URL: https://svnweb.freebsd.org/changeset/ports/481867 Log: New port: math/py-primme: PRIMME wrapper for Python Added: head/math/py-primme/ head/math/py-primme/Makefile (contents, props changed) head/math/py-primme/distinfo (contents, props changed) head/math/py-primme/files/ head/math/py-primme/files/patch-setup.py (contents, props changed) head/math/py-primme/pkg-descr (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Fri Oct 12 01:16:48 2018 (r481866) +++ head/math/Makefile Fri Oct 12 01:55:30 2018 (r481867) @@ -720,6 +720,7 @@ SUBDIR += py-petsc4py SUBDIR += py-piranha SUBDIR += py-plastex + SUBDIR += py-primme SUBDIR += py-probstat SUBDIR += py-pyFFTW SUBDIR += py-pyasp Added: head/math/py-primme/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-primme/Makefile Fri Oct 12 01:55:30 2018 (r481867) @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= primme +DISTVERSION= 2.1.5.20181011 # need the latest changes, but github repo is mistagged, no regular github tag available +CATEGORIES= math python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= PRIMME wrapper for Python + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/../COPYING.txt + +BUILD_DEPENDS= ${PYNUMPY} +LIB_DEPENDS= libprimme.so:math/primme +RUN_DEPENDS= ${PYNUMPY} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} + +USES= fortran gmake localbase:ldflags python shebangfix +SHEBANG_FILES= examples.py tests.py +USE_GITHUB= yes +GH_TAGNAME= 6a0fa27 +USE_PYTHON= distutils autoplist +TEST_TARGET= test + +WRKSRC_SUBDIR= Python +BINARY_ALIAS= python2=${PYTHON_CMD} + +post-test: # not sure why does the 'test' target tun examples and not tests + @cd ${WRKSRC} && ${PYTHON_CMD} ${WRKSRC}/tests.py + +.include Added: head/math/py-primme/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-primme/distinfo Fri Oct 12 01:55:30 2018 (r481867) @@ -0,0 +1,3 @@ +TIMESTAMP = 1539307207 +SHA256 (primme-primme-2.1.5.20181011-6a0fa27_GH0.tar.gz) = 8f662a7c41d5bfb7910ccb9bbcb7f06f1191fc7c7a9d41fb695e9b13438bcb79 +SIZE (primme-primme-2.1.5.20181011-6a0fa27_GH0.tar.gz) = 5511173 Added: head/math/py-primme/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-primme/files/patch-setup.py Fri Oct 12 01:55:30 2018 (r481867) @@ -0,0 +1,60 @@ +--- setup.py.orig 2018-10-11 23:38:33 UTC ++++ setup.py +@@ -15,31 +16,33 @@ def get_numpy_options(): + numpy_include = numpy.get_include() + + # Obtain BLAS/LAPACK linking options +- lapack_info = get_info('lapack_opt') +- blas_info = get_info('blas_opt') +- using_atlas = False +- using_f77blas = False +- using_lapack = False +- for l in lapack_info.get('libraries', []) + blas_info.get('libraries', []): +- if "atlas" in l: using_atlas = True +- if "f77blas" in l: using_f77blas = True +- if "lapack" in l: using_lapack = True +- if using_atlas and (not using_f77blas or not using_lapack): +- lapack_info = get_info('atlas') +- # ATLAS notices an incomplete LAPACK by not setting language to f77 +- complete_lapack = lapack_info.get('language', "") == "f77" +- if complete_lapack: +- blas_info = {} +- else: +- # If ATLAS has an incomplete LAPACK, use a regular one +- blas_info = get_info('atlas_blas') +- lapack_info = get_info('lapack') ++ #lapack_info = get_info('lapack_opt') ++ #blas_info = get_info('blas_opt') ++ #using_atlas = False ++ #using_f77blas = False ++ #using_lapack = False ++ #for l in lapack_info.get('libraries', []) + blas_info.get('libraries', []): ++ # if "atlas" in l: using_atlas = True ++ # if "f77blas" in l: using_f77blas = True ++ # if "lapack" in l: using_lapack = True ++ #if using_atlas and (not using_f77blas or not using_lapack): ++ # lapack_info = get_info('atlas') ++ # # ATLAS notices an incomplete LAPACK by not setting language to f77 ++ # complete_lapack = lapack_info.get('language', "") == "f77" ++ # if complete_lapack: ++ # blas_info = {} ++ # else: ++ # # If ATLAS has an incomplete LAPACK, use a regular one ++ # blas_info = get_info('atlas_blas') ++ # lapack_info = get_info('lapack') + +- blaslapack_libraries = lapack_info.get('libraries', []) + blas_info.get('libraries', []) +- blaslapack_library_dirs = lapack_info.get('library_dirs', []) + blas_info.get('library_dirs', []) +- blaslapack_extra_link_args = lapack_info.get('extra_link_args', []) + blas_info.get('extra_link_args', []) +- if not blaslapack_libraries and not blaslapack_extra_link_args: +- blaslapack_libraries = ['lapack', 'blas'] ++ #blaslapack_libraries = lapack_info.get('libraries', []) + blas_info.get('libraries', []) ++ #blaslapack_library_dirs = lapack_info.get('library_dirs', []) + blas_info.get('library_dirs', []) ++ #blaslapack_extra_link_args = lapack_info.get('extra_link_args', []) + blas_info.get('extra_link_args', []) ++ #if not blaslapack_libraries and not blaslapack_extra_link_args: ++ blaslapack_libraries = [] ++ blaslapack_extra_link_args = [] ++ blaslapack_library_dirs = [] + + return dict( + include_dirs = [numpy_include, "primme/include", "primme/src/include"], Added: head/math/py-primme/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-primme/pkg-descr Fri Oct 12 01:55:30 2018 (r481867) @@ -0,0 +1,5 @@ +The python binding for PRIMME, PReconditioned Iterative MultiMethod Eigensolver +for solving symmetric/Hermitian eigenvalue problems and singular value +problems. + +WWW: http://www.cs.wm.edu/~andreas/software/