Ticket #46069: Portfile

File Portfile, 2.0 KB (added by jul_bsd@…, 10 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: Portfile 125926 2014-09-29 18:58:31Z cal@macports.org $
3
4PortSystem          1.0
5
6PortGroup           github 1.0
7
8github.setup        libyal libbde 20150204
9categories-append   security
10platforms           darwin
11maintainers         nomaintainer
12license             LGPL-3+
13description         Library and tools to access the BitLocker Drive Encryption (BDE) encrypted volumes
14long_description    ${description}
15
16distname            ${name}-alpha-${version}
17worksrcdir          ${name}-${version}
18
19## Note: We want "release source", not source code
20master_sites        https://github.com/libyal/${name}/releases/download/${version}/
21checksums           rmd160  c95283a7f7504122158dc5dcef3171a15f33b317 \
22                    sha256  1e5509a6b6a891fd4b388bae4a7bb838672c60ab541ff90a355ed06f94e84efb
23
24#depends_lib         port:gettext
25
26post-destroot {
27    xinstall -d ${destroot}${prefix}/share/docs/${name}
28    foreach f { AUTHORS COPYING NEWS README } {
29        xinstall ${worksrcpath}/${f} ${destroot}${prefix}/share/docs/${name}/
30    }
31}
32
33default_variants    +python27
34
35variant debug description {Enable verbose and debug output} {
36    configure.args-append --enable-verbose-output --enable-debug-output
37}
38
39variant python27 description {Python Bindings using Python 2.7} {
40    ## Enforce the right python config
41    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
42
43    depends_lib-append port:python27
44    configure.args-append --enable-python \
45        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
46    post-destroot {
47        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
48        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
49            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
50        }
51    }
52}
53