pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/editors/manedit Added support for installation to DEST...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/64a5209c85d0
branches:  trunk
changeset: 537214:64a5209c85d0
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Fri Jan 04 23:20:56 2008 +0000

description:
Added support for installation to DESTDIR.

diffstat:

 editors/manedit/Makefile |  22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diffs (47 lines):

diff -r 1dbc245ea4aa -r 64a5209c85d0 editors/manedit/Makefile
--- a/editors/manedit/Makefile  Fri Jan 04 22:31:56 2008 +0000
+++ b/editors/manedit/Makefile  Fri Jan 04 23:20:56 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2007/12/10 01:14:41 obache Exp $
+# $NetBSD: Makefile,v 1.30 2008/01/04 23:20:56 heinz Exp $
 #
 
 DISTNAME=      manedit-0.8.1
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://wolfpack.twu.net/ManEdit/
 COMMENT=       UNIX Manual (man, manpage) page editor, viewer, and browser for X11
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/${DISTNAME}/manedit
 
 USE_LANGUAGES= c c++
@@ -23,18 +25,20 @@
 INSTALLATION_DIRS_FROM_PLIST=  yes
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/manedit ${PREFIX}/bin
-       ${INSTALL_SCRIPT} ${WRKSRC}/utils/manview.sh ${PREFIX}/bin/manview
-       ${INSTALL_SCRIPT} ${WRKSRC}/utils/manwrap.sh ${PREFIX}/bin/manwrap
-       ${INSTALL_MAN} ${WRKSRC}/manedit.1 ${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_PROGRAM} ${WRKSRC}/manedit ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKSRC}/utils/manview.sh                    \
+               ${DESTDIR}${PREFIX}/bin/manview
+       ${INSTALL_SCRIPT} ${WRKSRC}/utils/manwrap.sh                    \
+               ${DESTDIR}${PREFIX}/bin/manwrap
+       ${INSTALL_MAN} ${WRKSRC}/manedit.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
        ${INSTALL_MAN} ${WRKSRC}/help/manpage_writing_procedures        \
-               ${PREFIX}/${PKGMANDIR}/man7/manpage_writing_procedures.7
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/manpage_writing_procedures.7
        ${INSTALL_MAN} ${WRKSRC}/help/manpage_xml_reference             \
-               ${PREFIX}/${PKGMANDIR}/man7/manpage_xml_reference.7
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/manpage_xml_reference.7
        cd ${WRKSRC}/templates && ${INSTALL_DATA} *.mpt                 \
-               ${PREFIX}/share/manedit/templates
+               ${DESTDIR}${PREFIX}/share/manedit/templates
        cd ${WRKSRC} && ${INSTALL_DATA} manedit.xpm                     \
-               ${PREFIX}/share/manedit/icons
+               ${DESTDIR}${PREFIX}/share/manedit/icons
 
 .include "../../x11/gtk/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index