source: trunk/dports/security/libevt/Portfile

Last change on this file was 137233, checked in by ryandesign@…, 2 years ago

libevt: install documentation to share/doc not share/docs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 137233 2015-06-07 06:20:24Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libevt
7version             20140731
8revision            1
9categories-append   security
10platforms           darwin
11maintainers         nomaintainer
12license             LGPL-3+
13
14description         Library and tooling to access the Windows Event Log (EVT) format
15
16long_description    ${description}
17
18homepage            https://code.google.com/p/libevt/
19master_sites        https://googledrive.com/host/0B3fBvzttpiiSYm01VnUtLXNUZ2M/
20
21distname            ${name}-alpha-${version}
22worksrcdir          ${name}-${version}
23
24checksums           rmd160  f825de315408a9d289409fb3da4fe641b56252fa \
25                    sha256  66fecfc8044a3e6b0a68faee294e14d1072de81a79449ff499c7b48a6567eb26
26
27depends_lib         port:gettext
28
29post-destroot {
30    set docdir ${prefix}/share/doc/${name}
31    xinstall -d ${destroot}${docdir}
32    xinstall -W ${worksrcpath} AUTHORS COPYING NEWS README ${destroot}${docdir}
33}
34
35## https://code.google.com/p/libevt/wiki/Testing
36
37default_variants +debug +python27
38
39variant debug description {Enable verbose and debug output} {
40    configure.args-append --enable-verbose-output --enable-debug-output
41}
42
43variant python27 description {Python Bindings using Python 2.7} {
44    ## Enforce the right python config
45    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
46
47    depends_lib-append port:python27
48    configure.args-append --enable-python \
49        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
50    post-destroot {
51        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
52        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
53            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
54        }
55    }
56}
57
58livecheck.type      regex
59livecheck.url       [lindex ${master_sites} 0]
60livecheck.regex     ${name}-alpha-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.