pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/startup-notification Add support for user destinat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a1fedee80fe
branches:  trunk
changeset: 550166:7a1fedee80fe
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Nov 16 14:01:11 2008 +0000

description:
Add support for user destination directory installation.
Patch provided by Aleksey Cheusov in PR pkg/39907..

diffstat:

 x11/startup-notification/Makefile |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 4d000b5907f7 -r 7a1fedee80fe x11/startup-notification/Makefile
--- a/x11/startup-notification/Makefile Sun Nov 16 13:57:02 2008 +0000
+++ b/x11/startup-notification/Makefile Sun Nov 16 14:01:11 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2007/03/21 22:32:31 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2008/11/16 14:01:11 tron Exp $
 
 DISTNAME=              startup-notification-0.9
 CATEGORIES=            x11 gnome
@@ -10,6 +10,7 @@
 COMMENT=               X11 application startup notification library
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 USE_TOOLS+=            pkg-config
 GNU_CONFIGURE=         yes
@@ -17,11 +18,14 @@
 
 PKGCONFIG_OVERRIDE=    libstartup-notification-1.0.pc.in
 
+DOCDIR=                        ${PREFIX}/share/doc/startup-notification
+INSTALLATION_DIRS+=    ${DOCDIR}
+
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/startup-notification
        cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS COPYING ChangeLog NEWS \
                doc/startup-notification.txt \
-               ${PREFIX}/share/doc/startup-notification/
+               ${DESTDIR}${DOCDIR}
 
 BUILDLINK_DEPMETHOD.libXt?=    build
 



Home | Main Index | Thread Index | Old Index