Ticket #42688: Portfile

File Portfile, 2.3 KB (added by jul_bsd@…, 9 years ago)

20140729

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$
3
4PortSystem          1.0
5
6PortGroup           github 1.0
7
8github.setup        libyal libqcow 20141021
9#name                libqcow
10#version             20141021
11categories-append   security
12platforms           darwin
13maintainers         yahoo.fr:jul_bsd openmaintainer
14license             LGPL-3+
15description         Library and tooling to access the QEMU Copy-On-Write (QCOW) image format.
16long_description    ${description}
17
18## Note: We want "release source"not source code
19master_sites        https://github.com/libyal/${name}/releases/download/${version}/
20distname            libqcow-alpha-${version}
21worksrcdir          libqcow-${version}
22
23depends_lib         port:gettext \
24                    port:libiconv \
25                    port:osxfuse \
26                    port:zlib \
27                    port:openssl \
28                    port:libcstring \
29                    port:libcerror \
30                    port:libcthreads \
31                    port:libcdata \
32                    port:libclocale \
33                    port:libcnotify \
34                    port:libcsplit \
35                    port:libuna \
36                    port:libcfile \
37                    port:libcpath \
38                    port:libbfio \
39                    port:libfcache \
40                    port:libfdata \
41                    port:libcaes \
42                    port:libcsystem
43
44default_variants +debug +python27
45
46variant debug description {Enable verbose and debug output} {
47    configure.args-append --enable-verbose-output --enable-debug-output
48}
49
50variant python27 description { Python Bindings using Python 2.7} {
51    ## Enforce the right python config
52    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
53
54    depends_lib-append  port:python27
55    configure.args-append --enable-python \
56        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
57    post-destroot {
58        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
59        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
60            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
61        }
62    }
63}
64