From owner-freebsd-openoffice@FreeBSD.ORG Sun May 7 04:14:08 2006 Return-Path: X-Original-To: openoffice@freebsd.org Delivered-To: freebsd-openoffice@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC5A116A402 for ; Sun, 7 May 2006 04:14:08 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BB1A43D48 for ; Sun, 7 May 2006 04:14:07 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k474E5ID076720 for ; Sun, 7 May 2006 00:14:05 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: openoffice@freebsd.org Date: Sun, 7 May 2006 00:14:05 -0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200605070014.05428.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1446/Sat May 6 19:46:08 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00, UPPERCASE_25_50 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Subject: [PATCH] Automatically fixup the *.desktop files and hook them into KDE X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 May 2006 04:14:08 -0000 The patch below patches the .desktop files in the share/xdg directory. In addition, if WITH_KDE is defined it creates a symlink to the share/xdg directory in /usr/local/share/applnk that causes the OpenOffice 2.0 applications to show up in the K menu and for the file associations to just work after 'make install' now. Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /host/cvs/usr/cvs/ports/editors/openoffice.org-2.0/Makefile,v retrieving revision 1.230 diff -u -r1.230 Makefile =2D-- Makefile 24 Apr 2006 11:48:15 -0000 1.230 +++ Makefile 7 May 2006 04:12:51 -0000 @@ -237,6 +237,15 @@ @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter @${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST} + @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \ + -e '/^Exec/s/printeradmin/spadmin/' \ + ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop + @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak +.if defined(WITH_KDE) + @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \ + ${PREFIX}/share/applnk/${EXECBASE} + @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST} +.endif @cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIS= T} @cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIS= T} @cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST} =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org