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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name liblnk |
---|
7 | version 20140731 |
---|
8 | categories-append security |
---|
9 | platforms darwin |
---|
10 | |
---|
11 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
12 | |
---|
13 | license LGPL-3+ |
---|
14 | |
---|
15 | description Library and tools to access the Windows Shortcut File (LNK) Format. |
---|
16 | long_description ${description} |
---|
17 | |
---|
18 | homepage https://code.google.com/p/liblnk/ |
---|
19 | |
---|
20 | master_sites https://googledrive.com/host/0B3fBvzttpiiSQmluVC1YeDVvZWM/ |
---|
21 | distname ${name}-alpha-${version} |
---|
22 | worksrcdir ${name}-${version} |
---|
23 | |
---|
24 | checksums md5 b43f83a800ed28198d03fea1dcdbea82 \ |
---|
25 | rmd160 5bc2f8750717a003a167aedb8cb4134dc4f8d21e \ |
---|
26 | sha256 bb0ae8d735ac954c79ab4d56a88664466af6abe6f59b98f2ffe20b2811499e04 |
---|
27 | |
---|
28 | depends_lib port:gettext |
---|
29 | |
---|
30 | default_variants +debug +python27 |
---|
31 | |
---|
32 | variant debug description {Enable verbose and debug output} { |
---|
33 | configure.args-append --enable-verbose-output --enable-debug-output |
---|
34 | } |
---|
35 | |
---|
36 | variant python27 description { Python Bindings using Python 2.7} { |
---|
37 | ## Enforce the right python config |
---|
38 | configure.env PYTHON_CONFIG=${prefix}/bin/python2.7-config PYTHON_VERSION=2.7 |
---|
39 | |
---|
40 | depends_lib-append port:python27 |
---|
41 | configure.args-append --enable-python \ |
---|
42 | --with-pyprefix=`${prefix}/bin/python2.7-config --prefix` |
---|
43 | post-destroot { |
---|
44 | xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/ |
---|
45 | # foreach file [glob -directory ${destroot}/Library/Python/2.7/site-packages *] { |
---|
46 | # move ${file} ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/ |
---|
47 | # } |
---|
48 | } |
---|
49 | } |
---|
50 | |
---|
51 | livecheck.type regex |
---|
52 | livecheck.url [lindex ${master_sites} 0] |
---|
53 | livecheck.regex ${name}-alpha-(\[0-9.\]+)${extract.suffix} |
---|
54 | |
---|