Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2012 14:54:24 +0800 (CST)
From:      Denny Lin <dennylin93@hs.ntnu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/164076: [PATCH] Add lyx.desktop for print/lyx
Message-ID:  <20120113065424.B48901C643E@mail.hs.ntnu.edu.tw>
Resent-Message-ID: <201201130700.q0D70K98006675@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.mk>
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120113065424.B48901C643E>