aboutsummaryrefslogtreecommitdiffstats
path: root/polish
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-01-30 07:39:22 +0800
committerpav <pav@FreeBSD.org>2005-01-30 07:39:22 +0800
commit42b8f868fcdee99bd9132c4306b03b1a4d7909f3 (patch)
tree5d09dfecb698769d761be1c5cf7252e7d228f04d /polish
parent06f78f69326217a52a2200b6cd323bb6deac9775 (diff)
downloadfreebsd-ports-gnome-42b8f868fcdee99bd9132c4306b03b1a4d7909f3.tar.gz
freebsd-ports-gnome-42b8f868fcdee99bd9132c4306b03b1a4d7909f3.tar.zst
freebsd-ports-gnome-42b8f868fcdee99bd9132c4306b03b1a4d7909f3.zip
- 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)
Diffstat (limited to 'polish')
-rw-r--r--polish/kadu/Makefile14
-rw-r--r--polish/kadu/pkg-plist9
2 files changed, 10 insertions, 13 deletions
diff --git a/polish/kadu/Makefile b/polish/kadu/Makefile
index a27f0cfc5cd8..d6df55b7ce52 100644
--- a/polish/kadu/Makefile
+++ b/polish/kadu/Makefile
@@ -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>
diff --git a/polish/kadu/pkg-plist b/polish/kadu/pkg-plist
index 874a6929fb71..a145f6a3fe81 100644
--- a/polish/kadu/pkg-plist
+++ b/polish/kadu/pkg-plist
@@ -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