Skip to content
Permalink
Browse files

libevt: new port, version 20140112 (https://trac.macports.org/ticket/…

…42680)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@117733 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
ryandesign committed Mar 10, 2014
1 parent 7b8dc20 commit 164463847fa0706b67ea1bb1dda65586bb36ee73
Showing with 62 additions and 0 deletions.
  1. +62 −0 security/libevt/Portfile
@@ -0,0 +1,62 @@
# -*- 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
# $Id$

PortSystem 1.0

name libevt
version 20140112
categories-append security
platforms darwin
maintainers nomaintainer
license LGPL-3+

description Library and tooling to access the Windows Event Log (EVT) format

long_description ${description}

homepage https://code.google.com/p/libevt/
master_sites https://googledrive.com/host/0B3fBvzttpiiSYm01VnUtLXNUZ2M/

distname ${name}-alpha-${version}
worksrcdir ${name}-${version}

checksums md5 4a0040f9b941689362b8f48e56ad48e7 \
rmd160 4e40a30f70a053b456619e7d9b9da8a6dddb3079 \
sha256 51499e3e847230333c28ae58290e1a3dbb4ec34aeba2d31a35f3aaed3d64e778

depends_lib port:gettext



## => do the manual way, in post-destroot ...
#post-configure {
# ## FIXME! NOK, tons of other file
# 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
#
#}


## FIXME: a way to split in two packages: lib and python bindings?

default_variants +debug +python

variant debug description {Enable verbose and debug output} {
configure.args-append --enable-verbose-output --enable-debug-output
}

## FIXME: howto point specific python?
variant python description {Use python 2.7} {
depends_lib-append port:python27
configure.args-append --enable-python \
--with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
post-destroot {
xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
foreach file [glob -directory ${destroot}/Library/Python/2.7/site-packages *] {
move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
}
}
}

livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-alpha-(\[0-9.\]+)${extract.suffix}

0 comments on commit 1644638

Please sign in to comment.
You can’t perform that action at this time.