head	1.5;
access;
symbols
	pkgsrc-2026Q1:1.5.0.10
	pkgsrc-2026Q1-base:1.5
	pkgsrc-2025Q4:1.5.0.8
	pkgsrc-2025Q4-base:1.5
	pkgsrc-2025Q3:1.5.0.6
	pkgsrc-2025Q3-base:1.5
	pkgsrc-2025Q2:1.5.0.4
	pkgsrc-2025Q2-base:1.5
	pkgsrc-2025Q1:1.5.0.2
	pkgsrc-2025Q1-base:1.5
	pkgsrc-2024Q4:1.2.0.6
	pkgsrc-2024Q4-base:1.2
	pkgsrc-2024Q3:1.2.0.4
	pkgsrc-2024Q3-base:1.2
	pkgsrc-2024Q2:1.2.0.2
	pkgsrc-2024Q2-base:1.2
	pkgsrc-2024Q1:1.1.0.4
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.2
	pkgsrc-2023Q4-base:1.1;
locks; strict;
comment	@# @;


1.5
date	2025.01.07.13.03.20;	author riastradh;	state Exp;
branches;
next	1.4;
commitid	abcAvTF6rIgppyEF;

1.4
date	2025.01.07.11.56.36;	author riastradh;	state Exp;
branches;
next	1.3;
commitid	IhwuhjaCqVNv2yEF;

1.3
date	2025.01.07.08.08.54;	author riastradh;	state Exp;
branches;
next	1.2;
commitid	rrlCljVm1mfoMwEF;

1.2
date	2024.05.02.13.22.34;	author pho;	state Exp;
branches;
next	1.1;
commitid	VKGDlW7wUteeyq8F;

1.1
date	2023.11.06.17.15.57;	author pho;	state Exp;
branches;
next	;
commitid	ARYRuy3CuBb2zzLE;


desc
@@


1.5
log
@lang/chezscheme: Teach print-PLIST to DTRT.

No functional change intended for the package build -- just a
convenience for the next person to update this.
@
text
@# $NetBSD: Makefile,v 1.4 2025/01/07 11:56:36 riastradh Exp $

DISTNAME=		chezscheme-10.0.0
PKGREVISION=		1
CATEGORIES=		lang
MASTER_SITES=		${MASTER_SITE_GITHUB:=cisco/}
GITHUB_PROJECT=		ChezScheme
GITHUB_TAG=		v${PKGVERSION_NOREV}
GITHUB_SUBMODULES+=	lz4 lz4 d44371841a2f1728a3f36839fd4b7e872d0927d3 lz4
GITHUB_SUBMODULES+=	nanopass nanopass-framework-scheme 68990d02573faa555ee42919d5809de03f1268a0 nanopass
GITHUB_SUBMODULES+=	dybvig stex 5e4f0ca67bac448e19a24c09f12fc16d24cd6b6d stex
GITHUB_SUBMODULES+=	madler zlib 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf zlib
GITHUB_SUBMODULES+=	racket zuo ebdc0451c39c70ce88b3b6ab9ba2b8e389ec519a zuo

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://cisco.github.io/ChezScheme/
COMMENT=	Cisco implementation of the Scheme programming language
LICENSE=	apache-2.0

WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}

USE_TOOLS+=	gmake
HAS_CONFIGURE=	yes

.include "options.mk"

CONFIGURE_ARGS+=	--installprefix=${PREFIX:Q}
CONFIGURE_ARGS+=	--installman=${PREFIX:Q}/${PKGMANDIR:Q}
CONFIGURE_ARGS+=	--installdoc=${PREFIX:Q}/doc/${PKGBASE}
CONFIGURE_ARGS+=	--temproot=${DESTDIR:Q}
CONFIGURE_ARGS+=	--installschemename=${PKGBASE}
CONFIGURE_ARGS+=	--installscriptname=${PKGBASE}-script
CONFIGURE_ARGS+=	--as-is # skip Git submodule update
CONFIGURE_ARGS+=	--workarea=pkgsrc-build

CONFIGURE_ENV.NetBSD+=	PAXCTL=${PAXCTL:Q}

BUILD_TARGET=	build
TEST_TARGET=	test

