ports/137962: [Patch]net-im/py-pyxmpp:fix the build error with CUSTOM PREFIX

Wen Heping wenheping at gmail.com
Wed Aug 19 14:10:01 UTC 2009


>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 at 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:



More information about the freebsd-ports-bugs mailing list