- install kde/gnome .desktop files without detecting kde/gnome present at

buildtime, and remove these files cleanly when package is deinstalled.

PR:		ports/76812
Submitted by:	Jacek Pelka <jacek@combit.com.pl> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-01-29 23:39:22 +00:00
parent b971dd6c3c
commit 0f76e101e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127669
2 changed files with 10 additions and 13 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= kadu
PORTVERSION= 0.3.9
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= polish net
MASTER_SITES= http://www.kadu.net/download/stable/
@ -34,16 +34,8 @@ USE_QT_VER= 3
WRKSRC= ${WRKDIR}/${PORTNAME}
WANT_GNOME= yes
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomehier}!=""
PLIST_SUB+= GNOME:=""
.else
PLIST_SUB+= GNOME:="@comment "
.endif
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} " **************************************************************"
@ -53,9 +45,9 @@ pre-everything::
@${ECHO_MSG}
post-install:
.if ${HAVE_GNOME:Mgnomehier}!=""
${MKDIR} ${X11BASE}/share/gnome/apps/Internet
${INSTALL_DATA} ${WRKSRC}/kadu/kadu.desktop ${X11BASE}/share/gnome/apps/Internet
.endif
${MKDIR} ${LOCALBASE}/share/applnk/Internet
${INSTALL_DATA} ${WRKSRC}/kadu/kadu.desktop ${LOCALBASE}/share/applnk/Internet
.include <bsd.port.post.mk>

View file

@ -461,5 +461,10 @@ share/icons/hicolor/48x48/apps/kadu.png
@dirrm include/kadu
@cwd %%LOCALBASE%%
share/applnk/Internet/kadu.desktop
%%GNOME:%%@cwd %%X11BASE%%
%%GNOME:%%share/gnome/apps/Internet/kadu.desktop
@unexec rmdir %D/share/applnk/Internet 2>/dev/null || true
@unexec rmdir %D/share/applnk 2>/dev/null || true
@cwd %%X11BASE%%
share/gnome/apps/Internet/kadu.desktop
@unexec rmdir %D/share/gnome/apps/Internet 2>/dev/null || true
@unexec rmdir %D/share/gnome/apps 2>/dev/null || true
@unexec rmdir %D/share/gnome 2>/dev/null || true