# Chez uses its own idiosyncratic platform nomenclature, like ta6nb for:
#
# - t: threaded
# - a: amd64
# - 6: 64-bit
# - nb: NetBSD
#
# Rather than copy the logic mapping OPSYS/MACHINE_ARCH to it, read it
# out of the file where Chez stores it after configure.
#
# XXX There are three possible variables: m, defaultm, and mboot.
# mboot is probably wrong; not clear whether to use m or defaultm here.
PLIST_SUBST+=		CHEZ_PLATFORM=${CHEZ_PLATFORM}
PRINT_PLIST_AWK+=	\
	/^lib\/csv[0-9.]*\// \
		{ sub(/${CHEZ_PLATFORM}/, "$${CHEZ_PLATFORM}") }
CHEZ_PLATFORM=		${CHEZ_PLATFORM_sh:sh}
CHEZ_PLATFORM_sh=	\
	cd ${WRKSRC:Q} && \
	${AWK} -F= '$$1 == "m" { print $$2 }' <pkgsrc-build/Mf-config

.include "../../mk/pax.mk"
.include "../../mk/bsd.pkg.mk"
@


1.4
log
@lang/chezscheme: Dedynamicize PLIST.

There's only one annoying parameter, and we can scrape it out of the
configure spew once we set a predictable `workarea'.

Revbump just in case I made a mistake in the plist so any discrepancy
will be noisily detected rather than silently ignored.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2025/01/07 08:08:54 riastradh Exp $
d54 3
@


1.3
log
@lang/chezscheme: Pass full path to paxctl tool into build.

Fixes build without /usr/sbin in PATH.

No change to generated package if it builds, so no revbump.

PR pkg/58970: lang/chezscheme fails to build if /usr/sbin is not in
PATH
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2024/05/02 13:22:34 pho Exp $
d4 1
d34 1
d41 17
a57 4
# Chez Scheme uses a very weird scheme of machine type identifier in file
# paths, and we don't want to replicate the logic in ${WRKSRC/configure
# here.
PLIST_TYPE=	dynamic
@


1.2
log
@lang/chezscheme: Update to 10.0.0

Release notes are too long to paste here:
https://cisco.github.io/ChezScheme/release_notes/v10.0/release_notes.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2023/11/06 17:15:57 pho Exp $
d34 2
d44 1
@


1.1
log
@lang/chezscheme: import chezscheme-9.9.9alpha2023.11.03

Chez Scheme is both a programming language and an implementation of that
language, with supporting tools and documentation.

As a superset of the language described in the Revised6 Report on the
Algorithmic Language Scheme (R6RS), Chez Scheme supports all standard
features of Scheme, including first-class procedures, proper treatment of
tail calls, continuations, user-defined records, libraries, exceptions, and
hygienic macro expansion.

Chez Scheme also includes extensive support for interfacing with C and
other languages, support for multiple threads possibly running on multiple
cores, non-blocking I/O, and many other features.

The Chez Scheme implementation consists of a compiler, run-time system, and
programming environment. Although an interpreter is available, all code is
compiled by default. Source code is compiled on-the-fly when loaded from a
source file or entered via the shell. A source file can also be precompiled
into a stored binary form and automatically recompiled when its
dependencies change. Whether compiling on the fly or precompiling, the
compiler produces optimized machine code, with some optimization across
separately compiled library boundaries. The compiler can also be directed
to perform whole-program compilation, which does full cross-library
optimization and also reduces a program and the libraries upon which it
depends to a single binary.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 7
# NOTE: The latest stable release, 9.6.4 at the moment, is a version
# released before merging Racket fork back to the main repository. We
# really need to use the git HEAD at the moment because it is far more
# portable than 9.6.4. Switch the package to stable when v10 is released.
CHEZ_VERSION=	9.9.9alpha2023.11.03

DISTNAME=		chezscheme-${CHEZ_VERSION}
d7 1
a7 1
GITHUB_TAG=		92c697d7d3c930367c268e2e4fb229fe3ee3f39c
d11 2
a12 2
GITHUB_SUBMODULES+=	madler zlib 09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851 zlib
GITHUB_SUBMODULES+=	racket zuo 493e9cd08147add01bba9247f36759f095b87678 zuo
d19 1
a19 1
WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
@

