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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libevt |
---|
7 | version 20140112 |
---|
8 | categories-append security |
---|
9 | platforms darwin |
---|
10 | supported_archs noarch |
---|
11 | |
---|
12 | maintainers nomaintainer |
---|
13 | |
---|
14 | license LGPL |
---|
15 | |
---|
16 | description Library and tooling to access the Windows Event Log (EVT) format |
---|
17 | |
---|
18 | homepage https://code.google.com/p/libevt/ |
---|
19 | |
---|
20 | distname libevt-alpha-${version} |
---|
21 | master_sites https://googledrive.com/host/0B3fBvzttpiiSYm01VnUtLXNUZ2M/ |
---|
22 | worksrcdir libevt-${version} |
---|
23 | |
---|
24 | checksums md5 4a0040f9b941689362b8f48e56ad48e7 \ |
---|
25 | rmd160 4e40a30f70a053b456619e7d9b9da8a6dddb3079 \ |
---|
26 | sha256 51499e3e847230333c28ae58290e1a3dbb4ec34aeba2d31a35f3aaed3d64e778 |
---|
27 | |
---|
28 | configure.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 | |
---|
40 | default_variants +debug +python |
---|
41 | |
---|
42 | variant debug { |
---|
43 | configure.args-append --enable-verbose-output --enable-debug-output |
---|
44 | } |
---|
45 | |
---|
46 | ## FIXME: howto point specific python? |
---|
47 | variant 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 | } |
---|