Ticket #42687: Portfile

File Portfile, 2.3 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 119218 2014-04-20 23:07:50Z jeremyhu@macports.org $
3
4PortSystem 1.0
5
6name        libewf
7version        20140608
8categories    security
9maintainers    nomaintainer
10license             LGPL-3+
11platforms    darwin
12description         Libewf and tooling to access the Expert Witness Compression Format (EWF).
13long_description    Libewf is a library for support of the Expert Witness \
14                    Compression Format (EWF), it support both the SMART \
15                    format (EWF-S01) and the EnCase format (EWF-E01)\
16                    Libewf allows you to read and write media information within the EWF files.
17homepage            https://code.google.com/p/libewf/
18
19depends_lib port:openssl path:lib/pkgconfig/fuse.pc:osxfuse
20
21master_sites        https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/
22
23checksums           md5     fdf615f23937fad8e02b60b9e3e5fb35 \
24                    rmd160  bd86f502d9e196dde0de81753595b7b34daa545f \
25                    sha256  d14030ce6122727935fbd676d0876808da1e112721f3cb108564a4d9bf73da71
26
27depends_lib port:openssl
28
29configure.args-append --disable-dependency-tracking
30
31default_variants +debug +python27
32
33variant debug description { enable debug } {
34    configure.args-append --enable-verbose-output --enable-debug-output
35}
36
37variant python27 description { Python Bindings using Python 2.7} {
38    ## Enforce the right python config
39    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
40
41    depends_lib-append port:python27
42    configure.args-append --enable-python \
43                          --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
44    post-destroot {
45        if [file exists ${destroot}/Library/Python/2.7/site-packages/pyewf.a ] {
46            xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
47            foreach file [glob -directory ${destroot}/Library/Python/2.7/site-packages *] {
48                move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
49            }
50        }
51    }
52}
53
54livecheck.type      regex
55livecheck.url       [lindex ${master_sites} 0]
56livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}