Add a .desktop file, from Debian.

Original diff from Donovan Watteau <tsoomi AT gmail DOT com> on ports@
Small tweaks by me.
ok sthen@
This commit is contained in:
bcallah 2014-02-03 17:56:54 +00:00
parent 756caa5195
commit 95929b3759
3 changed files with 32 additions and 5 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.67 2013/04/06 12:29:45 sthen Exp $
# $OpenBSD: Makefile,v 1.68 2014/02/03 17:56:54 bcallah Exp $
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,14 +17,15 @@ 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 \
textproc/enchant \
textproc/aspell/core
WANTLIB += QtGui>=8 aspell c m pthread stdc++ z
WANTLIB += lib/qt4/QtGui>=8 aspell c m pthread stdc++ z
WANTLIB += boost_regex-mt>=1 boost_signals-mt>=1
WANTLIB += glib-2.0 gmodule-2.0 enchant
@ -53,4 +54,11 @@ pre-configure:
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
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/lyx.desktop \
${PREFIX}/share/applications/lyx.desktop
.include <bsd.port.mk>

View File

@ -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=${TRUEPREFIX}/share/pixmaps/lyx.png
StartupNotify=false
StartupWMClass=Lyx
Terminal=false
Categories=Office;WordProcessor;Qt;
MimeType=text/x-lyx;application/x-lyx;

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.19 2013/01/02 20:29:49 landry Exp $
@comment $OpenBSD: PLIST,v 1.20 2014/02/03 17:56:54 bcallah Exp $
@pkgpath print/lyx,qt
@pkgpath print/lyx,xforms
@bin bin/lyx
@ -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