Ticket #46706: Portfile

File Portfile, 1.9 KB (added by mmpestorich (Mike M Pestorich), 10 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 128279 2014-11-18 05:51:44Z larryv@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        Orc discount 2.1.8 v
8categories          textproc devel
9platforms           darwin freebsd
10maintainers         gmail.com:mmpestorich \
11                    openmaintainer
12license             BSD
13
14description         An implementation of John Grubers Markdown language
15
16long_description    Markdown provides a library that gives you formatting \
17                    functions suitable for marking down entire documents or \
18                    lines of text, a command-line program that you can use to \
19                    mark down documents interactively or from a script, and a \
20                    tiny (3 programs so far) suite of example programs that \
21                    show how to fully utilize the markdown library. \
22                    \
23                    My markdown also does, by default, various \
24                    smartypants-style substitutions.
25                   
26homepage            http://www.pell.portland.or.us/~orc/Code/discount/
27
28checksums           rmd160  e471ae4e59a47deb74e6d5d54e49911149476d99 \
29                    sha256  8526ebd3db19f482b49ff4f0c77a9427e7c6169b8b387ae39afd79ba41d12b52
30
31configure.cmd       ./configure.sh
32configure.args      --mandir=${prefix}/share/man \
33                    --with-dl=Both \
34                    --enable-all-features \
35                    --shared
36post-configure {
37    if { ${os.platform} eq "darwin" } {
38        set suffix .dylib
39    } else {
40        set suffix .so
41    }
42    reinplace \
43        "s|-dynamiclib|& -install_name ${prefix}/lib/libmarkdown${suffix}|" \
44        ${worksrcpath}/librarian.sh
45}
46
47destroot.target     install.everything
48
49use_parallel_build  yes
50