diff options
author | jonb <jonb@pkgsrc.org> | 2008-05-28 14:06:31 +0000 |
---|---|---|
committer | jonb <jonb@pkgsrc.org> | 2008-05-28 14:06:31 +0000 |
commit | d279427b43b5394c53efdb916ff5ac763fb3c89c (patch) | |
tree | 6023273b8dac2bfbce14d58407541a3420631187 /lang/sbcl | |
parent | 2e127c32eb9aa4d9f30132b66901bcbd35621e6f (diff) | |
download | pkgsrc-d279427b43b5394c53efdb916ff5ac763fb3c89c.tar.gz |
Restructure Makefile to use a copy of the package being built to
build the newer version. This should allow the package to be
included in bulk builds, and eliminate the troubles with other
Common Lisp systems being fragile WRT building this system.
Update to 1.0.16
Diffstat (limited to 'lang/sbcl')
-rw-r--r-- | lang/sbcl/Makefile | 90 | ||||
-rw-r--r-- | lang/sbcl/PLIST | 12 | ||||
-rw-r--r-- | lang/sbcl/distinfo | 17 |
3 files changed, 63 insertions, 56 deletions
diff --git a/lang/sbcl/Makefile b/lang/sbcl/Makefile index 46c61e7a69f..599a6d286e9 100644 --- a/lang/sbcl/Makefile +++ b/lang/sbcl/Makefile @@ -1,73 +1,75 @@ -# $NetBSD: Makefile,v 1.15 2007/11/07 17:34:18 jonb Exp $ +# $NetBSD: Makefile,v 1.16 2008/05/28 14:06:31 jonb Exp $ + +.include "../../mk/bsd.prefs.mk" DISTNAME= ${PKGNAME_NOREV}-source -PKGNAME= sbcl-1.0.11 +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + sbcl-${OPSYS}-${MACHINE_ARCH}-${OS_VERSION}.tgz +PKGNAME= sbcl-1.0.16 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sbcl/} EXTRACT_SUFX= .tar.bz2 +SITES.sbcl-${OPSYS}-${MACHINE_ARCH}-${OS_VERSION}.tgz= \ + ftp://ftp.NetBSD.org/pub/NetBSD/misc/jonb/sbcl/ MAINTAINER= jonb@NetBSD.org HOMEPAGE= http://www.sbcl.org/ COMMENT= SBCL, a Common Lisp implementation ONLY_FOR_PLATFORM= NetBSD-[2-9]*-i386 + +# SBCL creates a new release with minor updates and fixes every +# month. The maintainer of this package does not have the time +# to build, test, update, etc. this package that often. If you +# would like a newer (or older) version, this works very often: +# 1) change the PKGNAME variable above as desired +# 2) make fetch && make makesum && make package + # It should be possible to have SBCL working on amd64, powerpc, # sparc, alpha, mips, and HPPA hardware also, but they probably # need a bit of porting work done in SBCL itself. # In addition, SBCL should also work on Linux, Darwin, Solaris, # FreeBSD, OpenBSD, and possibly Win32, OSF/1, HP-UX, and Irix. +# SBCL needs an existing Common Lisp system to build it... +# In theory CLisp, CMUCL, OpenMCL, and SBCL itself should work. +# In practice, CLisp has been a PITA, while CMUCL and OpenMCL +# haven't been ported to NetBSD. That leaves SBCL itself to +# do the build, so pull in a working binary package of SBCL +# along with the sources when building. + USE_TOOLS+= gmake gtar:run PKG_INSTALLATION_TYPES= overwrite pkgviews WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}/ -# -# Bootstrap section. -# -# SBCL needs an existing Common Lisp system to build it... -# Currently allowed systems are CLisp, CMUCL, OpenMCL, and SBCL itself. -# -# Note that CLisp 2.39nb1 worked two or three times when testing -# this package and it failed to build SBCL twice. It is also at -# least twice as slow as using SBCL when building on an i386 platform. -# -# I have never been able to get CLisp to build on a SPARC system, so -# I had to cross build when trying to port SBCL to NetBSD/sparc. -# I have reports that CLisp will build on PowerPC platforms, but is -# unable to build SBCL. -# -# If SBCL is installed in an unusual place when trying to build this -# package, you may need to set the full path in SBCL_BOOT_SYSTEM and -# build the package with "SBCL_HOME=/path/to/SBCL/core/image/ make" - -#SBCL_BOOT_SYSTEM= clisp # CLisp -#SBCL_BOOT_SYSTEM= "lisp -batch" # CMUCL -#SBCL_BOOT_SYSTEM= "openmcl --batch" # OpenMCL -#SBCL_BOOT_SYSTEM= sbcl # SBCL - -.if defined(SBCL_BOOT_SYSTEM) && ${SBCL_BOOT_SYSTEM} == clisp -BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp -.endif +SUBST_CLASSES+= fix-paths +SUBST_STAGE.fix-paths= pre-configure +SUBST_MESSAGE.fix-paths=fixing pathnames +SUBST_FILES.fix-paths= install.sh src/runtime/runtime.c doc/sbcl.1 +SUBST_SED.fix-paths= -e 's,@PREFIX@,${PREFIX},g' -.if !defined(SBCL_BOOT_SYSTEM) -PKG_FAIL_REASON+= "Sorry, need a Common Lisp system. See Makefile for details." -.endif - -post-patch: - ${MV} ${WRKSRC}install.sh ${WRKSRC}install.sh.dist - ${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}install.sh.dist > ${WRKSRC}install.sh - ${MV} ${WRKSRC}src/runtime/runtime.c ${WRKSRC}src/runtime/runtime.c.dist - ${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}src/runtime/runtime.c.dist > ${WRKSRC}src/runtime/runtime.c - ${MV} ${WRKSRC}doc/sbcl.1 ${WRKSRC}doc/sbcl.1.dist - ${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}doc/sbcl.1.dist > ${WRKSRC}doc/sbcl.1 - ${MV} ${WRKSRC}contrib/asdf-install/installer.lisp ${WRKSRC}contrib/asdf-install/installer.lisp.dist - ${SED} -e "s,@GTAR@,${GTAR}," ${WRKSRC}contrib/asdf-install/installer.lisp.dist > ${WRKSRC}contrib/asdf-install/installer.lisp +SUBST_CLASSES+= fix-gtar +SUBST_STAGE.fix-gtar= pre-configure +SUBST_MESSAGE.fix-gtar= fixing gtar references +SUBST_FILES.fix-gtar= contrib/asdf-install/installer.lisp +SUBST_SED/fix-gtar= -e 's,@GTAR@.${GTAR},g' do-build: - cd ${WRKSRC} && ${SH} make.sh "${SBCL_BOOT_SYSTEM}" + export SBCL_HOME=${WRKDIR}/lib/sbcl/ \ + && cd ${WRKSRC} \ + && ${SH} make.sh ${WRKDIR}/bin/sbcl + +# Rather not do this, but the file names seem to be hash values of +# timestamps or something and the pkgsrc system does *not* like +# randomly named and always changing file names +post-build: + ${RM} -rf ${WRKSRC}/contrib/sb-cover/test-output do-install: - cd ${WRKSRC} && INSTALL_ROOT=${PREFIX} MAN_DIR=${PREFIX}/${PKGMANDIR} ${SH} install.sh + cd ${WRKSRC} \ + && INSTALL_ROOT=${PREFIX} \ + MAN_DIR=${PREFIX}/${PKGMANDIR} \ + ${SH} install.sh .include "../../mk/bsd.pkg.mk" diff --git a/lang/sbcl/PLIST b/lang/sbcl/PLIST index a4a7da65267..12602657ddb 100644 --- a/lang/sbcl/PLIST +++ b/lang/sbcl/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2007/11/07 17:34:18 jonb Exp $ +@comment $NetBSD: PLIST,v 1.5 2008/05/28 14:06:31 jonb Exp $ bin/sbcl lib/sbcl/asdf-install/.cvsignore lib/sbcl/asdf-install/CVS/Entries @@ -12,7 +12,6 @@ lib/sbcl/asdf-install/defpackage.fasl lib/sbcl/asdf-install/defpackage.lisp lib/sbcl/asdf-install/installer.fasl lib/sbcl/asdf-install/installer.lisp -lib/sbcl/asdf-install/installer.lisp.dist lib/sbcl/asdf-install/installer.lisp.orig lib/sbcl/asdf-install/test-passed lib/sbcl/asdf/asdf.fasl @@ -106,11 +105,8 @@ lib/sbcl/sb-cover/test-data-1.fasl lib/sbcl/sb-cover/test-data-1.lisp lib/sbcl/sb-cover/test-data-2.fasl lib/sbcl/sb-cover/test-data-2.lisp -lib/sbcl/sb-cover/test-output/_stuff_sbcl_contrib_sb-cover_test-data-1_lisp.html -lib/sbcl/sb-cover/test-output/_stuff_sbcl_contrib_sb-cover_test-data-2_lisp.html -lib/sbcl/sb-cover/test-output/_usr_pkgsrc_lang_sbcl_work_sbcl-1_0_11_contrib_sb-cover_test-data-1_lisp.html -lib/sbcl/sb-cover/test-output/_usr_pkgsrc_lang_sbcl_work_sbcl-1_0_11_contrib_sb-cover_test-data-2_lisp.html -lib/sbcl/sb-cover/test-output/cover-index.html +lib/sbcl/sb-cover/test-data-3.fasl +lib/sbcl/sb-cover/test-data-3.lisp lib/sbcl/sb-cover/test-passed lib/sbcl/sb-cover/tests.fasl lib/sbcl/sb-cover/tests.lisp @@ -263,6 +259,7 @@ share/doc/sbcl/SUPPORT @dirrm lib/sbcl/sb-rt @dirrm lib/sbcl/sb-rotate-byte/CVS @dirrm lib/sbcl/sb-rotate-byte +@dirrm lib/sbcl/sb-posix/test-lab @dirrm lib/sbcl/sb-posix/CVS @dirrm lib/sbcl/sb-posix @dirrm lib/sbcl/sb-md5/CVS @@ -271,7 +268,6 @@ share/doc/sbcl/SUPPORT @dirrm lib/sbcl/sb-grovel/CVS @dirrm lib/sbcl/sb-grovel @dirrm lib/sbcl/sb-executable -@dirrm lib/sbcl/sb-cover/test-output @dirrm lib/sbcl/sb-cover/CVS @dirrm lib/sbcl/sb-cover @dirrm lib/sbcl/sb-cltl2/CVS diff --git a/lang/sbcl/distinfo b/lang/sbcl/distinfo index 942e78a4e9b..8b9b0d2c933 100644 --- a/lang/sbcl/distinfo +++ b/lang/sbcl/distinfo @@ -1,8 +1,17 @@ -$NetBSD: distinfo,v 1.5 2007/11/07 17:34:18 jonb Exp $ +$NetBSD: distinfo,v 1.6 2008/05/28 14:06:31 jonb Exp $ -SHA1 (sbcl-1.0.11-source.tar.bz2) = 2592f818d2a9796ce04a85da1f2b08d23c20a9f5 -RMD160 (sbcl-1.0.11-source.tar.bz2) = d875fecc7104b3d205043428ae8af40eaedb4b16 -Size (sbcl-1.0.11-source.tar.bz2) = 3161728 bytes +SHA1 (sbcl-1.0.16-source.tar.bz2) = 81b05d25b2478e2bdee5d2885d2318612d09b6fd +RMD160 (sbcl-1.0.16-source.tar.bz2) = 64082b1c1885ce5d31636ccc7a65bfd9334072f9 +Size (sbcl-1.0.16-source.tar.bz2) = 3213890 bytes +SHA1 (sbcl-NetBSD-i386-3.0.3.tgz) = e7e43bd175bc56f25aa727f917686c24271f255e +RMD160 (sbcl-NetBSD-i386-3.0.3.tgz) = fbefaa572a80cf016d61dbc737b6eed11b9f758e +Size (sbcl-NetBSD-i386-3.0.3.tgz) = 9474559 bytes +SHA1 (sbcl-NetBSD-i386-4.0.tgz) = 47edaac902e435ef7678a84837586fd243d2ea0a +RMD160 (sbcl-NetBSD-i386-4.0.tgz) = 5f4ccc3075a42f3801db458ca157e38f83f005a1 +Size (sbcl-NetBSD-i386-4.0.tgz) = 9334199 bytes +SHA1 (sbcl-NetBSD-i386-4.0_STABLE.tgz) = 47edaac902e435ef7678a84837586fd243d2ea0a +RMD160 (sbcl-NetBSD-i386-4.0_STABLE.tgz) = 5f4ccc3075a42f3801db458ca157e38f83f005a1 +Size (sbcl-NetBSD-i386-4.0_STABLE.tgz) = 9334199 bytes SHA1 (patch-aa) = 8f1c02fc96233af1063ca8dd62bc6033eb435db2 SHA1 (patch-ab) = 5b3e831bae400f4d61b0144d7812864a8d5e6c86 SHA1 (patch-ac) = bce87555a5944cfeb25c65df9d41c3f49b5d4866 |