Hi,

The following diff adds a .desktop file for LyX (taken from Debian).
There's also a small line length fix for DESCR.

Index: Makefile
===================================================================
RCS file: /cvs/ports/print/lyx/Makefile,v
retrieving revision 1.67
diff -u -p -r1.67 Makefile
--- Makefile    6 Apr 2013 12:29:45 -0000       1.67
+++ Makefile    27 Jan 2014 19:45:07 -0000
@@ -3,7 +3,7 @@
 COMMENT=       graphical frontend for LaTeX (nearly WYSIWYG)
 
 DISTNAME=      lyx-2.0.4
-REVISION=      0
+REVISION=      1
 CATEGORIES=    print editors
 
 HOMEPAGE=      http://www.lyx.org/
@@ -17,7 +17,8 @@ PERMIT_PACKAGE_CDROM= Yes
 MODULES=       devel/gettext lang/python x11/qt4
 
 RUN_DEPENDS=   print/texlive/base \
-               graphics/ImageMagick
+               graphics/ImageMagick \
+               devel/desktop-file-utils
 
 LIB_DEPENDS=   ${MODQT4_LIB_DEPENDS}>=4.5.3 \
                devel/boost \
@@ -52,5 +53,11 @@ pre-configure:
                ${WRKSRC}/src/graphics/GraphicsConverter.cpp
        find ${WRKSRC} -name "*.py" -print0 | xargs -0 \
                perl -pi -e "s,#! ?/usr/bin/(env )?python,#!${MODPY_BIN},"
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
+       ${INSTALL_DATA} ${WRKSRC}/lib/images/lyx.png ${PREFIX}/share/pixmaps
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
+       ${INSTALL_DATA} ${FILESDIR}/lyx.desktop ${PREFIX}/share/applications
 
 .include <bsd.port.mk>
Index: files/lyx.desktop
===================================================================
RCS file: files/lyx.desktop
diff -N files/lyx.desktop
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ files/lyx.desktop   27 Jan 2014 19:45:07 -0000
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=LyX
+GenericName=Document Processor
+Comment=High level LaTeX frontend
+Exec=lyx %F
+TryExec=lyx
+Icon=lyx
+StartupNotify=false
+StartupWMClass=Lyx
+Terminal=false
+Categories=Office;WordProcessor;Qt;
+MimeType=text/x-lyx;application/x-lyx;
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/print/lyx/pkg/DESCR,v
retrieving revision 1.8
diff -u -p -r1.8 DESCR
--- pkg/DESCR   4 Jun 2010 22:43:33 -0000       1.8
+++ pkg/DESCR   27 Jan 2014 19:45:07 -0000
@@ -1,5 +1,5 @@
-LyX is a document processor that encourages an approach to writing
-based on the structure of your documents and not simply their appearance.
+LyX is a document processor that encourages an approach to writing based
+on the structure of your documents and not simply their appearance.
 Combining the power and flexibility of TeX/LaTeX with the ease of use
 of a graphical interface results in world-class support for creation of
 mathematical content (via a fully integrated equation editor) and
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/print/lyx/pkg/PLIST,v
retrieving revision 1.19
diff -u -p -r1.19 PLIST
--- pkg/PLIST   2 Jan 2013 20:29:49 -0000       1.19
+++ pkg/PLIST   27 Jan 2014 19:45:08 -0000
@@ -7,6 +7,7 @@
 @man man/man1/lyx.1
 @man man/man1/lyxclient.1
 @man man/man1/tex2lyx.1
+share/applications/lyx.desktop
 share/locale/ar/LC_MESSAGES/lyx.mo
 share/locale/ca/LC_MESSAGES/lyx.mo
 share/locale/cs/LC_MESSAGES/lyx.mo
@@ -1829,3 +1830,7 @@ share/lyx/ui/stdcontext.inc
 share/lyx/ui/stdmenus.inc
 share/lyx/ui/stdtoolbars.inc
 share/lyx/unicodesymbols
+share/pixmaps/
+share/pixmaps/lyx.png
+@exec %D/bin/update-desktop-database
+@unexec-delete %D/bin/update-desktop-database

Reply via email to