Ticket #24963: Portfile

File Portfile, 1.9 KB (added by pmoura (Paulo Moura), 14 years ago)

Portfile for the latest beta of GNU Prolog 1.4.0

Line 
1# $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            gprolog-devel
5version         1.4.0
6
7categories      lang
8maintainers     logtalk.org:pmoura
9platforms       darwin
10description     GNU Prolog compiler
11
12long_description        \
13                GNU Prolog is a free Prolog compiler with constraint    \
14                solving over finite domains developed by Daniel Diaz.   \
15                GNU Prolog accepts Prolog+constraint programs and       \
16                produces native binaries (like gcc does from a C        \
17                source). The obtained executable is then stand-alone.   \
18                The size of this executable can be quite small since    \
19                GNU Prolog can avoid linking the code of most unused    \
20                built-in predicates. The performance of GNU Prolog is   \
21                very encouraging (comparable to commercial systems).    \
22                Beside native-code compilation, GNU Prolog offers a     \
23                classical interactive interpreter (top-level) with a    \
24                debugger.
25
26homepage        http://gprolog.inria.fr/
27master_sites    http://gprolog.univ-paris1.fr/unstable/
28
29checksums       \
30        md5     0f882e352b886a5ddb59bcab457fa78e \
31        sha1    902e85425cdf9446f9e3b3cd78de0e8be8331654 \
32        rmd160  4323af783f58659c8e7ae8d704a5fc86004283b6
33
34
35distname    gprolog-20100713
36extract.suffix  .tgz
37
38worksrcdir      gprolog-${version}/src
39
40use_configure   yes
41
42configure.build_arch i386
43
44configure.args \
45        --prefix=${destroot}${prefix} \
46        --with-install-dir=${prefix}/lib/gprolog-${version} \
47        --with-examples-dir=${prefix}/share/gprolog-${version} \
48        --with-doc-dir=${prefix}/share/gprolog-${version}
49
50post-destroot   {
51        foreach cmd {fd2c gplc gprolog hexgplc ma2asm pl2wam wam2ma} {
52                system "ln -fs ../lib/gprolog-${version}/bin/${cmd} ${destroot}${prefix}/bin/${cmd}"
53        }
54
55        file delete -force ${destroot}${prefix}/var
56}
57
58
59post-pkg {
60        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
61        file copy -force -- ${workpath}/gprolog-${version}/COPYING ${resources}/License.txt
62        file copy -force -- ${workpath}/gprolog-${version}/README ${resources}/ReadMe.txt
63}