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 4 4 PortSystem 1.0 5 5 6 6 name libevt 7 version 20140 1127 version 20140731 8 8 categories-append security 9 9 platforms darwin 10 10 maintainers nomaintainer … … 20 20 distname ${name}-alpha-${version} 21 21 worksrcdir ${name}-${version} 22 22 23 checksums md5 4a0040f9b941689362b8f48e56ad48e7 \ 24 rmd160 4e40a30f70a053b456619e7d9b9da8a6dddb3079 \ 25 sha256 51499e3e847230333c28ae58290e1a3dbb4ec34aeba2d31a35f3aaed3d64e778 23 checksums rmd160 f825de315408a9d289409fb3da4fe641b56252fa \ 24 sha256 66fecfc8044a3e6b0a68faee294e14d1072de81a79449ff499c7b48a6567eb26 26 25 27 26 depends_lib port:gettext 28 27 28 variant universal {} 29 configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]" 29 30 31 post-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 } 30 37 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 40 39 41 default_variants +debug +python 40 default_variants +debug +python27 42 41 43 42 variant debug description {Enable verbose and debug output} { 44 43 configure.args-append --enable-verbose-output --enable-debug-output 45 44 } 46 45 47 ## FIXME: howto point specific python? 48 variant python description {Use python 2.7} { 46 variant 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 49 50 depends_lib-append port:python27 50 51 configure.args-append --enable-python \ 51 52 --with-pyprefix=`${prefix}/bin/python2.7-config --prefix` 52 53 post-destroot { 54 if [file exists ${destroot}/Library/Python/2.7/site-packages/pyevt.a ] { 53 55 xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/ 54 56 foreach file [glob -directory ${destroot}/Library/Python/2.7/site-packages *] { 55 57 move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/ 56 58 } 59 } 57 60 } 58 61 } 59 62