pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xfce4-notifyd xfce4-notifyd: Simplify and fix xfce...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55e6f73dc0a6
branches:  trunk
changeset: 308762:55e6f73dc0a6
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu May 31 09:16:46 2018 +0000

description:
xfce4-notifyd: Simplify and fix xfce4-notifyd.desktop handling.

diffstat:

 x11/xfce4-notifyd/Makefile |  22 +++++++++++-----------
 x11/xfce4-notifyd/PLIST    |   3 ++-
 2 files changed, 13 insertions(+), 12 deletions(-)

diffs (57 lines):

diff -r 20ef26c65b19 -r 55e6f73dc0a6 x11/xfce4-notifyd/Makefile
--- a/x11/xfce4-notifyd/Makefile        Thu May 31 07:46:32 2018 +0000
+++ b/x11/xfce4-notifyd/Makefile        Thu May 31 09:16:46 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2018/05/29 21:24:20 youri Exp $
+# $NetBSD: Makefile,v 1.14 2018/05/31 09:16:46 jperkin Exp $
 #
 
 .include "../../meta-pkgs/xfce4/Makefile.common"
@@ -13,20 +13,20 @@
 TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen
 
 DESKTOP_FILE=  xfce4-notifyd.desktop
+EGDIR=         share/examples/xfce4-notifyd
+MAKE_DIRS+=    ${PKG_SYSCONFDIR}/xdg/autostart
+CONF_FILES+=   ${EGDIR}/${DESKTOP_FILE} \
+               ${PKG_SYSCONFDIR}/xdg/autostart/${DESKTOP_FILE}
 
-SUBST_CLASSES=         prefix
-SUBST_MESSAGE.prefix=  Fixing path
-SUBST_STAGE.prefix=    pre-install
-SUBST_FILES.prefix=    xfce4-notifyd/${DESKTOP_FILE}
-SUBST_VARS.prefix=     PREFIX
+INSTALLATION_DIRS+=    ${EGDIR}
 
-pre-configure:
-       cp ${FILESDIR}/${DESKTOP_FILE} \
-           ${WRKSRC}/xfce4-notifyd/${DESKTOP_FILE}
+post-build:
+       ${SED} ${FILES_SUBST_SED} ${FILESDIR}/${DESKTOP_FILE} \
+           > ${WRKSRC}/${DESKTOP_FILE}
 
 post-install:
-       ${INSTALL_DATA} ${WRKSRC}/xfce4-notifyd/${DESKTOP_FILE} \
-           ${PKG_SYSCONFDIR}/xdg/autostart/${DESKTOP_FILE}
+       ${INSTALL_DATA} ${WRKSRC}/${DESKTOP_FILE} \
+           ${DESTDIR}${PREFIX}/${EGDIR}/${DESKTOP_FILE}
 
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../x11/libxfce4ui/buildlink3.mk"
diff -r 20ef26c65b19 -r 55e6f73dc0a6 x11/xfce4-notifyd/PLIST
--- a/x11/xfce4-notifyd/PLIST   Thu May 31 07:46:32 2018 +0000
+++ b/x11/xfce4-notifyd/PLIST   Thu May 31 09:16:46 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2018/05/15 22:11:39 youri Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/05/31 09:16:46 jperkin Exp $
 bin/xfce4-notifyd-config
 lib/systemd/user/xfce4-notifyd.service
 lib/xfce4/notifyd/xfce4-notifyd
@@ -6,6 +6,7 @@
 man/man1/xfce4-notifyd-config.1
 share/applications/xfce4-notifyd-config.desktop
 share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service
+share/examples/xfce4-notifyd/xfce4-notifyd.desktop
 share/icons/hicolor/16x16/apps/xfce4-notifyd.png
 share/icons/hicolor/24x24/apps/xfce4-notifyd.png
 share/icons/hicolor/32x32/apps/xfce4-notifyd.png



Home | Main Index | Thread Index | Old Index