aboutsummaryrefslogtreecommitdiffstats
path: root/devel/omniORB
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-02-13 22:58:24 +0800
committersem <sem@FreeBSD.org>2006-02-13 22:58:24 +0800
commitc34a58d41f6218521c88ef48ee9595e0f3437fd3 (patch)
tree7d3006846a609f1e4a067015d7283427cf8ec3a6 /devel/omniORB
parentbc9e304edab04ca72d6eefcd0c5a5bf0ad34b0d7 (diff)
downloadfreebsd-ports-gnome-c34a58d41f6218521c88ef48ee9595e0f3437fd3.tar.gz
freebsd-ports-gnome-c34a58d41f6218521c88ef48ee9595e0f3437fd3.tar.zst
freebsd-ports-gnome-c34a58d41f6218521c88ef48ee9595e0f3437fd3.zip
- Precompile python modules during install to satisfy pointyhat
Reported by: krismail
Diffstat (limited to 'devel/omniORB')
-rw-r--r--devel/omniORB/Makefile3
-rw-r--r--devel/omniORB/pkg-plist26
2 files changed, 25 insertions, 4 deletions
diff --git a/devel/omniORB/Makefile b/devel/omniORB/Makefile
index 8dbb7e8a4fbe..171712e86e4f 100644
--- a/devel/omniORB/Makefile
+++ b/devel/omniORB/Makefile
@@ -7,6 +7,7 @@
PORTNAME= omniORB
PORTVERSION= 4.0.7
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:L}
@@ -50,6 +51,8 @@ pre-configure:
@${MKDIR} ${CONFIGURE_WRKSRC}
post-install:
+ @${PYTHON_CMD} -c "import compileall; compileall.compile_dir('${PYTHON_SITELIBDIR}/omniidl')"
+ @${PYTHON_CMD} -c "import compileall; compileall.compile_dir('${PYTHON_SITELIBDIR}/omniidl_be')"
.for manpage in ${MAN1}
@${INSTALL_MAN} ${WRKSRC}/man/man1/${manpage} ${MANPREFIX}/man/man1
.endfor
diff --git a/devel/omniORB/pkg-plist b/devel/omniORB/pkg-plist
index 8c6fbeb0c74b..e068ba0c2e1e 100644
--- a/devel/omniORB/pkg-plist
+++ b/devel/omniORB/pkg-plist
@@ -212,20 +212,33 @@ libdata/pkgconfig/omnithread3.pc
%%PYTHON_SITELIBDIR%%/_omniidlmodule.so.1
%%PYTHON_SITELIBDIR%%/_omniidlmodule.so.1.0
%%PYTHON_SITELIBDIR%%/omniidl/__init__.py
+%%PYTHON_SITELIBDIR%%/omniidl/__init__.pyc
%%PYTHON_SITELIBDIR%%/omniidl/idlast.py
+%%PYTHON_SITELIBDIR%%/omniidl/idlast.pyc
%%PYTHON_SITELIBDIR%%/omniidl/idltype.py
+%%PYTHON_SITELIBDIR%%/omniidl/idltype.pyc
%%PYTHON_SITELIBDIR%%/omniidl/idlutil.py
+%%PYTHON_SITELIBDIR%%/omniidl/idlutil.pyc
%%PYTHON_SITELIBDIR%%/omniidl/idlvisitor.py
+%%PYTHON_SITELIBDIR%%/omniidl/idlvisitor.pyc
%%PYTHON_SITELIBDIR%%/omniidl/main.py
+%%PYTHON_SITELIBDIR%%/omniidl/main.pyc
%%PYTHON_SITELIBDIR%%/omniidl/output.py
-@unexec rm -f %B/*.pyc
+%%PYTHON_SITELIBDIR%%/omniidl/output.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/__init__.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/__init__.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/__init__.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/__init__.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/ast.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/ast.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/call.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/call.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/config.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/config.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/cxx.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/cxx.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/descriptor.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/descriptor.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/dynskel/__init__.py
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/dynskel/__init__.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/dynskel/main.py
@@ -255,13 +268,17 @@ libdata/pkgconfig/omnithread3.pc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/header/tie.py
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/header/tie.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/id.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/id.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/iface.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/iface.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/impl/__init__.py
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/impl/__init__.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/impl/main.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/impl/main.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/impl/template.py
-@unexec rm -f %B/*.pyc
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/impl/template.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/output.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/output.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/skel/__init__.py
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/skel/__init__.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/skel/main.py
@@ -280,11 +297,12 @@ libdata/pkgconfig/omnithread3.pc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/types.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/util.py
%%PYTHON_SITELIBDIR%%/omniidl_be/cxx/util.pyc
-@unexec rm -f %B/*.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/dump.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/dump.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/example.py
+%%PYTHON_SITELIBDIR%%/omniidl_be/example.pyc
%%PYTHON_SITELIBDIR%%/omniidl_be/interactive.py
-@unexec rm -f %B/*.pyc
+%%PYTHON_SITELIBDIR%%/omniidl_be/interactive.pyc
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/README.FIRST.txt
%%PORTDOCS%%%%DOCSDIR%%/README.unix