source: trunk/dports/lang/gambit-c/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    gambit-c
6version                 4.2.8
7set branch              [join [lrange [split ${version} .] 0 1] .]
8categories              lang scheme
9platforms               darwin
10maintainers             gmail.com:arto.bendiken
11description             Gambit-C is a fast Scheme implementation.
12long_description        Gambit-C includes a Scheme interpreter and a Scheme \
13                        compiler which can be used to build standalone \
14                        executables. Because the compiler generates portable \
15                        C code it is fairly easy to port to any platform \
16                        with a decent C compiler. The thread system is very \
17                        efficient and can support millions of concurrent \
18                        processes. \
19                        \
20                        The Gambit-C system conforms to the R4RS, R5RS and \
21                        IEEE Scheme standards. The full numeric tower is \
22                        implemented, including: infinite precision integers \
23                        (bignums), rationals, inexact reals (floating point \
24                        numbers), and complex numbers.
25
26homepage                http://www.iro.umontreal.ca/~gambit/
27master_sites            ${homepage}download/gambit/v${branch}/source/
28distname                gambc-v[strsed ${version} {g/\./_/}]
29extract.suffix          .tgz
30checksums               sha1 785cb0667c7bfb554cd584413eed8bdb9f4a6077
31
32configure.args          --infodir=${prefix}/share/info \
33                        --libdir=${prefix}/lib/gambit-c \
34                        --enable-single-host
35
36post-extract {
37    # Get rid of the incompatible version-specific installation structure
38    reinplace "s|PACKAGE_SUBDIR=\"/${version}\"|PACKAGE_SUBDIR=\"\"|g" ${worksrcpath}/configure.ac
39    reinplace "s|&& \$(LN_S) \.\$(PACKAGE_SUBDIR) current||g" ${worksrcpath}/makefile.in
40    reinplace "s|rm -f \$(prefix)/current \$(prefix)/current.lnk||g" ${worksrcpath}/makefile.in
41
42    # Fix target paths since the configure options are not properly used in the makefiles
43    foreach makefile [exec find ${worksrcpath} -name makefile.in] {
44        reinplace "s|\$(prefix)\$(PACKAGE_SUBDIR)|\$(DESTDIR)\$(prefix)|g" $makefile
45        reinplace "s|\$(prefix)/info|\$(prefix)/share/info|g" $makefile
46        reinplace "s|\$(prefix)/doc|\$(prefix)/share/doc/gambit-c|g" $makefile
47        reinplace "s|\$(prefix)/lib|\$(prefix)/lib/gambit-c|g" $makefile
48        reinplace "s|\$(prefix)/syntax-case\.scm|\$(prefix)/lib/gambit-c/syntax-case\.scm|g" $makefile
49    }
50}
51
52variant optimized description "Use expensive GCC optimizations to improve speed and compactness" {
53    configure.args-append --enable-gcc-opts
54}
55
56variant profile description "Enable profiling" {
57    configure.args-append --enable-profile
58}
Note: See TracBrowser for help on using the repository browser.