source: trunk/dports/lang/guile16/Portfile @ 31677

Last change on this file since 31677 was 31677, checked in by ryandesign@…, 11 years ago

guile16: whitespace changes only

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: Portfile 31677 2007-12-02 23:13:39Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            guile16
6version         1.6.8
7revision        2
8categories      lang
9maintainers     nomaintainer
10platforms       darwin
11
12description     GNU's Ubiquitous Intelligent Language for Extension (guile)
13long_description        \
14                Guile is an interpreter for the Scheme programming      \
15                language, packaged for use in a wide variety of         \
16                environments. Guile implements Scheme as described in   \
17                the Revised^5 Report on the Algorithmic Language Scheme \
18                (usually known as R5RS), providing clean and general    \
19                data and control structures.                            \
20                                                                        \
21                Guile goes beyond the rather austere language presented \
22                in R5RS, extending it with a module system, full access \
23                to POSIX system calls, networking support, multiple     \
24                threads, dynamic linking, a foreign function call       \
25                interface, powerful string processing, and many other   \
26                features needed for programming in the real world.
27
28#bugs           On Apple's darwin, the putenv library function acts     \
29#               differently than the GNU version. The patch to          \
30#               libguile/posix.c fixes this, so the guile 'putenv'      \
31#               function doesn't throw a system error.
32
33#user_notes     You may need to set the environment variable            \
34#               DYLD_LIBRARY_PATH to /opt/local/lib (or wherever        \
35#               the guile libraries have been installed) if you want    \
36#               to load guile modules from an application linked with   \
37#               libguile.  This should only apply to developers using   \
38#               guile as an extension language.
39
40homepage        http://www.gnu.org/software/guile/guile.html
41master_sites    gnu:guile
42distname        guile-${version}
43
44checksums       md5 2756b01f428b910d33267aeaa0e2d59a
45
46patchfiles      patch-scmsigs.c.diff            \
47                patch-posix.c.diff              \
48                patch-guile.c.diff
49
50depends_lib     port:readline
51
52configure.args  CPPFLAGS="-I${prefix}/include"  \
53                LDFLAGS=-L${prefix}/lib         \
54                --infodir=${prefix}/share/info  \
55                --mandir=${prefix}/share/man
56
57platform darwin 6 {
58                depends_lib-append      lib:libdl:dlcompat
59        }
60
61platform darwin 8 {
62                configure.compiler      gcc-4.0
63        }
64
65platform darwin {
66                configure.args-append   CFLAGS="-no-cpp-precomp -Dmacosx"
67        }
68
69post-destroot   {
70                  file delete ${destroot}${prefix}/share/${name}/1.6/ice-9/and-let\*.scm
71                  file delete ${destroot}${prefix}/share/info/goops.info
72                  file delete ${destroot}${prefix}/share/info/guile-tut.info
73                  file delete ${destroot}${prefix}/share/info/guile.info
74                  file delete ${destroot}${prefix}/share/info/guile.info-1
75                  file delete ${destroot}${prefix}/share/info/guile.info-2
76                  file delete ${destroot}${prefix}/share/info/guile.info-3
77                  file delete ${destroot}${prefix}/share/info/guile.info-4
78                  file delete ${destroot}${prefix}/share/info/r5rs.info
79
80                  file rename ${destroot}${prefix}/bin/guile ${destroot}${prefix}/bin/${name}
81                  file rename ${destroot}${prefix}/bin/guile-config ${destroot}${prefix}/bin/${name}-config
82                  file rename ${destroot}${prefix}/bin/guile-snarf ${destroot}${prefix}/bin/${name}-snarf
83                  file rename ${destroot}${prefix}/bin/guile-tools ${destroot}${prefix}/bin/${name}-tools
84
85                  file rename ${destroot}${prefix}/include/guile ${destroot}${prefix}/include/guile16
86
87                  file rename ${destroot}${prefix}/include/libguile ${destroot}${prefix}/include/libguile16
88                  file rename ${destroot}${prefix}/include/libguile.h ${destroot}${prefix}/include/libguile16.h
89
90                  file rename ${destroot}${prefix}/share/aclocal/guile.m4 ${destroot}${prefix}/share/aclocal/guile16.m4
91
92                  file rename ${destroot}${prefix}/lib/libguile.a ${destroot}${prefix}/lib/libguile16.a
93                  file rename ${destroot}${prefix}/lib/libguile.la ${destroot}${prefix}/lib/libguile16.la
94                  file rename ${destroot}${prefix}/lib/libguile.dylib ${destroot}${prefix}/lib/libguile16.dylib
95
96                  reinplace "s|-lguile |-lguile16 |g" ${destroot}${prefix}/bin/guile16-config
97                  reinplace "s|${prefix}/bin/guile|${prefix}/bin/guile16|g" ${destroot}${prefix}/bin/guile16-config
98                }
Note: See TracBrowser for help on using the repository browser.