Skip site navigation (1)Skip section navigation (2)
Date:      17 Nov 2003 21:15:13 -0000
From:      Rui Lopes <rui@ruilopes.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/59384: [PATCH] textproc/libxslt Compile installed .py files
Message-ID:  <20031117211513.53673.qmail@ns.webtt.biz>
Resent-Message-ID: <200311172120.hAHLKKos033265@freefall.freebsd.org>

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

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



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