Ticket #42686: 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 libolecf 20141026
9categories-append   security
10platforms           darwin
11maintainers         yahoo.fr:jul_bsd openmaintainer
12license             LGPL-3+
13description         Library and tools to access the OLE 2 Compound File (OLECF) 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            libolecf-alpha-${version}
19worksrcdir          libolecf-${version}
20
21checksums           rmd160  6494ddb93f7b3d8693ae900c2071f9d6918905a5 \
22                    sha256  a633a47d4ad94cb6df80146c2c59f93f1ed6d4f98dbbc88c31f35f0ddd1fe5dc
23
24depends_lib         port:gettext \
25                    port:libiconv \
26                    port:osxfuse \
27                    port:libcstring \
28                    port:libcerror \
29                    port:libcthreads \
30                    port:libcdata \
31                    port:libclocale \
32                    port:libcnotify \
33                    port:libcsplit \
34                    port:libuna \
35                    port:libcfile \
36                    port:libcpath \
37                    port:libbfio \
38                    port:libfdatetime \
39                    port:libfguid \
40                    port:libfole \
41                    port:libfvalue \
42                    port:libfwps \
43                    port:libcsystem
44
45
46default_variants +debug +python27
47
48variant debug description {Enable verbose and debug output} {
49    configure.args-append --enable-verbose-output --enable-debug-output
50}
51
52variant python27 description { Python Bindings using Python 2.7} {
53    ## Enforce the right python config
54    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
55
56    depends_lib-append  port:python27
57    configure.args-append --enable-python \
58        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
59    post-destroot {
60        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
61        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
62            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
63        }
64    }
65}
66