Revision: 119489 https://trac.macports.org/changeset/119489 Author: mk@macports.org Date: 2014-04-27 03:36:38 -0700 (Sun, 27 Apr 2014) Log Message: ----------- rkward-devel: new devel port for RKWard (ticket #32837) Added Paths: ----------- trunk/dports/kde/rkward-devel/ trunk/dports/kde/rkward-devel/Portfile Added: trunk/dports/kde/rkward-devel/Portfile =================================================================== --- trunk/dports/kde/rkward-devel/Portfile (rev 0) +++ trunk/dports/kde/rkward-devel/Portfile 2014-04-27 10:36:38 UTC (rev 119489) @@ -0,0 +1,95 @@ +# -*- 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$ + +PortSystem 1.0 +fetch.type svn +svn.url http://svn.code.sf.net/p/rkward/code/trunk +svn.revision 4784 +worksrcdir ${workpath}/trunk/rkward + +name rkward-devel +conflicts rkward +version 0.6.1-${svn.revision} +categories kde kde4 math science +maintainers hhu.de:meik.michalke +license GPL-2 +platforms darwin + +description KDE frontend to the R statistics language + +long_description RKWard aims to become an easy to use, transparent frontend to R, a powerful system \ + for statistical computation and graphics. Besides a convenient GUI for the most important \ + statistical functions, future versions will also provide seamless integration with an office-suite. + +homepage http://rkward.sourceforge.net + +master_sites https://sourceforge.net/projects/rkward/files/Current_Stable_Releases + +PortGroup cmake 1.0 + +depends_lib port:kdelibs4 \ + port:kate \ + port:R + +# add port:okular once the graphics device is fully functional +# this needs port:poppler with +qt4 +quartz varaints which cannot be +# specified with depends_lib-append +variant okular description {Add okular for nice PDF handling} { + depends_lib-append port:okular +} + +if {${configure.compiler} == "clang"} { + # force the use of gcc 4.7 to be able to link with R-framework + depends_lib-append port:gcc47 + configure.compiler macports-gcc-4.7 + configure.objc /usr/bin/gcc + configure.env-append "OBJCXX=${configure.objc}" +} + +post-extract { + # creates the build dir if it doesn't exist + # this won't return errors if directory is already there + file mkdir ${worksrcdir}/build +} + +configure.dir ${worksrcdir}/build +configure.args-append \ + -DNO_R_XML=1 \ + -DRKVERSION_NUMBER=${version} \ + -DBUNDLE_INSTALL_DIR=${applications_dir} \ + -DR_EXECUTABLE=${prefix}/Library/Frameworks/R.framework/Resources/R +# work around moved Qt include dir +if { ![file exists ${prefix}/include/Qt/qglobal.h] && [file exists ${prefix}/include/QtCore/qglobal.h] } { + configure.args-append -DQT_QT_INCLUDE_DIR=${prefix}/include/QtCore +} +configure.cmd cmake .. + +# configure R to use Mac binaries by default +# you must first install the OS X packages of CRAN R, as we'll link against them +subport rkward-devel-binary { + conflicts-append rkward-devel rkward-binary rkward-devel-debug rkward-debug + depends_lib-delete port:gcc47 port:R + configure.compiler llvm-gcc-4.2 + configure.args-delete \ + -DR_EXECUTABLE=${prefix}/Library/Frameworks/R.framework/Resources/R + configure.args-append \ + -DUSE_BINARY_PACKAGES=1 \ + -DR_EXECUTABLE=/Library/Frameworks/R.framework/Resources/R \ + -DR_LIBDIR=${prefix}/Library/Frameworks/R.framework/Resources/library + # create libdir if it doesn't exist + file mkdir ${prefix}/Library/Frameworks/R.framework/Resources/library +} + +# compile with full debugging support +subport rkward-devel-debug { + conflicts-append rkward-devel rkward-devel-binary rkward-debug rkward-binary + depends_lib-append port:valgrind + configure.args-append -DCMAKE_BUILD_TYPE=debugfull +} + +build.dir ${worksrcdir}/build + +pre-pkg { + file copy -force -- ${worksrcdir}/macports/postinstall ${package.scripts}/postinstall + file attributes ${package.scripts}/postinstall -permissions 0755 +} Property changes on: trunk/dports/kde/rkward-devel/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native