Ticket #40022: Portfile.2

File Portfile.2, 1.7 KB (added by myronwu@…, 11 years ago)
Line 
1# $Id$
2
3PortSystem                1.0
4
5name                      mlton
6version                   20130715
7categories                lang
8maintainers               nomaintainer
9license                   BSD
10description               The MLton Standard ML compiler.
11long_description          MLton is an open-source, whole-program, optimizing Standard ML compiler.
12homepage                  http://mlton.org
13platforms                 darwin
14distfiles                 ${distname}.src.tgz ${distname}-1.amd64-darwin.gmp-macports.tgz
15master_sites              sourceforge:project/mlton/mlton/${version}/
16
17depends_lib               port:gmp
18universal_variant         no
19supported_archs           x86_64
20
21checksums                 ${distname}.src.tgz \
22                          rmd160  cab92f70f79063540267c3dc12166490cb397030 \
23                          sha256  215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c \
24                          ${distname}-1.amd64-darwin.gmp-macports.tgz \
25                          rmd160 bc348fbab45b270932a24e6fc20c98166e484c5c \
26                          sha256 a9bfff3bc5a793e84306f98cd60f195a8139902900f96e1072d13c0813b49c10
27
28use_configure             no
29use_parallel_build        no
30
31build.target              all-no-docs
32build.post_args           PATH="${workpath}/usr/local/bin:$env(PATH)"
33
34destroot.post_args-append PREFIX="${prefix}" MAN_PREFIX_EXTRA="/share"
35
36post-extract {
37    reinplace             "s|^lib='|lib='${workpath}|" ${workpath}/usr/local/bin/mlton
38}
39
40variant pdf_docs description {Build the documentation in PDF} {
41    depends_build-append  port:asciidoc port:dblatex port:python27
42    build.target          all
43    patchfiles-append     patch-InclGitFile.py
44}