aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes/gnome-art
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-04-27 14:01:54 +0800
committerahze <ahze@FreeBSD.org>2005-04-27 14:01:54 +0800
commit24751ddc875525d65aae67b8cc88714b636efa79 (patch)
tree6ae2a991e7e7dab59900d908405ab9361c123641 /x11-themes/gnome-art
parent951ca65b5f7b279998eba779cac5425bd9f00f38 (diff)
downloadfreebsd-ports-gnome-24751ddc875525d65aae67b8cc88714b636efa79.tar.gz
freebsd-ports-gnome-24751ddc875525d65aae67b8cc88714b636efa79.tar.zst
freebsd-ports-gnome-24751ddc875525d65aae67b8cc88714b636efa79.zip
- Install .desktop file
Diffstat (limited to 'x11-themes/gnome-art')
-rw-r--r--x11-themes/gnome-art/Makefile9
-rw-r--r--x11-themes/gnome-art/files/gnome-art.desktop.in10
-rw-r--r--x11-themes/gnome-art/pkg-plist2
3 files changed, 21 insertions, 0 deletions
diff --git a/x11-themes/gnome-art/Makefile b/x11-themes/gnome-art/Makefile
index 00e65f10ddf6..43b20a86d37f 100644
--- a/x11-themes/gnome-art/Makefile
+++ b/x11-themes/gnome-art/Makefile
@@ -19,11 +19,20 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/${PORTNAME}
USE_RUBY= yes
USE_REINPLACE= yes
USE_RUBY_SETUP= yes
+GNOMEART_ICON= ${DATADIR}/glade/pixmaps/gnome-graphics.png
post-patch:
+ @${SED} -e 's|%%COMMENT%%|${COMMENT}|; \
+ s|%%GNOMEART_ICON%%|${GNOMEART_ICON}|' \
+ < ${FILESDIR}/gnome-art.desktop.in \
+ > ${WRKDIR}/gnome-art.desktop
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
${WRKSRC}/lib/gnome-art/ui/main_window.rb \
${WRKSRC}/lib/gnome-art/ui/download_dialog.rb
@${FIND} ${WRKSRC} -name '*.bak' -delete
+post-install:
+ ${MKDIR} ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKDIR}/gnome-art.desktop ${PREFIX}/share/applications
+
.include <bsd.port.mk>
diff --git a/x11-themes/gnome-art/files/gnome-art.desktop.in b/x11-themes/gnome-art/files/gnome-art.desktop.in
new file mode 100644
index 000000000000..1f2cb75f7c52
--- /dev/null
+++ b/x11-themes/gnome-art/files/gnome-art.desktop.in
@@ -0,0 +1,10 @@
+# $FreeBSD
+[Desktop Entry]
+Encoding=UTF-8
+Name=Theme Downloader
+Comment=%%COMMENT%%
+Icon=%%GNOMEART_ICON%%
+Exec=gnome-art
+Terminal=false
+Type=Application
+Categories=Application;Settings;AdvancedSettings;
diff --git a/x11-themes/gnome-art/pkg-plist b/x11-themes/gnome-art/pkg-plist
index 75ba65070422..5f962d52da6d 100644
--- a/x11-themes/gnome-art/pkg-plist
+++ b/x11-themes/gnome-art/pkg-plist
@@ -10,9 +10,11 @@ bin/gnome-art
%%RUBY_SITELIBDIR%%/gnome-art/gnome_art.rb
%%RUBY_SITELIBDIR%%/gnome-art/ui/main_window.rb
%%RUBY_SITELIBDIR%%/gnome-art/ui/download_dialog.rb
+share/applications/gnome-art.desktop
@dirrm %%RUBY_SITELIBDIR%%/gnome-art/ui
@dirrm %%RUBY_SITELIBDIR%%/gnome-art
@dirrm %%DATADIR%%/glade/pixmaps
@dirrm %%DATADIR%%/glade
@dirrm %%DATADIR%%/images
@dirrm %%DATADIR%%
+@unexec rmdir %D/share/applications 2>/dev/null || true