source: trunk/dports/kde/kdepimlibs4/Portfile

Last change on this file was 153562, checked in by nicos@…, 14 months ago

kdepimlibs4: reinstate internal gpgpme++ from kdepimlibs4 for dependents, removed in r153292. Move headers away to avoid conflict with gpgme

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
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: Portfile 153562 2016-10-04 13:59:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4    1.1
6
7name                kdepimlibs4
8version             4.14.3
9revision            5
10categories          kde kde4
11maintainers         nicos
12license             GPL-2+ LGPL-2+ BSD
13description         KDE4 core PIM libraries
14long_description    Core libraries necessary for Personal Information Management (PIM) in KDE4
15platforms           darwin
16homepage            http://www.kde.org
17master_sites        kde:stable/${version}/src/
18use_xz              yes
19distname            kdepimlibs-${version}
20
21checksums           rmd160  95af39ad4848fe48efbd4e3be8b4b0767530ec60 \
22                    sha256  65edb1bec191be1b6f8450dc71eadae734f4ab0585aab0a885207390399868d7
23
24#The only binaries linking to openssl (through QtNetwork) are libkimap.dylib
25#and libmailtransport.dylib, which are purely LPGL, thus not conflicting with
26#openssl license, apart from plugins in kioslaves
27license_noconflict  openssl
28
29depends_lib-append  port:kdelibs4 \
30                    port:akonadi \
31                    port:boost \
32                    port:libical \
33                    port:openldap \
34                    port:prison \
35                    port:cyrus-sasl2 \
36                    port:shared-mime-info \
37                    port:qjson \
38                    port:libxslt \
39                    port:libxml2 \
40                    port:perl5 \
41                    port:gpgme
42
43#Suppress build of kioslaves which conflict with openssl
44patchfiles-append   patch-CMakeLists.diff
45
46configure.args-append   -DMAILTRANSPORT_INPROCESS_SMTP=Off
47
48pre-configure {
49    #Deactivating gpgme++ to avoid conflict with gpgme port
50    reinplace "s|%PREFIX%|${prefix}|g" \
51        ${worksrcpath}/gpgme++/CMakeLists.txt
52}
53
54pre-activate {
55    if {[file exists ${applications_dir}/KDE4/akonadi2xml.app/Contents/Info.plist]
56        && ![catch {set vers [lindex [registry_active kdepim4-runtime] 0]}] 
57        && [vercmp [lindex $vers 1] 4.12.0] < 0} {
58            registry_deactivate_composite kdepim4-runtime "" [list ports_nodepcheck 1] 
59    }
60}
61
62post-destroot {
63    #Move headers only in case of main port
64    if {${subport} eq ${name}} {
65        #Move internal gpgme headers out of the way
66        file mkdir ${destroot}${prefix}/include/KDE4
67        move ${destroot}${prefix}/include/gpgme++ \
68            ${destroot}${prefix}/include/KDE4/gpgme++
69    }
70}
71
72subport kdepimlibs4-kioslaves {
73
74#kioslaves components conflict with openssl license
75license_noconflict-delete   openssl
76
77#The main kdepimlibs4 is required for linking with other libraries
78depends_lib-append      port:kdepimlibs4
79
80#Builds only kioslaves components
81patchfiles-delete   patch-CMakeLists.diff
82patchfiles-append   patch-CMakeLists-kioslaves.diff
83
84#Suppresses files already installed by kdepimlibs4 main port
85post-destroot {
86    delete ${destroot}${prefix}/share/mime/packages/kdepimlibs-mime.xml
87}
88}
89
90livecheck.url       http://kde.mirrors.hoobly.com/stable/
91livecheck.regex     (\\d+(\\.\\d+)+)
Note: See TracBrowser for help on using the repository browser.