source: trunk/dports/devel/coccinelle/Portfile

Last change on this file was 144102, checked in by khindenburg@…, 23 months ago

coccinelle: remove legacy variants

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144102 2016-01-01 21:37:27Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                coccinelle
7version             1.0.4
8license             GPL-2
9maintainers         g5pw openmaintainer
10
11categories          devel textproc ml
12description         ${name} is a semantic diff.
13long_description    ${name} is a program matching and transformation engine which\
14                    provides the language SmPL (Semantic Patch Language) for\
15                    specifying desired matches and transformations in C code.
16
17platforms           darwin
18
19homepage            http://coccinelle.lip6.fr
20
21depends_lib         port:ocaml \
22                    port:ocaml-findlib \
23                    port:ocaml-menhir \
24                    port:ocaml-camlp4
25
26master_sites        ${homepage}/distrib
27
28extract.suffix      .tgz
29
30checksums           rmd160  fb363fd359bf41fbde07748f9eae31ce34de95f9 \
31                    sha256  7f823813a2ea299c0f6c01d8419b83c4dc6617116d32ba99d726443a1c22b06d
32
33configure.args-append \
34                    --enable-release \
35                    --disable-dependency-tracking \
36                    --disable-pycaml \
37                    --enable-dynlink \
38                    --enable-camlp4 \
39                    --enable-menhirLib \
40                    --enable-ocaml \
41                    --enable-opt \
42                    --disable-pcre \
43                    --disable-python \
44                    --with-menhir=${prefix}/bin/menhir
45
46# Build optimized version only
47# build.target        opt-only
48
49variant python27 conflicts python34 description {Build with python 2.7 support} {
50    set mypydir ${frameworks_dir}/Python.framework/Versions/2.7
51    configure.args-delete   --disable-python
52    configure.args-append   --enable-python \
53                            -with-python=${mypydir}/bin/python
54    configure.env-append \
55                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
56    depends_lib-append      port:python27
57}
58
59variant python34 conflicts python27 description {Build with python 3.4 support} {
60    set mypydir ${frameworks_dir}/Python.framework/Versions/3.4
61    configure.args-delete   --disable-python
62    configure.args-append   --enable-python \
63                            --with-python=${mypydir}/bin/python3
64    configure.env-append \
65                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
66    depends_lib-append      port:python34
67}
68
69variant pcre description {Enable PCRE support} {
70    configure.args-delete   --disable-pcre
71    configure.args-append   --enable-pcre
72
73    depends_lib-append      port:ocaml-pcre
74}
75
76livecheck.type      regex
77livecheck.url       ${homepage}/download.php
78livecheck.regex     "Current version: (\\d+\\.\\d+\\.\\d+(-rc\\d+)?)"
Note: See TracBrowser for help on using the repository browser.