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: Portfile 126347 2014-10-08 14:48:31Z nicos@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup kde4 1.1 |
---|
6 | PortGroup python 1.0 |
---|
7 | |
---|
8 | name py-pykde4 |
---|
9 | version 4.14.2 |
---|
10 | categories kde kde4 devel |
---|
11 | license LGPL-2+ |
---|
12 | maintainers openmaintainer |
---|
13 | description Python bindings for the KDE Development Platform |
---|
14 | long_description This package contains PyKDE, the Python bindings for the KDE \ |
---|
15 | libraries, that allow you to write KDE programs using Python instead of \ |
---|
16 | C++. It contains at least the following modules under the \ |
---|
17 | PyKDE namespace: \ |
---|
18 | \ |
---|
19 | * dnssd \ |
---|
20 | * kdecore \ |
---|
21 | * kdeui \ |
---|
22 | * khtml \ |
---|
23 | * kio \ |
---|
24 | * knewstuff \ |
---|
25 | * kparts \ |
---|
26 | * kterminal \ |
---|
27 | * ktexteditor \ |
---|
28 | * kutils \ |
---|
29 | * plasma \ |
---|
30 | * solid \ |
---|
31 | \ |
---|
32 | And a few KDE related technologies like: \ |
---|
33 | \ |
---|
34 | * akonadi \ |
---|
35 | * phonon \ |
---|
36 | * soprano \ |
---|
37 | \ |
---|
38 | This package provides modules for all supported Python versions. |
---|
39 | platforms darwin |
---|
40 | master_sites kde:stable/${version}/src/ |
---|
41 | use_xz yes |
---|
42 | distname pykde4-${version} |
---|
43 | checksums rmd160 b4a3d4b3a53895c36b96e312359e4cd2553eaacb \ |
---|
44 | sha256 fb31551e54ab6f321e6d318664e8e4e8031003de0fd688d63971edca888ff7a2 |
---|
45 | |
---|
46 | python.versions 27 32 33 34 |
---|
47 | python.default_version 27 |
---|
48 | |
---|
49 | foreach py_ver ${python.versions} { |
---|
50 | subport py${py_ver}-pykde4 {} |
---|
51 | } |
---|
52 | |
---|
53 | depends_build port:pkgconfig |
---|
54 | depends_lib-append port:kdelibs4 \ |
---|
55 | port:soprano \ |
---|
56 | port:boost \ |
---|
57 | port:py${python.version}-pyqt4 \ |
---|
58 | port:dbus-python${python.version} |
---|
59 | depends_run-append port:python${python.version} port:py${python.version}-pyqt4 |
---|
60 | |
---|
61 | configure.args-append -DPYKDEUIC4_ALTINSTALL=TRUE \ |
---|
62 | -DDEFAULT_PYTHON_VERSION=false -DPYTHON_EXECUTABLE=${prefix}/bin/python${python.branch} \ |
---|
63 | -DPYTHON_INCLUDE_PATH=${frameworks_dir}/Python.framework/Versions/${python.branch}/Headers \ |
---|
64 | -DPYTHON_INCLUDE_DIR2=${frameworks_dir}/Python.framework/Versions/${python.branch}/Headers \ |
---|
65 | -DPYTHON_LIBRARY=${frameworks_dir}/Python.framework/Versions/${python.branch}/Python \ |
---|
66 | -DPYTHON_SITE_PACKAGES_INSTALL_DIR=${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages |
---|
67 | |
---|
68 | # patches come directly from Kubuntu, after doing a hardcoded -p1 |
---|
69 | patchfiles-append python_modules_dont_link_against_libpython.diff \ |
---|
70 | add_qt_kde_definitions.diff \ |
---|
71 | fix_kpythonpluginfactory_build.diff \ |
---|
72 | make_pykde4_respect_sip_flags.diff \ |
---|
73 | pythonpluginfactory_use_versioned_python_lib.diff \ |
---|
74 | optional_install_sip_files.diff \ |
---|
75 | python3.3.diff \ |
---|
76 | pythonpluginfactory_python3.diff \ |
---|
77 | kubuntu_include_dirs.diff \ |
---|
78 | kubuntu_kpythonpluginfactory_3.2support.diff \ |
---|
79 | pykde4-macports-adaptations.diff \ |
---|
80 | pykde4-macports-adaptations2.diff |
---|
81 | |
---|
82 | |
---|
83 | compiler.blacklist llvm-gcc-4.2 macports-llvm-gcc-4.2 |
---|
84 | |
---|
85 | livecheck.url http://kde.mirrors.hoobly.com/stable/ |
---|
86 | livecheck.regex (\\d+(\\.\\d+)+) |
---|