pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/brandybasic Switch to INSTALLATION_DIRS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b63649a2a7e4
branches:  trunk
changeset: 554397:b63649a2a7e4
user:      abs <abs%pkgsrc.org@localhost>
date:      Fri Feb 13 23:36:00 2009 +0000

description:
Switch to INSTALLATION_DIRS

diffstat:

 lang/brandybasic/Makefile |  14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (35 lines):

diff -r 3b7cfa17b39a -r b63649a2a7e4 lang/brandybasic/Makefile
--- a/lang/brandybasic/Makefile Fri Feb 13 23:17:11 2009 +0000
+++ b/lang/brandybasic/Makefile Fri Feb 13 23:36:00 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/03/04 16:38:11 jlam Exp $
+# $NetBSD: Makefile,v 1.17 2009/02/13 23:36:00 abs Exp $
 #
 
 DISTNAME=      b116
@@ -18,20 +18,18 @@
 PKG_DESTDIR_SUPPORT=   user-destdir
 
 WRKSRC=                ${WRKDIR}/brandy-1.0.16
-DOCDIR=                ${PREFIX}/share/doc/brandy
-EXAMPLEDIR=    ${PREFIX}/share/examples/brandy
+DOCDIR=                share/doc/brandy
+EXAMPLEDIR=    share/examples/brandy
 BUILD_TARGET=  nodebug
 
 USE_TOOLS+=            gtar
-INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS=     bin ${DOCDIR} ${EXAMPLEDIR}
 
 do-install:
-       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
-       ${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLEDIR}
        cd ${WRKSRC}/docs && ${GTAR} -cf - `ls |grep -v .orig` | \
-               (cd ${DESTDIR}${DOCDIR} && tar xf -)
+               (cd ${DESTDIR}${PREFIX}/${DOCDIR} && gtar xf -)
        cd ${WRKSRC}/examples && ${GTAR} -cf - [a-z]* | \
-               (cd ${DESTDIR}${EXAMPLEDIR} && tar xf -)
+               (cd ${DESTDIR}${PREFIX}/${EXAMPLEDIR} && gtar xf -)
        ${INSTALL_PROGRAM} ${WRKSRC}/brandy ${DESTDIR}${PREFIX}/bin/brandy
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index