Ticket #26494: Portfile.6

File Portfile.6, 1.3 KB (added by list-ener@…, 14 years ago)

Portfile for devel/py27-pyside -tools

Line 
1# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem      1.0
5PortGroup   qt4 1.0
6PortGroup   cmake 1.0
7
8name            py27-pyside-tools
9version         0.2.7
10#revision    1
11categories      python devel
12platforms       macosx
13maintainers     openmaintainer
14description     PySide-tools contains build tools for the PySide Qt4 binding.
15long_description \
16                PySide-tools contains build tools for the PySide Qt4 bindings (uic, ...).
17homepage        http://www.pyside.org/
18master_sites    http://www.pyside.org/files/
19distname        pyside-tools-${version}
20use_bzip2           yes
21dist_subdir         devel
22
23checksums           md5     43d31a95dfa1344095809f3176ab2cca \
24                    sha1    e71c5f6a3688e0f11a644480dca8c62100896b1a \
25                    rmd160  2f4f99f38d7e709ac102912fd08cdb4a57ea1c03
26
27depends_lib-append      port:py27-pyside
28
29worksrcdir          ${distname}/build
30
31configure.args-append   -DSITE_PACKAGE=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ ..
32
33
34post-extract {
35    # Need to create the build dir:
36    file mkdir ${worksrcpath}
37}
38
39set pyversion 2.7
40set pyversion_join [join [split ${pyversion} "."] ""]
41
42post-destroot   {
43        reinplace "s|^#!/usr/bin/env python$|#!/usr/bin/env python${pyversion}|g" ${destroot}/opt/local/bin/pyside-uic
44}
45