source: trunk/dports/lang/gprolog/Portfile

Last change on this file was 110461, checked in by jeremyhu@…, 4 years ago

gprolog: Not universal, simplify blacklist

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 110461 2013-08-31 07:54:57Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            gprolog
5version         1.4.4
6
7categories      lang
8maintainers     logtalk.org:pmoura
9platforms       darwin
10license         LGPL-3
11description     GNU Prolog compiler
12
13long_description        \
14                GNU Prolog is a free Prolog compiler with constraint    \
15                solving over finite domains developed by Daniel Diaz.   \
16                GNU Prolog accepts Prolog+constraint programs and       \
17                produces native binaries (like gcc does from a C        \
18                source). The obtained executable is then stand-alone.   \
19                The size of this executable can be quite small since    \
20                GNU Prolog can avoid linking the code of most unused    \
21                built-in predicates. The performance of GNU Prolog is   \
22                very encouraging (comparable to commercial systems).    \
23                Beside native-code compilation, GNU Prolog offers a     \
24                classical interactive interpreter (top-level) with a    \
25                debugger.
26
27homepage        http://gprolog.inria.fr/
28master_sites    http://www.gprolog.org/
29
30checksums       \
31        sha1    658b0efa5d916510dcddbbd980d90bc4d43a6e58 \
32        rmd160  081ad0e6a2edd47de63db79ab1dc65a0e0d341da
33
34worksrcdir      ${name}-${version}/src
35
36use_parallel_build      no
37universal_variant       no
38
39patchfiles      cflags.patch
40
41use_autoconf  yes
42
43configure.args \
44        --prefix=${destroot}${prefix} \
45        --with-install-dir=${prefix}/lib/${name}-${version} \
46        --with-examples-dir=${prefix}/share/${name}-${version} \
47        --with-doc-dir=${prefix}/share/${name}-${version}
48
49# https://trac.macports.org/ticket/30813
50# TODO: Upstream bug?
51compiler.blacklist-append  *clang* *llvm-gcc-4.2
52
53post-destroot   {
54        foreach cmd {fd2c gplc gprolog hexgplc ma2asm pl2wam wam2ma} {
55                system "ln -fs ../lib/${name}-${version}/bin/${cmd} ${destroot}${prefix}/bin/${cmd}"
56        }
57
58        file delete -force ${destroot}${prefix}/var
59}
60
61package.flat    no
62
63post-pkg {
64        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
65        file copy -force -- ${workpath}/${name}-${version}/COPYING ${resources}/License.txt
66        file copy -force -- ${workpath}/${name}-${version}/README ${resources}/ReadMe.txt
67}
Note: See TracBrowser for help on using the repository browser.