Skip to content

Commit

Permalink
mod_wsgi: Use Python 2.7 always
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@130107 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
larryv committed Dec 27, 2014
1 parent 55a70a3 commit fd06700
Showing 1 changed file with 5 additions and 35 deletions.
40 changes: 5 additions & 35 deletions www/mod_wsgi/Portfile
Expand Up @@ -5,6 +5,7 @@ PortSystem 1.0
PortGroup github 1.0

github.setup GrahamDumpleton mod_wsgi 4.2.8
revision 1
categories www python
platforms darwin
license Apache
Expand All @@ -20,13 +21,15 @@ long_description The mod_wsgi module is written in C code directly \
alternative FASTCGI/SCGI/CGI based solutions.
homepage http://www.modwsgi.org/

depends_lib port:apache2
depends_lib port:apache2 \
port:python27

checksums rmd160 1af7c5f96a54f629fdd55c459134a56bf0e2e743 \
sha256 01f95e96aa5bd5cfbbbbe92fe0d6ddfe25820d1166ca4c5d67e185fb873aa44f

configure.args --disable-framework \
--with-apxs=${prefix}/apache2/bin/apxs
--with-apxs=${prefix}/apache2/bin/apxs \
--with-python=${prefix}/bin/python2.7

destroot.violate_mtree yes
pre-destroot {
Expand All @@ -40,36 +43,3 @@ To enable mod_wsgi, add
to your ${prefix}/apache2/conf/httpd.conf file.
"

if {![variant_isset python24]
&& ![variant_isset python25]
&& ![variant_isset python26]
&& ![variant_isset python27]
&& ![variant_isset python31]} {
default_variants +python27
}

variant python24 conflicts python25 python26 python27 python31 description {Use Python 2.4} {
depends_lib-append port:python24
configure.args-append --with-python=${prefix}/bin/python2.4
}

variant python25 conflicts python24 python26 python27 python31 description {Use Python 2.5} {
depends_lib-append port:python25
configure.args-append --with-python=${prefix}/bin/python2.5
}

variant python26 conflicts python24 python25 python27 python31 description {Use Python 2.6} {
depends_lib-append port:python26
configure.args-append --with-python=${prefix}/bin/python2.6
}

variant python27 conflicts python24 python25 python26 python31 description {Use Python 2.7} {
depends_lib-append port:python27
configure.args-append --with-python=${prefix}/bin/python2.7
}

variant python31 conflicts python24 python25 python26 python27 description {Use Python 3.1} {
depends_lib-append port:python31
configure.args-append --with-python=${prefix}/bin/python3.1
}

0 comments on commit fd06700

Please sign in to comment.