Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2013 03:59:53 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r330969 - head/www/mod_python3
Message-ID:  <201310200359.r9K3xrnK017569@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Sun Oct 20 03:59:52 2013
New Revision: 330969
URL: http://svnweb.freebsd.org/changeset/ports/330969

Log:
  www/mod_python3: Fix linking when Python is built with libs in LOCALBASE
  
  - Bump port revision
  - While I'm here, sort Makefile entries
  - Add regression-test target with comment
  
  PR:		ports/182185
  Reported by:	des, pkg-fallout
  Reviewed by:	mva
  Approved by:	maintainer timeout (1 month)

Modified:
  head/www/mod_python3/Makefile

Modified: head/www/mod_python3/Makefile
==============================================================================
--- head/www/mod_python3/Makefile	Sun Oct 20 03:58:35 2013	(r330968)
+++ head/www/mod_python3/Makefile	Sun Oct 20 03:59:52 2013	(r330969)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mod_python
 PORTVERSION=	3.3.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	www python
 MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD}
 MASTER_SITE_SUBDIR=	modpython
@@ -13,21 +13,27 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	apache@FreeBSD.org
 COMMENT=	Apache module that embeds the Python interpreter within the server
 
-
 USE_APACHE=	22
 USE_PYTHON=	yes
 
-MAKE_ARGS+=	APXS=${APXS}
-
 INSTALLS_EGGINFO=	yes
-LATEST_LINK=	mod_python3
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}" \
-		--without-flex
+LATEST_LINK=		mod_python3
+
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--with-apxs="${APXS}"		\
+			--with-python="${PYTHON_CMD}"	\
+			--without-flex
+
+LDFLAGS+=	-L${LOCALBASE}/lib
+MAKE_ARGS+=	APXS=${APXS}
 MAKE_ENV=	EXPR_COMPAT=yes
 
 NO_STAGE=	yes
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
+# You need to install apache & mod_python before you run this
+regression-test: build
+	@cd ${WRKSRC} && ${MAKE} check
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310200359.r9K3xrnK017569>