Ticket #42680: Portfile

File Portfile, 2.0 KB (added by jul_bsd@…, 11 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 115503 2014-01-03 18:48:05Z mojca@macports.org $
3
4PortSystem          1.0
5
6name                libevt
7version             20140112
8categories-append   security
9platforms           darwin
10supported_archs     noarch
11
12maintainers         nomaintainer
13
14license             LGPL
15
16description         Library and tooling to access the Windows Event Log (EVT) format
17
18homepage            https://code.google.com/p/libevt/
19
20distname            libevt-alpha-${version}
21master_sites        https://googledrive.com/host/0B3fBvzttpiiSYm01VnUtLXNUZ2M/
22worksrcdir          libevt-${version}
23
24checksums           md5     4a0040f9b941689362b8f48e56ad48e7 \
25                    rmd160  4e40a30f70a053b456619e7d9b9da8a6dddb3079 \
26                    sha256  51499e3e847230333c28ae58290e1a3dbb4ec34aeba2d31a35f3aaed3d64e778
27
28configure.args-append --disable-dependency-tracking
29
30## => do the manual way, in post-destroot ...
31#post-configure {
32#       ## FIXME! NOK, tons of other file
33#       reinplace "s|PYTHON_PACKAGE_DIR = /Library/Python/2.7/site-packages|PYTHON_PACKAGE_DIR = ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages|" ${worksrcpath}/Makefile
34#
35#}
36
37
38## FIXME: a way to split in two packages: lib and python bindings?
39
40default_variants +debug +python
41
42variant debug {
43        configure.args-append --enable-verbose-output --enable-debug-output
44}
45
46## FIXME: howto point specific python?
47variant python {
48        depends_build-append  port:python27
49        configure.args-append --enable-python \
50                --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
51        post-destroot {
52                xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
53                foreach file [glob -directory ${destroot}/Library/Python/2.7/site-packages *] {
54                        move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
55                }
56        }
57}