Ticket #42684: Portfile

File Portfile, 2.5 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 libregf 20141030
9categories          security
10platforms           darwin
11maintainers         yahoo.fr:jul_bsd openmaintainer
12license             LGPL-3+
13description         Library and tools to access the Windows NT Registry File (REGF) format.
14long_description    ${description}
15
16## Note: We want "release source"not source code
17master_sites        https://github.com/libyal/${name}/releases/download/${version}/
18distname            libregf-alpha-${version}
19worksrcdir          libregf-${version}
20
21checksums           rmd160  170ba2ab5dae39f069cba95b70366fa050291df0 \
22                    sha256  42369e636c465bdc3e2bdf4566fec4fafb01239fbe7870995b011eb9173fb7f3
23
24depends_lib         port:gettext \
25                    port:libiconv \
26                    port:osxfuse \
27                    port:libcstring \
28                    port:libcerror \
29                    port:libcthreads \
30                    port:libcdata \
31                    port:libclocale \
32                    port:libcnotify \
33                    port:libcsplit \
34                    port:libuna \
35                    port:libcfile \
36                    port:libcpath \
37                    port:libbfio \
38                    port:libfcache \
39                    port:libfdata \
40                    port:libcdatetime \
41                    port:libfguid \
42                    port:libfwnt \
43                    port:libfole \
44                    port:libfwps \
45                    port:libfwsi \
46                    port:libcsystem
47
48default_variants +debug +python27
49
50variant debug description {Enable verbose and debug output} {
51    configure.args-append --enable-verbose-output --enable-debug-output
52}
53
54variant python27 description { Python Bindings using Python 2.7} {
55    ## Enforce the right python config
56    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
57
58    depends_lib-append  port:python27
59    configure.args-append --enable-python \
60        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
61    post-destroot {
62        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
63        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
64            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
65        }
66    }
67}
68