# -*- 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 66227 2010-04-07 15:00:50Z snc@macports.org $

PortSystem      1.0

name            qalculate-kde
version         0.9.7
categories      math kde kde3
platforms       darwin
maintainers     vcn.com:jjstickel

description     Qalculate! is a multi-purpose desktop calculator for GNU/Linux.

long_description \
                Qalculate! is a multi-purpose desktop calculator for \
                GNU/Linux. It is small and simple to use but with much \
                power and versatility underneath. Features include \
                customizable functions, units, arbitrary precision, \
                plotting, and a user-friendly interface.

homepage        http://qalculate.sourceforge.net/
master_sites    sourceforge:qalculate

checksums           md5     90104c97894f4775737349ad99428bcf \
                    sha1    fa0db8a3fb80264328770c4bbcbc0892a4d4ce91 \
                    rmd160  cd789e07f5b33faf4a834e6693af4d97e17d879b

depends_build   path:bin/pkg-config:pkgconfig

depends_lib     port:libqalculate\
                port:kdelibs3 

depends_run     port:gnuplot

use_parallel_build  yes

configure.cppflags-append "-L${prefix}/lib"
configure.cflags-append   "-L${prefix}/lib"
configure.env             QTDIR=${prefix}/lib/qt3
configure.args            --with-qt-dir=${prefix}/lib/qt3 \
                          --with-extra-includes=${prefix}/include \
                          --without-arts

post-destroot {
    file delete ${destroot}${prefix}/bin/qalculate
    file rename ${destroot}${prefix}/share/doc/HTML ${destroot}${prefix}/share/doc/kde 
}
