source: trunk/dports/devel/coccinelle/Portfile @ 130440

Last change on this file since 130440 was 130440, checked in by larryv@…, 4 years ago

coccinelle: Provide only Python 2.7 and 3.4 variants

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 130440 2014-12-30 18:45:57Z larryv@macports.org $
3
4PortSystem          1.0
5
6name                coccinelle
7version             1.0.0-rc21
8revision            1
9license             GPL-2
10maintainers         g5pw openmaintainer
11
12categories          devel textproc ml
13description         ${name} is a semantic diff.
14long_description    ${name} is a program matching and transformation engine which\
15                    provides the language SmPL (Semantic Patch Language) for\
16                    specifying desired matches and transformations in C code.
17
18platforms           darwin
19
20homepage            http://coccinelle.lip6.fr
21
22depends_lib         port:ocaml \
23                    port:ocaml-findlib \
24                    port:ocaml-menhir
25
26master_sites        ${homepage}/distrib
27
28extract.suffix      .tgz
29
30checksums           rmd160  d4e6e425a8161e5461c525c9f27c9dbf603342ec \
31                    sha256  a6609a1f800f84d058c9b395edd0597171594b685f551a9b9c03728a1b416783
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                   
49# TODO: Remove after 2015-12-26.
50variant python26 requires python27 description {Legacy variant} {}
51variant python31 requires python34 description {Legacy variant} {}
52variant python32 requires python34 description {Legacy variant} {}
53variant python33 requires python34 description {Legacy variant} {}
54
55variant python27 conflicts python34 description {Build with python 2.7 support} {
56    set mypydir ${frameworks_dir}/Python.framework/Versions/2.7
57    configure.args-delete   --disable-python
58    configure.args-append   --enable-python \
59                            -with-python=${mypydir}/bin/python
60    configure.env-append \
61                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
62    depends_lib-append      port:python27
63}
64
65variant python34 conflicts python27 description {Build with python 3.4 support} {
66    set mypydir ${frameworks_dir}/Python.framework/Versions/3.4
67    configure.args-delete   --disable-python
68    configure.args-append   --enable-python \
69                            --with-python=${mypydir}/bin/python3
70    configure.env-append \
71                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
72    depends_lib-append      port:python34
73}
74
75variant pcre description {Enable PCRE support} {
76    configure.args-delete   --disable-pcre
77    configure.args-append   --enable-pcre
78
79    depends_lib-append      port:ocaml-pcre
80}
81
82livecheck.type      regex
83livecheck.url       ${homepage}/download.php
84livecheck.regex     "Current version: (\\d+\\.\\d+\\.\\d+(-rc\\d+)?)"
Note: See TracBrowser for help on using the repository browser.