Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 2009 14:08:27 GMT
From:      Wen Heping <wenheping@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/137962: [Patch]net-im/py-pyxmpp:fix the build error with CUSTOM PREFIX
Message-ID:  <200908191408.n7JE8RBr021302@www.freebsd.org>
Resent-Message-ID: <200908191410.n7JEA0N2035835@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137962
>Category:       ports
>Synopsis:       [Patch]net-im/py-pyxmpp:fix the build error with CUSTOM PREFIX
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 19 14:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Wen Heping
>Release:        FreeBSD 8.0-Current
>Organization:
ChangAn Middle School
>Environment:
FreeBSD fb8.wenjing.com 8.0-CURRENT FreeBSD 8.0-CURRENT #4: Fri Apr 10 16:36:28 HKT 2009     root@fb8.wenjing.com:/usr/obj/usr/src/sys/wen1  i386
>Description:
fix the build error with CUSTOM PREFIX
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2009-08-19 16:52:04.000000000 +0800
+++ Makefile	2009-08-20 05:46:57.000000000 +0800
@@ -27,8 +27,8 @@
 	@${GREP} -lr '/usr/bin/python' ${WRKSRC} | \
 		${XARGS} ${REINPLACE_CMD} -e "s!/usr/bin/python!${PYTHON_CMD}!"
 	@${REINPLACE_CMD} -e '/include_dirs =/s|]|,"${LOCALBASE}/include"]|' \
-		-e '/library_dirs =/s|]|"${LOCALBASE}/lib"]|' ${WRKSRC}/setup.py
-
+		-e '/library_dirs =/s|]|"${LOCALBASE}/lib"]|' \
+		-e 's#/usr/local#${LOCALBASE}#g' ${WRKSRC}/setup.py
 post-install:
 	@${ECHO} "pyxmpp" > ${PYTHON_SITELIBDIR}/pyxmpp.pth
 


>Release-Note:
>Audit-Trail:
>Unformatted:



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