Ticket #42683: Portfile

File Portfile, 2.6 KB (added by jul_bsd@…, 9 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$
3
4PortSystem          1.0
5
6PortGroup           github 1.0
7
8github.setup        libyal libvshadow 20150106
9categories-append   security
10platforms           darwin
11maintainers         yahoo.fr:jul_bsd openmaintainer
12license             LGPL-3+
13description         Library and tools to access the Volume Shadow Snapshot \
14                    (VSS) format. The VSS format is used by Windows, as \
15                    of Vista, to maintain copies of data on a storage media volume.
16long_description    ${description}
17
18## Note: We want "release source"not source code
19master_sites        https://github.com/libyal/${name}/releases/download/${version}/
20distname            libvshadow-alpha-${version}
21worksrcdir          libvshadow-${version}
22
23checksums           rmd160  f2f129475c026806955f9a6ba40e82a9bd957f70 \
24                    sha256  4b6edd70aef52ae5a23d7e7e42be7db44c2c68e5566d0626c8f03234088b108c
25
26depends_lib         port:gettext \
27                    port:libiconv \
28                    port:osxfuse \
29                    port:libcstring \
30                    port:libcerror \
31                    port:libcthreads \
32                    port:libcdata \
33                    port:libclocale \
34                    port:libcnotify \
35                    port:libcsplit \
36                    port:libuna \
37                    port:libcfile \
38                    port:libcpath \
39                    port:libbfio \
40                    port:libfdatetime \
41                    port:libfguid \
42                    port:libcsystem
43
44#default_variants   +debug +python27
45default_variants    +python27
46
47## FIXME! create header issue
48#   libvshadow_io_handle.c:590:18: error: use of undeclared identifier 'guid_string'
49variant debug description {Enable verbose and debug output} {
50    configure.args-append --enable-verbose-output --enable-debug-output
51}
52
53variant python27 description { Python Bindings using Python 2.7} {
54    ## Enforce the right python config
55    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
56
57    depends_lib-append  port:python27
58    configure.args-append --enable-python \
59        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
60    post-destroot {
61        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
62        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
63            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
64        }
65    }
66}
67