pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/chicken5 chicken5: Update OWN_DIRS after 5.1.0 an...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4258069a54bc
branches:  trunk
changeset: 397908:4258069a54bc
user:      leot <leot%pkgsrc.org@localhost>
date:      Sat Jul 06 21:16:59 2019 +0000

description:
chicken5: Update OWN_DIRS after 5.1.0 and introduce CHICKEN_BINARY_VERSION

In 5.1.0 the binary-version was bumped to 11.  Update OWN_DIRS
accordingly and introduce CHICKEN_BINARY_VERSION variable to
automatically adjust OWN_DIRS and PLIST.

PKGREVISION++

diffstat:

 lang/chicken5/Makefile |  13 +++++-
 lang/chicken5/PLIST    |  92 +++++++++++++++++++++++++-------------------------
 2 files changed, 57 insertions(+), 48 deletions(-)

diffs (142 lines):

diff -r 1428c9e0395c -r 4258069a54bc lang/chicken5/Makefile
--- a/lang/chicken5/Makefile    Sat Jul 06 21:05:25 2019 +0000
+++ b/lang/chicken5/Makefile    Sat Jul 06 21:16:59 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2019/07/02 13:22:40 ryoon Exp $
+# $NetBSD: Makefile,v 1.3 2019/07/06 21:16:59 leot Exp $
 
 DISTNAME=      chicken-5.1.0
+PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  http://code.call-cc.org/releases/${PKGVERSION_NOREV}/
 
@@ -15,7 +16,11 @@
 USE_TOOLS+=            gmake
 UNLIMIT_RESOURCES=     datasize
 
-OWN_DIRS=              ${PREFIX}/lib/chicken ${PREFIX}/lib/chicken/9
+BUILD_DEFS+=           CHICKEN_BINARY_VERSION
+CHICKEN_BINARY_VERSION=        11
+
+OWN_DIRS+=     ${PREFIX}/lib/chicken
+OWN_DIRS+=     ${PREFIX}/lib/chicken/${CHICKEN_BINARY_VERSION}
 
 BUILD_TARGET=          all
 
@@ -52,4 +57,8 @@
 
 TEST_TARGET=   check
 
+PLIST_SUBST+=          CHICKEN_BINARY_VERSION=${CHICKEN_BINARY_VERSION:Q}
+PRINT_PLIST_AWK+=      { sub("/${CHICKEN_BINARY_VERSION}/", "/$${CHICKEN_BINARY_VERSION}/") }
+PRINT_PLIST_AWK+=      { sub(".so.${CHICKEN_BINARY_VERSION}$$", ".so.$${CHICKEN_BINARY_VERSION}") }
+
 .include "../../mk/bsd.pkg.mk"
diff -r 1428c9e0395c -r 4258069a54bc lang/chicken5/PLIST
--- a/lang/chicken5/PLIST       Sat Jul 06 21:05:25 2019 +0000
+++ b/lang/chicken5/PLIST       Sat Jul 06 21:16:59 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2019/07/02 13:22:40 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/07/06 21:16:59 leot Exp $
 bin/chicken
 bin/chicken-do
 bin/chicken-install
@@ -10,53 +10,53 @@
 bin/feathers
 include/chicken/chicken-config.h
 include/chicken/chicken.h
-lib/chicken/11/chicken.base.import.so
-lib/chicken/11/chicken.bitwise.import.so
-lib/chicken/11/chicken.blob.import.so
-lib/chicken/11/chicken.compiler.user-pass.import.so
-lib/chicken/11/chicken.condition.import.so
-lib/chicken/11/chicken.continuation.import.so
-lib/chicken/11/chicken.csi.import.so
-lib/chicken/11/chicken.errno.import.so
-lib/chicken/11/chicken.eval.import.so
-lib/chicken/11/chicken.file.import.so
-lib/chicken/11/chicken.file.posix.import.so
-lib/chicken/11/chicken.fixnum.import.so
-lib/chicken/11/chicken.flonum.import.so
-lib/chicken/11/chicken.foreign.import.so
-lib/chicken/11/chicken.format.import.so
-lib/chicken/11/chicken.gc.import.so
-lib/chicken/11/chicken.internal.import.so
-lib/chicken/11/chicken.io.import.so
-lib/chicken/11/chicken.irregex.import.so
-lib/chicken/11/chicken.keyword.import.so
-lib/chicken/11/chicken.load.import.so
-lib/chicken/11/chicken.locative.import.so
-lib/chicken/11/chicken.memory.import.so
-lib/chicken/11/chicken.memory.representation.import.so
-lib/chicken/11/chicken.pathname.import.so
-lib/chicken/11/chicken.platform.import.so
-lib/chicken/11/chicken.plist.import.so
-lib/chicken/11/chicken.port.import.so
-lib/chicken/11/chicken.pretty-print.import.so
-lib/chicken/11/chicken.process-context.import.so
-lib/chicken/11/chicken.process-context.posix.import.so
-lib/chicken/11/chicken.process.import.so
-lib/chicken/11/chicken.process.signal.import.so
-lib/chicken/11/chicken.random.import.so
-lib/chicken/11/chicken.read-syntax.import.so
-lib/chicken/11/chicken.repl.import.so
-lib/chicken/11/chicken.sort.import.so
-lib/chicken/11/chicken.string.import.so
-lib/chicken/11/chicken.syntax.import.so
-lib/chicken/11/chicken.tcp.import.so
-lib/chicken/11/chicken.time.import.so
-lib/chicken/11/chicken.time.posix.import.so
-lib/chicken/11/srfi-4.import.so
-lib/chicken/11/types.db
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.base.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.bitwise.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.blob.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.compiler.user-pass.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.condition.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.continuation.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.csi.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.errno.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.eval.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.file.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.file.posix.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.fixnum.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.flonum.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.foreign.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.format.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.gc.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.internal.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.io.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.irregex.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.keyword.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.load.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.locative.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.memory.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.memory.representation.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.pathname.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.platform.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.plist.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.port.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.pretty-print.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.process-context.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.process-context.posix.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.process.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.process.signal.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.random.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.read-syntax.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.repl.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.sort.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.string.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.syntax.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.tcp.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.time.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/chicken.time.posix.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/srfi-4.import.so
+lib/chicken/${CHICKEN_BINARY_VERSION}/types.db
 lib/libchicken.a
 lib/libchicken.so
-lib/libchicken.so.11
+lib/libchicken.so.${CHICKEN_BINARY_VERSION}
 man/man1/chicken-do.1
 man/man1/chicken-install.1
 man/man1/chicken-profile.1



Home | Main Index | Thread Index | Old Index