ports/117088: maintainer fix: math/qtiplot

Max Brazhnikov makc at issp.ac.ru
Wed Oct 10 22:40:01 UTC 2007


>Number:         117088
>Category:       ports
>Synopsis:       maintainer fix: math/qtiplot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 10 22:40:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Max Brazhnikov
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
FreeBSD luna.dio.ru 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Aug  9 00:11:48 MSD 2007     root at luna.dio.ru:/usr/obj/usr/src/sys/LUNA  i386
>Description:
install missing script if user define WITH_PYTHON
adjust pkg-plist
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN --exclude=CVS /usr/ports/math/qtiplot/Makefile /home/makc/porting/ports/math/qtiplot/Makefile
--- /usr/ports/math/qtiplot/Makefile	2007-09-23 10:52:27.000000000 +0400
+++ /home/makc/porting/ports/math/qtiplot/Makefile	2007-10-11 02:17:58.000000000 +0400
@@ -70,6 +70,9 @@
 	@${REINPLACE_CMD} -e \
 		's|loadInitFile("qtiplotrc")|loadInitFile("${DATADIR}/qtiplotrc")|' \
 		${WRKSRC}/${PORTNAME}/src/PythonScripting.cpp
+	${REINPLACE_CMD} -e \
+		'/^sys.path.append/s|"\."|"${DATADIR}"|' \
+		${WRKSRC}/${PORTNAME}/qtiplotrc.py
 .else
 	@${REINPLACE_CMD} \
 		-e "s/^SCRIPTING_LANGS += Python//" \
@@ -109,9 +112,11 @@
 				${DATADIR}/fitPlugins/libfitRational1.so
 	${INSTALL_DATA} ${WRKSRC}/qtiplot_logo.png ${DATADIR}/qtiplot.png
 .if defined(WITH_PYTHON)
-	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/qtiplotrc.py ${DATADIR}/qtiplotrc.py
-	@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('qtiplotrc.py')"
-	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/qtiplotrc.pyc ${DATADIR}/qtiplotrc.pyc
+.for s in qtiplotrc.py qtiUtil.py
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s} ${DATADIR}/${s}
+	@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('${s}')"
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s}c ${DATADIR}/${s}c
+.endfor
 .endif
 .if !defined(WITHOUT_NLS)
 	(cd ${WRKSRC}/qtiplot/translations/ && ${COPYTREE_SHARE} '*.qm' ${DATADIR}/translations)
diff -ruN --exclude=CVS /usr/ports/math/qtiplot/pkg-plist /home/makc/porting/ports/math/qtiplot/pkg-plist
--- /usr/ports/math/qtiplot/pkg-plist	2007-07-28 19:39:31.000000000 +0400
+++ /home/makc/porting/ports/math/qtiplot/pkg-plist	2007-10-11 01:48:33.000000000 +0400
@@ -3,6 +3,8 @@
 %%DATADIR%%/fitPlugins/libfitRational1.so
 %%DATADIR%%/qtiplot
 %%DATADIR%%/qtiplot.png
+%%PYTHON%%%%DATADIR%%/qtiUtil.py
+%%PYTHON%%%%DATADIR%%/qtiUtil.pyc
 %%PYTHON%%%%DATADIR%%/qtiplotrc.py
 %%PYTHON%%%%DATADIR%%/qtiplotrc.pyc
 %%NLS%%%%DATADIR%%/translations/qtiplot_de.qm


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



More information about the freebsd-ports-bugs mailing list