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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | github.setup libyal libbde 20150204 |
---|
9 | categories-append security |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | license LGPL-3+ |
---|
13 | description Library and tools to access the BitLocker Drive Encryption (BDE) encrypted volumes |
---|
14 | long_description ${description} |
---|
15 | |
---|
16 | distname ${name}-alpha-${version} |
---|
17 | worksrcdir ${name}-${version} |
---|
18 | |
---|
19 | ## Note: We want "release source", not source code |
---|
20 | master_sites https://github.com/libyal/${name}/releases/download/${version}/ |
---|
21 | checksums rmd160 c95283a7f7504122158dc5dcef3171a15f33b317 \ |
---|
22 | sha256 1e5509a6b6a891fd4b388bae4a7bb838672c60ab541ff90a355ed06f94e84efb |
---|
23 | |
---|
24 | #depends_lib port:gettext |
---|
25 | |
---|
26 | post-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 | |
---|
33 | default_variants +python27 |
---|
34 | |
---|
35 | variant debug description {Enable verbose and debug output} { |
---|
36 | configure.args-append --enable-verbose-output --enable-debug-output |
---|
37 | } |
---|
38 | |
---|
39 | variant 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 | |
---|