[30293] trunk/dports/lang/clisp
source_changes at macosforge.org
source_changes at macosforge.org
Tue Oct 23 16:45:28 PDT 2007
Revision: 30293
http://trac.macosforge.org/projects/macports/changeset/30293
Author: eridius at macports.org
Date: 2007-10-23 16:45:28 -0700 (Tue, 23 Oct 2007)
Log Message:
-----------
Update clisp 2.42, and at the same time make significant changes so this will actually build under Leopard
Modified Paths:
--------------
trunk/dports/lang/clisp/Portfile
Removed Paths:
-------------
trunk/dports/lang/clisp/files/
Modified: trunk/dports/lang/clisp/Portfile
===================================================================
--- trunk/dports/lang/clisp/Portfile 2007-10-23 22:46:03 UTC (rev 30292)
+++ trunk/dports/lang/clisp/Portfile 2007-10-23 23:45:28 UTC (rev 30293)
@@ -1,10 +1,11 @@
# $Id$
PortSystem 1.0
+
name clisp
-version 2.40
+version 2.42
categories lang
-maintainers nomaintainer
+maintainers eridius openmaintainer
platforms darwin
description The Clisp Common Lisp Implementation
long_description \
@@ -21,9 +22,9 @@
homepage http://clisp.cons.org/
master_sites gnu:clisp/release/${version} \
sourceforge
-checksums sha1 4e64b3d04c91b16bc2626f5d89938dbcd4d71a56
+checksums md5 3fc28342e446a62c1eb4f65277929888 \
+ sha1 4c39a5549d2821b1d5ab1cfca172527e9053af1c
use_bzip2 yes
-patchfiles patch-documentation.lisp
depends_lib port:readline \
port:gettext \
@@ -41,82 +42,74 @@
}
platform darwin 6 {
- ui_msg "clisp is not supported on Jaguar (OS X 10.2.x)"
- exit 1
+ throw UNSUPPORTED "clisp is not supported on Jaguar (OS X 10.2.x)"
}
+platform darwin {
+ # placeholder for use with variant_isset
+}
+
platform darwin 7 {
depends_lib-delete port:libsigsegv
configure.args-append --ignore-absence-of-libsigsegv
+}
- if { [variant_isset dynffi] } {
- post-configure { cd ${build.dir}
- system "./makemake --prefix=${prefix} \
- --with-unicode \
- --with-readline \
- --with-dynamic-ffi \
- --with-export-syscalls \
- --with-gettext > Makefile && \
- make config.lisp"
+platform darwin 9 {
+ configure.cflags-append -D_NONSTD_SOURCE
+ # build.env-append MACOSX_DEPLOYMENT_TARGET=10.4
+}
- reinplace "s|CLFLAGS =|CLFLAGS = -L${prefix}/lib|g" Makefile
- }
- } else {
- post-configure { cd ${build.dir}
- system "./makemake --prefix=${prefix} \
- --with-unicode \
- --with-readline \
- --without-dynamic-ffi \
- --with-export-syscalls \
- --with-gettext > Makefile && \
- make config.lisp"
+configure.cflags
+configure.args --prefix=${prefix} --with-libreadline-prefix=${prefix} \
+ --with-libsigsegv-prefix=${prefix} --with-libiconv-prefix=${prefix}
- reinplace "s|CLFLAGS =|CLFLAGS = -L${prefix}/lib|g" Makefile
- }
- }
- }
+configure {
+ set cmdstring "CFLAGS='[join ${configure.cflags}]' \
+ ./configure [join ${configure.args}]"
+ ui_debug "EXECUTING: $cmdstring"
+ system "cd ${configure.dir} && $cmdstring"
+}
-platform darwin 8 {
- if { [variant_isset dynffi] } {
- post-configure { cd ${build.dir}
- system "./makemake --prefix=${prefix} \
- --with-unicode \
- --with-readline \
- --with-dynamic-ffi \
- --with-export-syscalls \
- --with-gettext > Makefile && \
- make config.lisp"
+post-configure {
+ if {[variant_isset darwin]} {
+ if {[variant_isset dynffi]} {
+ set ffi_switch "--with-dynamic-ffi"
+ } else {
+ set ffi_switch "--without-dynamic-ffi"
+ }
+ set cmdstring " \
+ CFLAGS=[join ${configure.cflags}] \
+ ./makemake [join ${configure.args}] \
+ --with-unicode \
+ --with-readline \
+ ${ffi_switch} \
+ --with-export-syscalls \
+ --with-gettext > Makefile && \
+ make config.lisp"
+ ui_debug "EXECUTING: $cmdstring"
+ system "cd ${build.dir} && $cmdstring"
- reinplace "s|CLFLAGS =|CLFLAGS = -L${prefix}/lib|g" Makefile
- }
- } else {
- post-configure { cd ${build.dir}
- system "./makemake --prefix=${prefix} \
- --with-unicode \
- --with-readline \
- --without-dynamic-ffi \
- --with-export-syscalls \
- --with-gettext > Makefile && \
- make config.lisp"
+ # reinplace "s|CLFLAGS =|CLFLAGS = -L${prefix}/lib|g" ${build.dir}/Makefile
+ }
+}
- reinplace "s|CLFLAGS =|CLFLAGS = -L${prefix}/lib|g" Makefile
- }
- }
- }
-
#
# The repetition of the CPPFLAGS and LDFLAGS is necessary because of clisp's
# hand written (and very fragile) configuration process, as is the clearing
# of the configuration cache.
#
-build { system "ulimit -s 8192 && cd ${build.dir}"
- system "rm ./config.cache"
- system "CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib make"
- system "CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib make check"
- }
+# build.env-append CPPFLAGS='-I${prefix}/include -D_NONSTD_SOURCE' LDFLAGS=-L${prefix}/lib
+build {
+ set cmdstring "cd ${build.dir} && ulimit -s 16384 && \
+ unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && \
+ make"
+ ui_debug "EXECUTING: $cmdstring"
+ system $cmdstring
+ set cmdstring "$cmdstring check"
+ ui_debug "EXECUTING: $cmdstring"
+ system $cmdstring
+}
-pre-destroot { cd ${build.dir} }
-
livecheck.check regex
livecheck.url http://ftp.gnu.org/gnu/${name}/release/?C=M&O=D
livecheck.regex >(\[0-9.\]+)/<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071023/04fbbcf7/attachment-0001.html
More information about the macports-changes
mailing list