pkgsrc-Bugs archive

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

pkg/39907: patch: DESTDIR support for x11/startup-notification (required by 187 packages)



>Number:         39907
>Category:       pkg
>Synopsis:       patch: DESTDIR support for x11/startup-notification (required 
>by 187 packages)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 12 20:00:01 +0000 2008
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #3: 
Sun Oct 19 20:54:51 EEST 2008 
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Patch is below
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/startup-notification/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile    21 Mar 2007 22:32:31 -0000      1.19
+++ Makefile    12 Nov 2008 19:56:45 -0000
@@ -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