# -*- 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
# $Id: Portfile 107850 2013-07-07 08:16:46Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                rocs
version             4.10.5
categories          kde kde4
maintainers         sharky nicos
license             GPL-2+ LGPL-2.1 GFDL-1.2
description         Graph Theory IDE
long_description    KDE ${description}
homepage            http://www.kde.org

platforms           darwin
depends_lib-append  port:boost port:libkdeedu

master_sites        kde:stable/${version}/src/
use_xz              yes

checksums           rmd160  a1f08a6b944c3af83876167b182e72f4095e3d23 \
                    sha256  f2b8a53de2225b593e71caaff0a489be68343d90bc46df921994bc242036ab83

#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict  openssl

if {![variant_isset docs]} {
    patchfiles-append   patch-CMakeLists.txt.diff
}

post-destroot {
    system "install_name_tool -id ${prefix}/lib/kde4/rocs_GraphStructure.dylib ${destroot}${prefix}/lib/kde4/rocs_GraphStructure.dylib"
    system "install_name_tool -change ${prefix}/lib/rocs_GraphStructure.dylib ${prefix}/lib/kde4/rocs_GraphStructure.dylib ${destroot}${prefix}/lib/kde4/rocs_transformedgesplugin.so"
    system "install_name_tool -change ${prefix}/lib/rocs_GraphStructure.dylib ${prefix}/lib/kde4/rocs_GraphStructure.dylib ${destroot}${prefix}/lib/kde4/rocs_dotfileformat.so"
    system "install_name_tool -change ${prefix}/lib/rocs_GraphStructure.dylib ${prefix}/lib/kde4/rocs_GraphStructure.dylib ${destroot}${prefix}/lib/kde4/rocs_gmlfileformat.so"
    system "install_name_tool -change ${prefix}/lib/rocs_GraphStructure.dylib ${prefix}/lib/kde4/rocs_GraphStructure.dylib ${destroot}${prefix}/lib/kde4/rocs_kmlfileformat.so" 
}

livecheck.url       http://kde.mirrors.hoobly.com/stable/
livecheck.regex     (\\d+(\\.\\d+)+)
