Skip to content
Permalink
Browse files

xrootd: move python bindings to MP frameworks directory

  • Loading branch information
cjones051073 committed Apr 7, 2019
1 parent d62dd62 commit 2c7c5ea6506a65d6b3f2b9c1b46bc180aacbed9f
Showing with 10 additions and 13 deletions.
  1. +10 −13 science/xrootd/Portfile
@@ -9,7 +9,7 @@ PortGroup legacysupport 1.0

github.setup xrootd xrootd 4.9.1 v
version ${github.version}
revision 1
revision 2

livecheck.version ${version}
livecheck.type regex
@@ -38,11 +38,13 @@ depends_build-append port:cctools \

set python_v 3.7
set python_v_nodot [string map {. {}} $python_v]
configure.python ${prefix}/bin/python${python_v}

depends_lib port:curl \
port:python${python_v_nodot} \
port:swig \
port:libxml2 \
port:json-c \
port:swig \
port:zlib

default_variants +ssl +readline +kerberos
@@ -55,16 +57,6 @@ compiler.blacklist-append *gcc* {clang < 900} macports-clang-3.3 macports-clang-
macports-clang-5.0
compiler.whitelist clang macports-clang-8.0 macports-clang-7.0 macports-clang-6.0

# Note that we are forcing this choice. This means that anything linking
# against root6 needs to also be using libc++. This is possibly
# problematic, but luckily there is just a limited set of such dependents.
# Another problem is that all dependencies might need to be built-in
# to make sure that they all use libc++.
#if { ${configure.cxx_stdlib} ne "libc++" } {
# configure.cxx_stdlib libc++
# depends_lib-append port:libcxx
#}

configure.cxxflags-append --std=c++11
configure.args-append -DENABLE_CRYPTO=False \
-DENABLE_READLINE=False \
@@ -73,7 +65,7 @@ configure.args-append -DENABLE_CRYPTO=False \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_CXX_FLAGS="${configure.cxxflags}" \
-DCMAKE_INSTALL_MANDIR="share/man" \
-DPYTHON_EXECUTABLE=${prefix}/bin/python${python_v}
-DPYTHON_EXECUTABLE=${configure.python}

variant readline description {Build with Readline Support} {
configure.args-delete -DENABLE_READLINE=False
@@ -93,3 +85,8 @@ variant kerberos description {Build with Kerberos 5 Support} {
depends_lib-append port:kerberos5
}

post-extract {
# Fix python install location
set python_framework ${frameworks_dir}/Python.framework/Versions/${python_v}
reinplace "s|\${CMAKE_INSTALL_PREFIX}|${python_framework}|g" ${worksrcpath}/bindings/python/CMakeLists.txt
}

0 comments on commit 2c7c5ea

Please sign in to comment.
You can’t perform that action at this time.