source: trunk/dports/lang/mercury-extras/Portfile

Last change on this file was 110969, checked in by jmr@…, 4 years ago

mercury-extras: set license, update homepage

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 110969 2013-09-12 00:58:48Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            mercury-extras
6version         0.13.1
7categories      lang
8license         LGPL-2 GPL-2
9maintainers     nomaintainer
10platforms       darwin
11description     Extra packages for the Mercury Programming Language
12long_description        \
13                Mercury is a new logic/functional programming   \
14                language, which combines the clarity and        \
15                expressiveness of declarative programming with  \
16                advanced static analysis and error detection    \
17                features. Its highly optimized execution        \
18                algorithm delivers efficiency far in excess of  \
19                existing logic programming systems, and close   \
20                to conventional programming systems. Mercury    \
21                addresses the problems of large-scale program   \
22                development, allowing modularity, separate      \
23                compilation, and numerous optimization/time     \
24                trade-offs.
25
26homepage        http://www.mercurylang.org/
27master_sites    http://dl.mercurylang.org/release/
28
29distfiles       ${name}-${version}${extract.suffix}
30
31checksums       ${name}-${version}${extract.suffix} md5  465ef230ae2d7a58dd184adc4c6464ec
32
33depends_run     port:mercury
34
35patchfiles      patch-lex-Mmakefile             \
36                patch-references-Mmakefile
37
38use_configure   no
39
40build           {
41                  system "cd ${worksrcpath} && mmake depend && mmake INSTALL_PREFIX=${destroot}${prefix}"
42                }
43
44destroot        {
45                  system "cd ${worksrcpath} && mmake INSTALL_PREFIX=${destroot}${prefix} install"
46                }
47
48#
49# Remove the redundant symbolic links (already installed by the
50# mercury port). Put back the one non-redundant link too.
51#
52post-destroot   {
53                  system "find ${destroot}${prefix}/lib/mercury -type l | xargs rm -f"
54                  file mkdir ${destroot}${prefix}/lib/mercury/ints/Mercury
55                  system "cd ${destroot}${prefix}/lib/mercury/ints/Mercury && \
56                          ln -s .. ints0"
57
58                  set bad_dylibs [ exec find ${destroot}${prefix}/lib -name "\*.dylib" | xargs otool -D | grep ${destroot} ]
59                  foreach bad_dylib ${bad_dylibs} {
60                        regsub ":$" ${bad_dylib} "" bad_dylib_path
61                        regsub ${destroot} ${bad_dylib_path} "" good_dylib_path
62                        system "install_name_tool -id ${good_dylib_path} ${bad_dylib_path}"
63                  }
64                }
Note: See TracBrowser for help on using the repository browser.