Ticket #42682: Portfile.2

File Portfile.2, 1.9 KB (added by jul_bsd@…, 10 years ago)
Line 
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
4PortSystem          1.0
5
6name                liblnk
7version             20140731
8categories-append   security
9platforms           darwin
10
11maintainers         yahoo.fr:jul_bsd openmaintainer
12
13license             LGPL-3+
14
15description         Library and tools to access the Windows Shortcut File (LNK) Format.
16long_description    ${description}
17
18homepage            https://code.google.com/p/liblnk/
19
20master_sites        https://googledrive.com/host/0B3fBvzttpiiSQmluVC1YeDVvZWM/
21distname            ${name}-alpha-${version}
22worksrcdir          ${name}-${version}
23
24checksums           md5     b43f83a800ed28198d03fea1dcdbea82 \
25                    rmd160  5bc2f8750717a003a167aedb8cb4134dc4f8d21e \
26                    sha256  bb0ae8d735ac954c79ab4d56a88664466af6abe6f59b98f2ffe20b2811499e04
27
28depends_lib         port:gettext
29
30default_variants +debug +python27
31
32variant debug description {Enable verbose and debug output} {
33    configure.args-append --enable-verbose-output --enable-debug-output
34}
35
36variant 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
51livecheck.type      regex
52livecheck.url       [lindex ${master_sites} 0]
53livecheck.regex     ${name}-alpha-(\[0-9.\]+)${extract.suffix}
54