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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libewf |
---|
7 | version 20140608 |
---|
8 | categories security |
---|
9 | maintainers nomaintainer |
---|
10 | license LGPL-3+ |
---|
11 | platforms darwin |
---|
12 | description Libewf and tooling to access the Expert Witness Compression Format (EWF). |
---|
13 | long_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. |
---|
17 | homepage https://code.google.com/p/libewf/ |
---|
18 | |
---|
19 | depends_lib port:openssl path:lib/pkgconfig/fuse.pc:osxfuse |
---|
20 | |
---|
21 | master_sites https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/ |
---|
22 | |
---|
23 | checksums md5 fdf615f23937fad8e02b60b9e3e5fb35 \ |
---|
24 | rmd160 bd86f502d9e196dde0de81753595b7b34daa545f \ |
---|
25 | sha256 d14030ce6122727935fbd676d0876808da1e112721f3cb108564a4d9bf73da71 |
---|
26 | |
---|
27 | depends_lib port:openssl |
---|
28 | |
---|
29 | configure.args-append --disable-dependency-tracking |
---|
30 | |
---|
31 | default_variants +debug +python27 |
---|
32 | |
---|
33 | variant debug description { enable debug } { |
---|
34 | configure.args-append --enable-verbose-output --enable-debug-output |
---|
35 | } |
---|
36 | |
---|
37 | variant 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 | |
---|
54 | livecheck.type regex |
---|
55 | livecheck.url [lindex ${master_sites} 0] |
---|
56 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|