ports/59384: [PATCH] textproc/libxslt Compile installed .py files

Rui Lopes rui at ruilopes.com
Mon Nov 17 21:20:26 UTC 2003


>Number:         59384
>Category:       ports
>Synopsis:       [PATCH] textproc/libxslt Compile installed .py files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 17 13:20:20 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rui Lopes
>Release:        FreeBSD 5.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD cheetah 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #3: Sat Oct 11 19:39:45 WEST 2003 root at cheetah:/usr/obj/usr/src/sys/DEBUGGER i386


	
>Description:
Compile python files on installation.
	
>How-To-Repeat:
	
>Fix:

	

--- libxslt.patch begins here ---
# * Compile python files on installation.
# -- Rui Lopes <rui at ruilopes.com>
diff -u libxslt.orig/Makefile libxslt/Makefile
--- libxslt.orig/Makefile	Mon Nov 17 21:04:03 2003
+++ libxslt/Makefile	Mon Nov 17 21:06:00 2003
@@ -48,4 +48,10 @@
 	@${ECHO_MSG} "	WITH_MEM_DEBUG=yes		Turns on memory debugging"
 	@${ECHO_MSG} ""
 
+.if !defined(WITHOUT_PYTHON)
+post-install:
+	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
+	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
+.endif
+
 .include <bsd.port.mk>
Common subdirectories: libxslt.orig/files and libxslt/files
diff -u libxslt.orig/pkg-plist libxslt/pkg-plist
--- libxslt.orig/pkg-plist	Mon Nov 17 21:04:03 2003
+++ libxslt/pkg-plist	Mon Nov 17 21:05:56 2003
@@ -31,6 +31,8 @@
 lib/libxslt.so
 lib/libxslt.so.2
 %%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.py
+%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.pyc
+%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.pyo
 %%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxsltmod.so
 libdata/pkgconfig/libxslt.pc
 share/aclocal/libxslt.m4
--- libxslt.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list