pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/bwbasic DESTDIR support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7d0f3cbb450a
branches: trunk
changeset: 555442:7d0f3cbb450a
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Mar 02 14:27:11 2009 +0000
description:
DESTDIR support.
diffstat:
lang/bwbasic/Makefile | 15 +++++++++------
lang/bwbasic/distinfo | 4 ++--
lang/bwbasic/patches/patch-aa | 11 ++++++++++-
3 files changed, 21 insertions(+), 9 deletions(-)
diffs (76 lines):
diff -r 798d7bed2320 -r 7d0f3cbb450a lang/bwbasic/Makefile
--- a/lang/bwbasic/Makefile Mon Mar 02 13:54:55 2009 +0000
+++ b/lang/bwbasic/Makefile Mon Mar 02 14:27:11 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/01/07 09:13:56 rillig Exp $
+# $NetBSD: Makefile,v 1.12 2009/03/02 14:27:11 joerg Exp $
PKGNAME= ${DISTNAME:=pl2}
DISTNAME= bwbasic-2.20
@@ -9,6 +9,8 @@
MAINTAINER= jspath%bcpl.net@localhost
COMMENT= The Bywater Basic interpreter
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/bwbasic-2.20p2
BWBASIC_WRKSRC= ${WRKSRC}/bwbasic-2.20
DIST_SUBDIR= ${PKGNAME_NOREV}
@@ -18,15 +20,16 @@
SHARE_DIR= ${PREFIX}/share/bwbasic
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${SHARE_DIR}
+
pre-patch:
${CP} ${WRKSRC}/bwb-2.20-patch01/* ${BWBASIC_WRKSRC}
${CP} ${WRKSRC}/bwb-2.20-patch02/* ${BWBASIC_WRKSRC}
post-install:
- ${INSTALL_DATA_DIR} ${SHARE_DIR}
- ${CP} -r ${BWBASIC_WRKSRC}/bwbtest ${SHARE_DIR}
- ${FIND} ${SHARE_DIR} -type d -print | ${XARGS} ${CHMOD} ${BINMODE}
- ${FIND} ${SHARE_DIR} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
- ${INSTALL_MAN} ${BWBASIC_WRKSRC}/bwbasic.doc ${PREFIX}/${PKGMANDIR}/man1/bwbasic.1
+ ${CP} -r ${BWBASIC_WRKSRC}/bwbtest ${DESTDIR}${SHARE_DIR}
+ ${FIND} ${DESTDIR}${SHARE_DIR} -type d -print | ${XARGS} ${CHMOD} ${BINMODE}
+ ${FIND} ${DESTDIR}${SHARE_DIR} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
+ ${INSTALL_MAN} ${BWBASIC_WRKSRC}/bwbasic.doc ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/bwbasic.1
.include "../../mk/bsd.pkg.mk"
diff -r 798d7bed2320 -r 7d0f3cbb450a lang/bwbasic/distinfo
--- a/lang/bwbasic/distinfo Mon Mar 02 13:54:55 2009 +0000
+++ b/lang/bwbasic/distinfo Mon Mar 02 14:27:11 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2005/12/30 23:29:36 joerg Exp $
+$NetBSD: distinfo,v 1.8 2009/03/02 14:27:12 joerg Exp $
SHA1 (bwbasic-2.20pl2/bwbasic-2.20.tar.Z) = b96ff440c573b9aac17dfd90830e3defa46a5592
RMD160 (bwbasic-2.20pl2/bwbasic-2.20.tar.Z) = a6ae5cdde2aa18228258314a34b776d3681cb0e8
Size (bwbasic-2.20pl2/bwbasic-2.20.tar.Z) = 485971 bytes
-SHA1 (patch-aa) = 45a1ff2c8e76a8f8c7d1c1f4876acb8e0bb55add
+SHA1 (patch-aa) = 6b955a62001cb357a960202842c7f08930b70448
SHA1 (patch-ab) = 7c2efa205c5866733bfd99dbd102aa517afc819f
SHA1 (patch-ac) = 286c3f91c90b33d1bab2de1581900129661ca74a
diff -r 798d7bed2320 -r 7d0f3cbb450a lang/bwbasic/patches/patch-aa
--- a/lang/bwbasic/patches/patch-aa Mon Mar 02 13:54:55 2009 +0000
+++ b/lang/bwbasic/patches/patch-aa Mon Mar 02 14:27:11 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2005/11/03 22:19:01 rillig Exp $
+$NetBSD: patch-aa,v 1.3 2009/03/02 14:27:12 joerg Exp $
--- bwbasic-2.20/Makefile.in.orig Sat Nov 25 14:32:18 1995
+++ bwbasic-2.20/Makefile.in Sun Feb 6 16:12:49 2000
@@ -16,3 +16,12 @@
# Revised by JBV
#LDFLAGS = -s
+@@ -75,7 +76,7 @@ $(OFILES): $(HFILES)
+ $(CC) -c $(CPPFLAGS) -I$(srcdir) $(DEFS) $(CFLAGS) $<
+
+ install: all
+- $(INSTALL_PROGRAM) bwbasic $(bindir)/bwbasic
++ $(INSTALL_PROGRAM) bwbasic ${DESTDIR}$(bindir)/bwbasic
+
+ uninstall:
+ rm -f $(bindir)/bwbasic
Home |
Main Index |
Thread Index |
Old Index