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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | github.setup libyal libesedb 20141110 |
---|
9 | categories-append security |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | license LGPL-3+ |
---|
13 | description Library and tools to access the Extensible Storage Engine (ESE) Database File (EDB) format. |
---|
14 | long_description ${description} |
---|
15 | |
---|
16 | distname ${name}-alpha-${version} |
---|
17 | worksrcdir ${name}-${version} |
---|
18 | |
---|
19 | checksums rmd160 f222c827592164b01572513f08928fbcef2e97d3 \ |
---|
20 | sha256 b4648fd48e38db66493cf43563a165b3048af5d0c43d9c50e6728882c8925f71 |
---|
21 | |
---|
22 | #depends_lib port:gettext |
---|
23 | |
---|
24 | post-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 | |
---|
31 | default_variants +debug +python27 |
---|
32 | |
---|
33 | variant debug description {Enable verbose and debug output} { |
---|
34 | configure.args-append --enable-verbose-output --enable-debug-output |
---|
35 | } |
---|
36 | |
---|
37 | variant 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 | |
---|