Ticket #42685: Portfile

File Portfile, 2.4 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 libmsiecf 20141025
9categories-append   security
10platforms           darwin
11maintainers         nomaintainer
12license             LGPL-3+
13description         Library and tools to access the Microsoft Internet Explorer (MSIE) Cache File (index.dat) files.
14long_description    ${description}
15
16## Note: We want "release source"not source code
17master_sites        https://github.com/libyal/${name}/releases/download/${version}/
18distname            libmsiecf-alpha-${version}
19worksrcdir          libmsiecf-${version}
20
21checksums           rmd160  24433d1a6b4bf6945ce4fcdd7ab2ab4541f73580 \
22                    sha256  690ba6e415fc3f0a4c00c54b871f37d8700bdaafc2277f9431e091d4519d00ab
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:libfdatetime \
38                    port:libfguid \
39                    port:libfole \
40                    port:libfvalue \
41                    port:libcsystem
42
43default_variants +debug +python27
44
45variant debug description {Enable verbose and debug output} {
46    configure.args-append --enable-verbose-output --enable-debug-output
47}
48
49variant python27 description { Python Bindings using Python 2.7} {
50    ## Enforce the right python config
51    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
52
53    depends_lib-append  port:python27
54    configure.args-append --enable-python \
55        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
56    post-destroot {
57        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
58        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
59            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
60        }
61    }
62}
63