mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 17:43:11 -04:00
dev-R/RcppTOML: new package
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
37
dev-R/RcppTOML/RcppTOML-0.1.7.ebuild
Normal file
37
dev-R/RcppTOML/RcppTOML-0.1.7.ebuild
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit R-packages
|
||||
|
||||
DESCRIPTION='Rcpp Bindings to C++ parser for TOML files'
|
||||
HOMEPAGE="
|
||||
https://cran.r-project.org/package=RcppTOML
|
||||
https://github.com/eddelbuettel/rcpptoml
|
||||
"
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE='GPL-2+'
|
||||
|
||||
DEPEND="
|
||||
dev-cpp/cpptoml
|
||||
>=dev-lang/R-3.3.0
|
||||
>=dev-R/Rcpp-0.11.5
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r inst/tinytest || die
|
||||
# replace bundled cpptoml
|
||||
rm inst/include/cpptoml.h || die
|
||||
ln -s /usr/include/cpptoml.h inst/include/cpptoml.h || die
|
||||
R-packages_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
R-packages_src_install
|
||||
rm "${ED}/usr/lib64/R/site-library/RcppTOML/include/cpptoml.h" || die
|
||||
dosym ../../../../../../usr/include/cpptoml.h "${EPREFIX}/usr/lib64/R/site-library/RcppTOML/include/cpptoml.h"
|
||||
}
|
||||
|
||||
SUGGESTED_PACKAGES="dev-R/tinytest"
|
||||
Reference in New Issue
Block a user