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 117733 2014-03-10 06:44:40Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libevt |
---|
7 | version 20140531 |
---|
8 | categories-append security |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | license LGPL-3+ |
---|
12 | |
---|
13 | description Library and tooling to access the Windows Event Log (EVT) format |
---|
14 | |
---|
15 | long_description ${description} |
---|
16 | |
---|
17 | homepage https://code.google.com/p/libevt/ |
---|
18 | master_sites https://googledrive.com/host/0B3fBvzttpiiSYm01VnUtLXNUZ2M/ |
---|
19 | |
---|
20 | distname ${name}-alpha-${version} |
---|
21 | worksrcdir ${name}-${version} |
---|
22 | |
---|
23 | checksums rmd160 ab3a259f56aeee5f556c4f3bd0556b2103a84241 \ |
---|
24 | sha256 190a3c82eee6b611f7bc074e9f684f8ae4d7895e6c33b4f7676c420aad8da2e0 |
---|
25 | |
---|
26 | depends_lib port:gettext |
---|
27 | |
---|
28 | variant universal {} |
---|
29 | configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]" |
---|
30 | |
---|
31 | post-destroot { |
---|
32 | xinstall -d ${destroot}${prefix}/share/docs/${name} |
---|
33 | foreach f { AUTHORS COPYING NEWS README } { |
---|
34 | xinstall ${worksrcpath}/${f} ${destroot}${prefix}/share/docs/${name}/ |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | ## https://code.google.com/p/libevt/wiki/Testing |
---|
39 | |
---|
40 | default_variants +debug +python27 |
---|
41 | |
---|
42 | variant debug description {Enable verbose and debug output} { |
---|
43 | configure.args-append --enable-verbose-output --enable-debug-output |
---|
44 | } |
---|
45 | |
---|
46 | variant python27 description { Python Bindings using Python 2.7} { |
---|
47 | ## Enforce the right python config |
---|
48 | configure.env PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7 |
---|
49 | |
---|
50 | depends_lib-append port:python27 |
---|
51 | configure.args-append --enable-python \ |
---|
52 | --with-pyprefix=`${prefix}/bin/python2.7-config --prefix` |
---|
53 | post-destroot { |
---|
54 | if [file exists ${destroot}/Library/Python/2.7/site-packages/pyevt.a ] { |
---|
55 | xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/ |
---|
56 | foreach file [glob -directory ${destroot}/Library/Python/2.7/site-packages *] { |
---|
57 | move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/ |
---|
58 | } |
---|
59 | } |
---|
60 | } |
---|
61 | } |
---|
62 | |
---|
63 | livecheck.type regex |
---|
64 | livecheck.url [lindex ${master_sites} 0] |
---|
65 | livecheck.regex ${name}-alpha-(\[0-9.\]+)${extract.suffix} |
---|