Date: Mon, 19 Jan 2009 15:27:30 GMT From: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/130747: [FIX] cad/qcad path to qt assistant Message-ID: <200901191527.n0JFRUK1058466@www.freebsd.org> Resent-Message-ID: <200901191530.n0JFU1A0060619@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901191527.n0JFRUK1058466>