ports/130747: [FIX] cad/qcad path to qt assistant
Alexey Shuvaev
shuvaev at physik.uni-wuerzburg.de
Mon Jan 19 15:30:02 UTC 2009
>Number: 130747
>Category: ports
>Synopsis: [FIX] cad/qcad path to qt assistant
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 19 15:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Alexey Shuvaev
>Release: 8.0-CURRENT
>Organization:
University of Wuerzburg
>Environment:
FreeBSD wep4035 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Wed Jan 14 22:02:23 CET 2009 root at wep4035:/usr/obj/usr/src/sys/NOUSB amd64
>Description:
Fix the paths to qt assistant and qcad manual that are being encoded
into the qcad binary.
Without this patch it is not possible to launch manual from qcad.
The (typical) error printed in qcad's command line is:
Cannot start Qt Assistant '/home/lexx/bin/assistant -server -profile /qcaddoc.adp'
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN qcad.orig/Makefile qcad/Makefile
--- qcad.orig/Makefile 2008-08-08 18:19:31.000000000 +0200
+++ qcad/Makefile 2009-01-19 16:07:41.000000000 +0100
@@ -7,7 +7,7 @@
PORTNAME= qcad
PORTVERSION= 2.0.5.0.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= cad
MASTER_SITES= ftp://www.ribbonsoft.com/archives/qcad/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}-community.src
@@ -34,6 +34,11 @@
CFLAGS+= -O0
.endif
+post-patch:
+ ${REINPLACE_CMD} -e 's:RS_SYSTEM->getAppDir()+"/bin":"${PREFIX}/bin":' \
+ -e 's:RS_SYSTEM->getDocPath() + "/qcaddoc.adp":"${DOCSDIR}/qcaddoc.adp":' \
+ ${WRKSRC}/qcad/src/qc_applicationwindow.cpp
+
do-build:
cd ${WRKSRC}/scripts && ${SETENV} ${MAKE_ENV} bash ./build_qcad.sh notrans
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list