Ticket #42789: patch-libevt-Portfile.diff

File patch-libevt-Portfile.diff, 2.7 KB (added by jul_bsd@…, 10 years ago)
  • security/libevt/Portfile

    old new  
    44PortSystem          1.0
    55
    66name                libevt
    7 version             20140112
     7version             20140731
    88categories-append   security
    99platforms           darwin
    1010maintainers         nomaintainer
     
    2020distname            ${name}-alpha-${version}
    2121worksrcdir          ${name}-${version}
    2222
    23 checksums           md5     4a0040f9b941689362b8f48e56ad48e7 \
    24                     rmd160  4e40a30f70a053b456619e7d9b9da8a6dddb3079 \
    25                     sha256  51499e3e847230333c28ae58290e1a3dbb4ec34aeba2d31a35f3aaed3d64e778
     23checksums           rmd160  f825de315408a9d289409fb3da4fe641b56252fa \
     24                    sha256  66fecfc8044a3e6b0a68faee294e14d1072de81a79449ff499c7b48a6567eb26
    2625
    2726depends_lib         port:gettext
    2827
     28variant universal {}
     29configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]"
    2930
     31post-destroot {
     32    xinstall -d ${destroot}${prefix}/share/docs/${name}
     33    foreach f { AUTHORS COPYING NEWS README } {
     34        xinstall ${worksrcpath}/${f} ${destroot}${prefix}/share/docs/${name}/
     35    }
     36}
    3037
    31 ## => do the manual way, in post-destroot ...
    32 #post-configure {
    33 #   ## FIXME! NOK, tons of other file
    34 #   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
    35 #
    36 #}
    37 
    38 
    39 ## FIXME: a way to split in two packages: lib and python bindings?
     38## https://code.google.com/p/libevt/wiki/Testing
    4039
    41 default_variants +debug +python
     40default_variants +debug +python27
    4241
    4342variant debug description {Enable verbose and debug output} {
    4443    configure.args-append --enable-verbose-output --enable-debug-output
    4544}
    4645
    47 ## FIXME: howto point specific python?
    48 variant python description {Use python 2.7} {
     46variant python27 description { Python Bindings using Python 2.7} {
     47    ## Enforce the right python config
     48    configure.env       PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7
     49
    4950    depends_lib-append port:python27
    5051    configure.args-append --enable-python \
    5152        --with-pyprefix=`${prefix}/bin/python2.7-config --prefix`
    5253    post-destroot {
     54      if [file exists ${destroot}/Library/Python/2.7/site-packages/pyevt.a ] {
    5355        xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    5456        foreach file [glob -directory ${destroot}/Library/Python/2.7/site-packages *] {
    5557            move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    5658        }
     59      }
    5760    }
    5861}
    5962