Adding rkward 0.5.3, transparent frontend to R for KDE4

This commit is contained in:
abveritas 2010-10-04 00:12:37 +00:00
parent 2a055b42c6
commit 66fb2ed4fb
2 changed files with 64 additions and 0 deletions

44
rkward/PKGBUILD Normal file
View File

@ -0,0 +1,44 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# from AUR package http://aur.archlinux.org/packages.php?ID=4277
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=rkward
pkgver=0.5.3
pkgrel=1
pkgdesc="Easy to use transparent frontend to R for KDE4"
arch=('i686' 'x86_64')
url="http://rkward.sourceforge.net/"
license=('GPL')
depends=('kdelibs>=4.0.0' 'qt>=4.3' 'r>=2.8.0' 'docbook-xml')
makedepends=('cmake' 'automoc4')
conflicts=('kdemod-rkward<0.5.0')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
${pkgname}-kde-4-5.patch)
md5sums=('1a1fb29b5f59b6150a3fd08bb51672b7'
'7b92988b62939107cdfd5281f8e28ebc')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Patch to build with KDE 4.5.x thanx to Rex Dieter
patch -Np1 -i "${srcdir}/${pkgname}-kde-4-5.patch"
cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr"
make
}
package(){
cd "${srcdir}/${pkgname}-${pkgver}"
make install
# Install the rkward R package to installation directory
mkdir -p "${pkgdir}/usr/lib/R/library"
R CMD INSTALL -l "${pkgdir}/usr/lib/R/library" "${srcdir}/${pkgname}-${pkgver}/${pkgname}/rbackend/rpackages/${pkgname}"
rm -vf "${pkgdir}/usr/lib/R/library/R.css"
rm -vf "${pkgdir}/usr/share/apps/katepart/syntax/r.xml"
}

View File

@ -0,0 +1,20 @@
diff -up rkward-0.5.3/doc/rkward/index.docbook.docbook_dtd rkward-0.5.3/doc/rkward/index.docbook
--- rkward-0.5.3/doc/rkward/index.docbook.docbook_dtd 2008-01-21 12:58:24.000000000 -0600
+++ rkward-0.5.3/doc/rkward/index.docbook 2010-06-28 07:44:46.000521291 -0500
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1-Based Variant V1.0//EN" "dtd/kdex.dtd" [
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY rkward '<application>RKWard</application>'>
<!ENTITY kapp "&rkward;"><!-- replace rkward here -->
<!ENTITY % addindex "IGNORE">
diff -up rkward-0.5.3/doc/rkward/writing_plugins_introduction.docbook.docbook_dtd rkward-0.5.3/doc/rkward/writing_plugins_introduction.docbook
--- rkward-0.5.3/doc/rkward/writing_plugins_introduction.docbook.docbook_dtd 2010-03-04 06:08:32.000000000 -0600
+++ rkward-0.5.3/doc/rkward/writing_plugins_introduction.docbook 2010-06-28 07:45:09.256770072 -0500
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1-Based Variant V1.0//EN" "dtd/kdex.dtd" [
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY rkward '<application>RKWard</application>'>
<!ENTITY kapp "&rkward;"><!-- replace rkward here -->
<!ENTITY % addindex "IGNORE">