738260c533
With newer Python version, mod_wsgi gives error messages like this: [error] Exception KeyError: KeyError(139934492751712,) in <module 'threading' from '/usr/local/lib/python2.6/threading.pyc'> ignored This is a backport for svn revision 1605. PR: ports/148651 Approved by: maintainer
45 lines
970 B
Makefile
45 lines
970 B
Makefile
# New ports collection makefile for: mod_wsgi
|
|
# Date created: 07 April 2008
|
|
# Whom: Douglas Thrift
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mod_wsgi
|
|
PORTVERSION= 3.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= www python
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
|
|
http://apt.douglasthrift.net/files/${PORTNAME}/ \
|
|
http://code.douglasthrift.net/files/${PORTNAME}/
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= douglas@douglasthrift.net
|
|
COMMENT= Python WSGI adapter module for Apache
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
#LATEST_LINK= mod_wsgi
|
|
CONFLICTS= mod_wsgi-2.*
|
|
|
|
PROJECTHOST= modwsgi
|
|
|
|
USE_APACHE= 1.3+
|
|
USE_PYTHON= 2.4+
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}"
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} >= 300 && ${PYTHON_REL} < 310
|
|
IGNORE= is unsupported with Python 3.0
|
|
.endif
|
|
|
|
post-install:
|
|
@${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/${MODULENAME}.so"
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|