Ticket #42789: 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 117733 2014-03-10 06:44:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libevt
7version             20140531
8categories-append   security
9platforms           darwin
10maintainers         nomaintainer
11license             LGPL-3+
12
13description         Library and tooling to access the Windows Event Log (EVT) format
14
15long_description    ${description}
16
17homepage            https://code.google.com/p/libevt/
18master_sites        https://googledrive.com/host/0B3fBvzttpiiSYm01VnUtLXNUZ2M/
19
20distname            ${name}-alpha-${version}
21worksrcdir          ${name}-${version}
22
23checksums           rmd160  ab3a259f56aeee5f556c4f3bd0556b2103a84241 \
24                    sha256  190a3c82eee6b611f7bc074e9f684f8ae4d7895e6c33b4f7676c420aad8da2e0
25
26depends_lib         port:gettext
27
28variant universal {}
29configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]"
30
31post-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
40default_variants +debug +python27
41
42variant debug description {Enable verbose and debug output} {
43    configure.args-append --enable-verbose-output --enable-debug-output
44}
45
46variant 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
63livecheck.type      regex
64livecheck.url       [lindex ${master_sites} 0]
65livecheck.regex     ${name}-alpha-(\[0-9.\]+)${extract.suffix}