1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add support for stage dir

- Use desktop-file-utils helper
This commit is contained in:
Nicola Vitale 2014-07-12 02:05:07 +00:00
parent 2d65a1d034
commit 87773db6c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361595
2 changed files with 6 additions and 13 deletions

View File

@ -7,7 +7,6 @@ PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME:tl}/${PORTNAME}/${PORTVERSION}
#MASTER_SITE_SUBDIR= ${PORTNAME:tl}/${PORTNAME}/${PORTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= WxWidgets GUI for the computer algebra system maxima
@ -16,8 +15,8 @@ LICENSE= GPLv2
RUN_DEPENDS= maxima:${PORTSDIR}/math/maxima
USES= gettext
USE_GNOME= desktopfileutils libxml2
USES= gettext desktop-file-utils
USE_GNOME= libxml2
USE_WX= 2.8
WX_COMPS= wx
WX_CONF_ARGS= absolute
@ -27,13 +26,10 @@ CONFIGURE_ARGS= --program-prefix=
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,}
NO_STAGE= yes
post-install:
@${LN} -s ${DATADIR}/wxmaxima.png ${PREFIX}/share/pixmaps/wxmaxima.png
@${LN} -s ../wxMaxima/wxmaxima.png ${STAGEDIR}${PREFIX}/share/pixmaps/wxmaxima.png
@${LOCALBASE}/bin/desktop-file-install \
--mode=${SHAREMODE} --dir=${DESKTOPDIR} \
--rebuild-mime-info-cache ${WRKSRC}/${PORTNAME:tl}.desktop
# --rebuild-mime-info-cache ${WRKSRC}/${PORTNAME:tl}.desktop
@${CAT} ${PKGMESSAGE}
--mode=${SHAREMODE} --dir=${STAGEDIR}${DESKTOPDIR} \
${WRKSRC}/${PORTNAME:tl}.desktop
.include <bsd.port.mk>

View File

@ -27,7 +27,4 @@ share/pixmaps/wxmaxima.png
%%DATADIR%%/tips.txt
%%DATADIR%%/wxmathml.lisp
%%DATADIR%%/wxmaxima.png
@dirrm %%DATADIR%%
@dirrmtry %%DESKTOPDIR%%
@exec %%LOCALBASE%%/bin/update-desktop-database -q > /dev/null || /usr/bin/true
@unexec %%LOCALBASE%%/bin/update-desktop-database -q > /dev/null || /usr/bin/true
@dirrmtry %%DATADIR%%