source: trunk/dports/security/libevt/Portfile @ 125926

Last change on this file since 125926 was 125926, checked in by cal@…, 5 years ago

libevt: update to 20140731, fix "no files matched glob pattern '*'", closes #42789

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
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 125926 2014-09-29 18:58:31Z cal@macports.org $
3
4PortSystem          1.0
5
6name                libevt
7version             20140731
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  f825de315408a9d289409fb3da4fe641b56252fa \
24                    sha256  66fecfc8044a3e6b0a68faee294e14d1072de81a79449ff499c7b48a6567eb26
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        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
55        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
56            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
57        }
58    }
59}
60
61livecheck.type      regex
62livecheck.url       [lindex ${master_sites} 0]
63livecheck.regex     ${name}-alpha-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.