Add a .desktop file for the port. An upstream version will show up in the 2.1.x

series. Based on some initial work done by Denny Lin [1].

PR:		164076 [1]
Submitted by:	Denny Lin <dennylin93@hs.ntnu.edu.tw>
Reviewed by:	avilla
This commit is contained in:
Raphael Kubo da Costa 2012-01-29 00:03:17 +00:00
parent 7c76c7fad5
commit bb58f34740
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289992
3 changed files with 31 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= lyx
PORTVERSION= ${MAJOR_VERSION}.${MINOR_VERSION}
PORTREVISION= 1
CATEGORIES= print editors
MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/${MAJOR_VERSION}.x/ \
http://www-ftp.lip6.fr/ftp/pub/lyx/stable/${MAJOR_VERSION}.x/ \
@ -31,6 +32,7 @@ USE_XZ= yes
USE_GMAKE= yes
USE_QT_VER= 4
QT_COMPONENTS= corelib gui moc_build uic_build rcc_build
USE_GNOME= desktopfileutils
USE_PYTHON= yes
USE_PERL= yes
GNU_CONFIGURE= yes
@ -78,6 +80,14 @@ PLIST_SUB+= NLS=""
.endif
post-install:
# Manually install the 48x48 icon and .desktop file.
# Will not be needed in the 2.1 series, see LyX tickets 2820 and 7919.
${MKDIR} ${LOCALBASE}/share/icons/hicolor/48x48/apps
${MKDIR} ${LOCALBASE}/share/applications
${INSTALL_DATA} ${WRKSRC}/lib/images/lyx.png ${LOCALBASE}/share/icons/hicolor/48x48/apps
${INSTALL_DATA} ${FILESDIR}/lyx.desktop ${LOCALBASE}/share/applications
${LOCALBASE}/bin/update-desktop-database --quiet
@${CAT} ${PKGMESSAGE}
.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=lyx
StartupNotify=false
StartupWMClass=Lyx
Terminal=false
Categories=Office;WordProcessor;Qt;
MimeType=text/x-lyx;application/x-lyx;

View File

@ -32,6 +32,8 @@ bin/tex2lyx
%%NLS%%share/locale/uk/LC_MESSAGES/lyx.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/lyx.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/lyx.mo
share/applications/lyx.desktop
share/icons/hicolor/48x48/apps/lyx.png
%%DATADIR%%/autocorrect
%%DATADIR%%/CREDITS
%%DATADIR%%/bind/aqua.bind
@ -1861,5 +1863,10 @@ bin/tex2lyx
@dirrm %%DATADIR%%/bind/de
@dirrm %%DATADIR%%/bind
@dirrm %%DATADIR%%
@dirrmtry share/icons/hicolor/48x48/apps
@dirrmtry share/icons/hicolor/48x48
@dirrmtry share/icons/hicolor
@dirrmtry share/icons
@dirrmtry share/applications
%%NLS%%@dirrmtry share/locale/ia/LC_MESSAGES/
%%NLS%%@dirrmtry share/locale/ia