Ticket #42682: Portfile

File Portfile, 2.5 KB (added by jul_bsd@…, 9 years ago)

bump to 20140714

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