pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/wsbasic Full DESTDIR support and use REPLACE_INTE...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/277519a9a8cf
branches:  trunk
changeset: 537164:277519a9a8cf
user:      ghen <ghen%pkgsrc.org@localhost>
date:      Fri Jan 04 12:17:16 2008 +0000

description:
Full DESTDIR support and use REPLACE_INTERPRETER framework instead of SUBST.

diffstat:

 lang/wsbasic/Makefile |  37 ++++++++++++++++++++-----------------
 1 files changed, 20 insertions(+), 17 deletions(-)

diffs (49 lines):

diff -r deca17cc1087 -r 277519a9a8cf lang/wsbasic/Makefile
--- a/lang/wsbasic/Makefile     Fri Jan 04 12:12:28 2008 +0000
+++ b/lang/wsbasic/Makefile     Fri Jan 04 12:17:16 2008 +0000
@@ -1,25 +1,28 @@
-# $NetBSD: Makefile,v 1.4 2006/06/01 21:03:43 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2008/01/04 12:17:16 ghen Exp $
 
-DISTNAME=      wsbasic-1_2_5
-PKGNAME=       ${DISTNAME:S/_/./g}
-CATEGORIES=    lang
-MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=wsbasic/}
+DISTNAME=              wsbasic-1_2_5
+PKGNAME=               ${DISTNAME:S/_/./g}
+CATEGORIES=            lang
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=wsbasic/}
+
+MAINTAINER=            ghen%NetBSD.org@localhost
+HOMEPAGE=              http://wsbasic.sourceforge.net/
+COMMENT=               Simple BASIC interpreter
 
-MAINTAINER=    ghen%NetBSD.org@localhost
-HOMEPAGE=      http://wsbasic.sourceforge.net/
-COMMENT=       Simple BASIC interpreter
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_LANGUAGES=         c++
 
-USE_LANGUAGES= c++
+REPLACE_INTERPRETER+=  wsbasic
+REPLACE.wsbasic.old=   \.\./wsbasic
+REPLACE.wsbasic.new=   ${PREFIX}/bin/wsbasic
+REPLACE_FILES.wsbasic= ${WRKSRC}/scripts/*
 
-SUBST_CLASSES+=                        interpreter
-SUBST_STAGE.interpreter=       pre-install
-SUBST_FILES.interpreter=       scripts/*.b
-SUBST_SED.interpreter=         -e 's,^\#!\.\./wsbasic,\#!${PREFIX}/bin/wsbasic,'
+INSTALLATION_DIRS=     bin share/wsbasic
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/wsbasic ${PREFIX}/bin/
-       ${INSTALL_SCRIPT_DIR} ${PREFIX}/share/wsbasic
-       ${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.b ${PREFIX}/share/wsbasic/
-       ${INSTALL_DATA} ${WRKSRC}/scripts/*.txt ${PREFIX}/share/wsbasic/
+       ${INSTALL_PROGRAM} ${WRKSRC}/wsbasic ${DESTDIR}${PREFIX}/bin/
+       ${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.b ${DESTDIR}${PREFIX}/share/wsbasic/
+       ${INSTALL_DATA} ${WRKSRC}/scripts/*.txt ${DESTDIR}${PREFIX}/share/wsbasic/
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index