# -*- 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 # $Id: Portfile 125926 2014-09-29 18:58:31Z cal@macports.org $ PortSystem 1.0 name libevt version 20140731 categories-append security platforms darwin maintainers nomaintainer license LGPL-3+ description Library and tooling to access the Windows Event Log (EVT) format long_description ${description} homepage https://code.google.com/p/libevt/ master_sites https://googledrive.com/host/0B3fBvzttpiiSYm01VnUtLXNUZ2M/ distname ${name}-alpha-${version} worksrcdir ${name}-${version} checksums rmd160 f825de315408a9d289409fb3da4fe641b56252fa \ sha256 66fecfc8044a3e6b0a68faee294e14d1072de81a79449ff499c7b48a6567eb26 depends_lib port:gettext variant universal {} configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]" post-destroot { xinstall -d ${destroot}${prefix}/share/docs/${name} foreach f { AUTHORS COPYING NEWS README } { xinstall ${worksrcpath}/${f} ${destroot}${prefix}/share/docs/${name}/ } } ## https://code.google.com/p/libevt/wiki/Testing default_variants +debug +python27 variant debug description {Enable verbose and debug output} { configure.args-append --enable-verbose-output --enable-debug-output } variant python27 description {Python Bindings using Python 2.7} { ## Enforce the right python config configure.env PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7 depends_lib-append port:python27 configure.args-append --enable-python \ --with-pyprefix=`${prefix}/bin/python2.7-config --prefix` post-destroot { xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/ foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] { move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/ } } } livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ${name}-alpha-(\[0-9.\]+)${extract.suffix}