source: trunk/dports/x11/xorg-libxcb/Portfile

Last change on this file was 151183, checked in by mf2k@…, 12 months ago

xorg-libxcb: Add python35 variant. Remove obsolete python variants. (#51592)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 151183 2016-08-09 17:14:39Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            xorg-libxcb
6version         1.12
7revision        2
8categories      x11 devel
9license         X11
10maintainers     jeremyhu openmaintainer
11description     X.org libxcb
12homepage        http://xcb.freedesktop.org/
13platforms       darwin macosx
14long_description The X C Binding (XCB) library
15master_sites     ${homepage}dist/
16
17distname        libxcb-${version}
18checksums           rmd160  6deb619ae87e84f014987c24abdc46e44b21197c \
19                    sha256  4adfb1b7c67e99bc9c2ccb110b2f175686576d2f792c8a71b9c8b19014057b5b
20use_bzip2       yes
21use_parallel_build yes
22
23depends_build   port:pkgconfig
24
25depends_lib     port:xorg-libXau \
26                port:xorg-libXdmcp \
27                port:xorg-xcb-proto \
28                port:xorg-libpthread-stubs
29
30configure.args  --disable-build-docs
31
32patch.pre_args -p1
33patchfiles \
34    0001-Fix-inconsistent-use-of-tabs-vs.-space.patch \
35    0002-Remove-from-param-names-in-manually-written-headers.patch \
36    0003-Correct-param-e-to-error-in-xcb_poll_for_reply.patch
37
38variant docs description "Install extra documentation" {
39    depends_build-append \
40        port:doxygen \
41        path:bin/dot:graphviz
42
43    depends_skip_archcheck-append \
44        doxygen
45
46    configure.args-delete \
47        --disable-build-docs
48
49    configure.args-append \
50        --enable-build-docs
51
52    configure.env-append \
53        DOXYGEN="${prefix}/bin/doxygen"
54}
55
56variant python27 conflicts python34 python35 description {Use python 2.7} {
57    depends_run-append      port:python27
58    configure.python        ${prefix}/bin/python2.7
59}
60
61variant python34 conflicts python27 python35 description {Use python 3.4} {
62    depends_run-append      port:python34
63    configure.python        ${prefix}/bin/python3.4
64}
65
66variant python35 conflicts python27 python34 description {Use python 3.5} {
67    depends_run-append      port:python35
68    configure.python        ${prefix}/bin/python3.5
69}
70
71if {![variant_isset python34] && ![variant_isset python35]} {
72    default_variants +python27
73}
74
75livecheck.type  regex
76livecheck.url   ${master_sites}?C=M&O=D
77livecheck.regex libxcb-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.