[129394] trunk/dports/python
stromnov at macports.org
stromnov at macports.org
Fri Dec 12 07:49:36 PST 2014
Revision: 129394
https://trac.macports.org/changeset/129394
Author: stromnov at macports.org
Date: 2014-12-12 07:49:36 -0800 (Fri, 12 Dec 2014)
Log Message:
-----------
py-llvmlite: new port (#46189)
Added Paths:
-----------
trunk/dports/python/py-llvmlite/
trunk/dports/python/py-llvmlite/Portfile
trunk/dports/python/py-llvmlite/files/
trunk/dports/python/py-llvmlite/files/patch-ffi_Makefile.osx.diff
trunk/dports/python/py-llvmlite/files/patch-ffi_build.py.diff
Added: trunk/dports/python/py-llvmlite/Portfile
===================================================================
--- trunk/dports/python/py-llvmlite/Portfile (rev 0)
+++ trunk/dports/python/py-llvmlite/Portfile 2014-12-12 15:49:36 UTC (rev 129394)
@@ -0,0 +1,37 @@
+# -*- 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 github 1.0
+PortGroup python 1.0
+
+github.setup numba llvmlite 0.1.0 v
+
+name py-llmvlite
+categories-append science
+platforms darwin
+license BSD
+
+python.versions 27 34
+
+maintainers stromnov openmaintainer
+
+description A lightweight LLVM python binding for writing JIT compilers
+long_description ${description}
+
+homepage https://github.com/numba/llvmlite
+
+checksums rmd160 9b2d2d61af48899a22e78e24adee3348749fb2f6 \
+ sha256 cc9f843006157fa3b6de832f1b1b8acd23d4c2cfb58654f280b5a27f3c0ad2ac
+
+if {${name} ne ${subport}} {
+ patchfiles-append patch-ffi_build.py.diff \
+ patch-ffi_Makefile.osx.diff
+
+ depends_build-append \
+ port:py${python.version}-setuptools
+
+ depends_lib-append port:llvm-3.5
+
+ livecheck.type none
+}
Property changes on: trunk/dports/python/py-llvmlite/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py-llvmlite/files/patch-ffi_Makefile.osx.diff
===================================================================
--- trunk/dports/python/py-llvmlite/files/patch-ffi_Makefile.osx.diff (rev 0)
+++ trunk/dports/python/py-llvmlite/files/patch-ffi_Makefile.osx.diff 2014-12-12 15:49:36 UTC (rev 129394)
@@ -0,0 +1,13 @@
+--- ffi/Makefile.osx.orig 2014-12-12 18:36:32.000000000 +0300
++++ ffi/Makefile.osx 2014-12-12 18:36:56.000000000 +0300
+@@ -1,7 +1,7 @@
+ CXX = clang++ -std=c++11 -stdlib=libc++
+-CXXFLAGS = `llvm-config --cxxflags`
+-LDFLAGS = `llvm-config --ldflags`
+-LIBS = `llvm-config --system-libs --libs all`
++CXXFLAGS = `llvm-config-mp-3.5 --cxxflags`
++LDFLAGS = `llvm-config-mp-3.5 --ldflags`
++LIBS = `llvm-config-mp-3.5 --system-libs --libs all`
+ SRC = assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp \
+ executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp \
+ linker.cpp
Added: trunk/dports/python/py-llvmlite/files/patch-ffi_build.py.diff
===================================================================
--- trunk/dports/python/py-llvmlite/files/patch-ffi_build.py.diff (rev 0)
+++ trunk/dports/python/py-llvmlite/files/patch-ffi_build.py.diff 2014-12-12 15:49:36 UTC (rev 129394)
@@ -0,0 +1,11 @@
+--- ffi/build.py.orig 2014-12-12 18:31:54.000000000 +0300
++++ ffi/build.py 2014-12-12 18:32:41.000000000 +0300
+@@ -68,7 +68,7 @@
+ def main_posix(kind, library_ext):
+ os.chdir(here_dir)
+ makefile = "Makefile.%s" % (kind,)
+- llvm_config = os.environ.get('LLVM_CONFIG', 'llvm-config')
++ llvm_config = os.environ.get('LLVM_CONFIG', 'llvm-config-mp-3.5')
+ subprocess.check_call(['make', '-f', makefile,
+ 'LLVM_CONFIG=%s' % llvm_config])
+ shutil.copy('libllvmlite' + library_ext, target_dir)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141212/93360ff9/attachment.html>
More information about the macports-changes
mailing list