Skip to content

Commit

Permalink
buildtypes: Add support for R packages
Browse files Browse the repository at this point in the history
use BEE_BUILDTYPE=r-package to build r packages.

r packages are currently not detected automatically
  • Loading branch information
mariux committed Mar 27, 2013
1 parent e39b178 commit f7fbbf5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ BUILDTYPES+=make
BUILDTYPES+=perl-module
BUILDTYPES+=perl-module-makemaker
BUILDTYPES+=python-module
BUILDTYPES+=r-package

HELPER_HOOKS_SHELL+=update-mime-database
HELPER_HOOKS_SHELL+=glib-compile-schemas
Expand Down
44 changes: 44 additions & 0 deletions buildtypes/r-package.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
#
# bee magic for python modules
#
# Copyright (C) 2009-2012
# Marius Tolzmann <tolzmann@molgen.mpg.de>
# Tobias Dreyer <dreyer@molgen.mpg.de>
# and other bee developers
#
# This file is part of bee.
#
# bee is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

# this needs to be forced for now
if [ ${BEE_BUILDTYPE} != "r-package" ] ; then
return
fi

BEE_BUILDTYPE_DETECTED="r-package"

: ${R:=R}

RHOME=$(${R} RHOME)

RLIBRARY="${RHOME}/library"

#### bee_install() ############################################################

bee_install() {
start_cmd mkdir -p ${D}/${RLIBRARY}
start_cmd ${R} CMD INSTALL -l ${D}/${RLIBRARY} ${S}
}

0 comments on commit f7fbbf5

Please sign in to comment.