Ticket #42681: Portfile

File Portfile, 2.6 KB (added by jul_bsd@…, 9 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$
3
4PortSystem          1.0
5
6PortGroup           github 1.0
7
8github.setup        libyal libevtx 20141112
9categories          security python
10platforms           darwin
11maintainers         yahoo.fr:jul_bsd openmaintainer
12license             LGPL-3+
13description         Library and tooling to access the Windows XML Event Log (EVTX) format
14long_description    ${description}
15
16## Note: We want "release source"not source code
17master_sites        https://github.com/libyal/${name}/releases/download/${version}/
18distname            libevtx-alpha-${version}
19worksrcdir          libevtx-${version}
20
21checksums           rmd160  81b185051f7589aaa7d8ad75ee9f0a58976cc35d \
22                    sha256  f0042a0b93c651cf3f8daac9b73fd9cdd841437453cb8d194f4a6846d21b1d03
23
24depends_lib         port:gettext \
25                    port:libiconv \
26                    port:libcstring \
27                    port:libcerror \
28                    port:libcthreads \
29                    port:libcdata \
30                    port:libclocale \
31                    port:libcnotify \
32                    port:libcsplit \
33                    port:libuna \
34                    port:libcfile \
35                    port:libcpath \
36                    port:libbfio \
37                    port:libfcache \
38                    port:libfdata \
39                    port:libfdatetime \
40                    port:libfguid \
41                    port:libfvalue \
42                    port:libfwevt \
43                    port:libfwnt \
44                    port:libexe \
45                    port:libregf \
46                    port:libwrc \
47                    port:libcdirectory \
48                    port:libcsystem
49
50default_variants +debug +python27
51
52variant debug description {Enable verbose and debug output} {
53    configure.args-append --enable-verbose-output --enable-debug-output
54}
55
56variant python27 description { Python Bindings using Python 2.7} {
57    ## Enforce the right python config
58    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
59
60    depends_lib-append  port:python27
61    configure.args-append --enable-python \
62        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
63    post-destroot {
64        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
65        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
66            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
67        }
68    }
69}
70