Ticket #46081: Portfile

File Portfile, 1.9 KB (added by jul_bsd@…, 10 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: Portfile 125926 2014-09-29 18:58:31Z cal@macports.org $
3
4PortSystem          1.0
5
6PortGroup           github 1.0
7
8github.setup        libyal libesedb 20141110
9categories-append   security
10platforms           darwin
11maintainers         nomaintainer
12license             LGPL-3+
13description         Library and tools to access the Extensible Storage Engine (ESE) Database File (EDB) format.
14long_description    ${description}
15
16distname            ${name}-alpha-${version}
17worksrcdir          ${name}-${version}
18
19checksums           rmd160  f222c827592164b01572513f08928fbcef2e97d3 \
20                    sha256  b4648fd48e38db66493cf43563a165b3048af5d0c43d9c50e6728882c8925f71
21
22#depends_lib         port:gettext
23
24post-destroot {
25    xinstall -d ${destroot}${prefix}/share/docs/${name}
26    foreach f { AUTHORS COPYING NEWS README } {
27        xinstall ${worksrcpath}/${f} ${destroot}${prefix}/share/docs/${name}/
28    }
29}
30
31default_variants +debug +python27
32
33variant debug description {Enable verbose and debug output} {
34    configure.args-append --enable-verbose-output --enable-debug-output
35}
36
37variant python27 description {Python Bindings using Python 2.7} {
38    ## Enforce the right python config
39    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
40
41    depends_lib-append port:python27
42    configure.args-append --enable-python \
43        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
44    post-destroot {
45        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
46        foreach file [glob -nocomplain -directory ${destroot}/Library/Python/2.7/site-packages *] {
47            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
48        }
49    }
50}
51