From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 13 07:00:21 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 198B4106566B for ; Fri, 13 Jan 2012 07:00:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EDB108FC0A for ; Fri, 13 Jan 2012 07:00:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0D70Kiw006676 for ; Fri, 13 Jan 2012 07:00:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0D70K98006675; Fri, 13 Jan 2012 07:00:20 GMT (envelope-from gnats) Resent-Date: Fri, 13 Jan 2012 07:00:20 GMT Resent-Message-Id: <201201130700.q0D70K98006675@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Denny Lin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEAF2106564A for ; Fri, 13 Jan 2012 06:54:27 +0000 (UTC) (envelope-from dennylin93@hs.ntnu.edu.tw) Received: from mail.hs.ntnu.edu.tw (mail.hs.ntnu.edu.tw [140.131.149.3]) by mx1.freebsd.org (Postfix) with ESMTP id 812148FC08 for ; Fri, 13 Jan 2012 06:54:27 +0000 (UTC) Received: by mail.hs.ntnu.edu.tw (Postfix, from userid 1001) id B48901C643E; Fri, 13 Jan 2012 14:54:24 +0800 (CST) Message-Id: <20120113065424.B48901C643E@mail.hs.ntnu.edu.tw> Date: Fri, 13 Jan 2012 14:54:24 +0800 (CST) From: Denny Lin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/164076: [PATCH] Add lyx.desktop for print/lyx X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Denny Lin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 07:00:21 -0000 >Number: 164076 >Category: ports >Synopsis: [PATCH] Add lyx.desktop for print/lyx >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 13 07:00:20 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Denny Lin >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD cnmc32.hs.ntnu.edu.tw 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r228819M: Fri Dec 23 08:56:11 CST 2011 root@cnmc32.hs.ntnu.edu.tw:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Add desktop entry for print/lyx. >How-To-Repeat: >Fix: --- lyx.patch begins here --- diff -ruN lyx.orig/Makefile lyx/Makefile --- lyx.orig/Makefile 2012-01-13 14:26:34.000000000 +0800 +++ lyx/Makefile 2012-01-13 14:36:35.000000000 +0800 @@ -77,7 +77,14 @@ PLIST_SUB+= NLS="" .endif +post-extract: + ${SED} -e 's|@PREFIX@|${PREFIX}|' \ + ${FILESDIR}/lyx.desktop.in > ${WRKDIR}/lyx.desktop + post-install: + ${MKDIR} ${PREFIX}/share/applications/ + ${INSTALL_DATA} ${WRKDIR}/lyx.desktop \ + ${PREFIX}/share/applications/ @${CAT} ${PKGMESSAGE} .include diff -ruN lyx.orig/files/lyx.desktop.in lyx/files/lyx.desktop.in --- lyx.orig/files/lyx.desktop.in 1970-01-01 08:00:00.000000000 +0800 +++ lyx/files/lyx.desktop.in 2012-01-13 14:29:51.000000000 +0800 @@ -0,0 +1,14 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=LyX +GenericName=Document Processor +Comment=Document Processor using LaTeX as backend +Exec=lyx %F +TryExec=lyx +Icon=@PREFIX@/share/lyx/images/lyx.png +StartupNotify=false +StartupWMClass=Lyx +Terminal=false +Type=Application +Categories=Office;WordProcessor;Qt; +MimeType=text/x-lyx;application/x-lyx; diff -ruN lyx.orig/pkg-plist lyx/pkg-plist --- lyx.orig/pkg-plist 2012-01-13 14:26:34.000000000 +0800 +++ lyx/pkg-plist 2012-01-13 14:49:07.000000000 +0800 @@ -1,6 +1,7 @@ bin/lyx bin/lyxclient bin/tex2lyx +share/applications/lyx.desktop %%NLS%%share/locale/ar/LC_MESSAGES/lyx.mo %%NLS%%share/locale/ca/LC_MESSAGES/lyx.mo %%NLS%%share/locale/cs/LC_MESSAGES/lyx.mo @@ -1861,5 +1862,6 @@ @dirrm %%DATADIR%%/bind/de @dirrm %%DATADIR%%/bind @dirrm %%DATADIR%% +@dirrmtry share/applications %%NLS%%@dirrmtry share/locale/ia/LC_MESSAGES/ %%NLS%%@dirrmtry share/locale/ia --- lyx.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: