diff options
author | Randall Wald <rdwald@gmail.com> | 2014-06-21 17:49:09 -0400 |
---|---|---|
committer | Randall Wald <rdwald@gmail.com> | 2014-06-21 17:49:09 -0400 |
commit | 9a78799cf0fd6b00c706c8d62cdcaad8e6c7ea61 (patch) | |
tree | 3ba3c5e4a4060502fa5cf17ff5683c03566cd5c8 | |
parent | Removing x11-plugins/purple-plugin_pack, since version in tree now (diff) | |
download | rwald-9a78799cf0fd6b00c706c8d62cdcaad8e6c7ea61.tar.gz rwald-9a78799cf0fd6b00c706c8d62cdcaad8e6c7ea61.tar.bz2 rwald-9a78799cf0fd6b00c706c8d62cdcaad8e6c7ea61.zip |
Added RWeka and RWekajars packages (copied from R_Overlay) without slot
dependency for Java. WARNING: This is experimental and may fail.
-rw-r--r-- | eclass/R-packages.eclass | 50 | ||||
-rw-r--r-- | sci-CRAN/RWeka/ChangeLog | 12 | ||||
-rw-r--r-- | sci-CRAN/RWeka/Manifest | 3 | ||||
-rw-r--r-- | sci-CRAN/RWeka/RWeka-0.4.23-r1.ebuild | 25 | ||||
-rw-r--r-- | sci-CRAN/RWekajars/ChangeLog | 13 | ||||
-rw-r--r-- | sci-CRAN/RWekajars/Manifest | 3 | ||||
-rw-r--r-- | sci-CRAN/RWekajars/RWekajars-3.7.11.1-r1.ebuild | 14 |
7 files changed, 120 insertions, 0 deletions
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass new file mode 100644 index 0000000..8544e70 --- /dev/null +++ b/eclass/R-packages.eclass @@ -0,0 +1,50 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install pkg_postinst + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="byte-compile" + +DEPEND="dev-lang/R" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +R-packages_src_unpack() { + unpack ${A} + mv ${PN//_/.} ${P} +} + +R-packages_src_prepare() { + cd ${P} + epatch_user +} + +R-packages_src_compile() { + MAKEFLAGS="CFLAGS=${CFLAGS// /\\ } CXXFLAGS=${CXXFLAGS// /\\ } FFLAGS=${FFLAGS// /\\ } FCFLAGS=${FCFLAGS// /\\ } LDFLAGS=${LDFLAGS// /\\ }" \ + R CMD INSTALL ${S}/${P} -l . $(use byte-compile && echo "--byte-compile") +} + +R-packages_src_install() { + insinto /usr/$(get_libdir)/R/site-library + doins -r ${PN//_/.} +} + +R-packages_pkg_postinst() { + if [[ "${_UNRESOLVABLE_PACKAGES:-}" ]]; then + # _UNRESOLVABLE_PACKAGES is only set if it has more than zero items + local _max=${#_UNRESOLVABLE_PACKAGES[*]} i= + + einfo "Dependency(-ies):" + for (( i=0; i<${_max}; i++ )); do + einfo "- ${_UNRESOLVABLE_PACKAGES[$i]}" + done + einfo 'are (is) suggested by upstream but could not be found.' + einfo 'Please install it manually from the R interpreter if you need it.' + fi +} diff --git a/sci-CRAN/RWeka/ChangeLog b/sci-CRAN/RWeka/ChangeLog new file mode 100644 index 0000000..d5e0ee4 --- /dev/null +++ b/sci-CRAN/RWeka/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sci-CRAN/RWeka +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*RWeka-0.4.23-r1 (21 Jun 2014) + + 21 Jun 2014; Randall Wald <rwald@gentoo.org> +RWeka-0.4.23-r1.ebuild: + + + Copy of sci-CRAN/RWeka from R_Overlay with Java dependency no longer slotted + + diff --git a/sci-CRAN/RWeka/Manifest b/sci-CRAN/RWeka/Manifest new file mode 100644 index 0000000..80223ca --- /dev/null +++ b/sci-CRAN/RWeka/Manifest @@ -0,0 +1,3 @@ +DIST RWeka_0.4-23.tar.gz 408562 SHA256 040173ca3be0899bb59604a36fee5fe7190a627911e4fde59615fae2a2f933dc SHA512 8ca78cc4bd08c1de3c82853fbb5f1ff1ca5db708920a0e93035ae3d2538c56d3ead48365afeb49849256b8c16ba5719edba456e9ee4229da20ae1db6a666fc82 WHIRLPOOL d1b99cb9e9c427d7c91a8e83976fae3066b4ef30017394f7c7a7ca9645cfc141f09238678935f9c6137ba09cc98015caceb0d0109d5e64ba8091879b4573ab69 +EBUILD RWeka-0.4.23-r1.ebuild 597 SHA256 53e40c492f58157b6ff093ad3a71f97916265f0e757e9bbd27fb86a490d8b185 SHA512 38ef04961a99389fee99e7d427838c03d1334ddcb5086dd3a5bb11d7b36df5fb2cad8bc397a13e297d57c81c0eb6cc52501bfb7e2c632a2b9054587b44515be5 WHIRLPOOL e8e121c88e577de5e2730a6b0f9e9beaf4b6931105dd91e40da88ac34ef80d45f06b5167727c60eb593b4d64fe06cf9aa2c48c975b833251e8dba1f5ba1ce55d +MISC ChangeLog 302 SHA256 3ec874b4a53013d2c04d4a89df34a448731072e896d568148da310e9f06363df SHA512 37f3b5ecf8bb75513d32d8108227e638a04a48e3ccd4ab8682692133f357def6221940aa7b52ae00e92a4e58746ab51ebcbf6ae413eba22f95683830ba3cc2d4 WHIRLPOOL ea409530fa1c834919de9fc9ae6982467d95b40786433e37b282d4f1eab32e6fe1e094c4148045e5ed05c729cbfa3f91c8ef01e78f138abedbb778abc95a7bc2 diff --git a/sci-CRAN/RWeka/RWeka-0.4.23-r1.ebuild b/sci-CRAN/RWeka/RWeka-0.4.23-r1.ebuild new file mode 100644 index 0000000..fdd50a1 --- /dev/null +++ b/sci-CRAN/RWeka/RWeka-0.4.23-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit R-packages + +DESCRIPTION='R/Weka interface' +SRC_URI="http://cran.r-project.org/src/contrib/RWeka_0.4-23.tar.gz" +LICENSE='GPL-2' + +IUSE="${IUSE-} r_suggests_e1071 r_suggests_mlbench r_suggests_partykit" +R_SUGGESTS=" + r_suggests_e1071? ( sci-CRAN/e1071 ) + r_suggests_mlbench? ( sci-CRAN/mlbench ) + r_suggests_partykit? ( >=sci-CRAN/partykit-0.8.0 ) +" +DEPEND=">=sci-CRAN/RWekajars-3.7.11 + >=sci-CRAN/rJava-0.6.3 +" +RDEPEND="${DEPEND-} + virtual/jdk + ${R_SUGGESTS-} +" diff --git a/sci-CRAN/RWekajars/ChangeLog b/sci-CRAN/RWekajars/ChangeLog new file mode 100644 index 0000000..0e128df --- /dev/null +++ b/sci-CRAN/RWekajars/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for sci-CRAN/RWekajars +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*RWekajars-3.7.11.1-r1 (21 Jun 2014) + + 21 Jun 2014; Randall Wald <rwald@gentoo.org> +RWekajars-3.7.11.1-r1.ebuild: + + + Copy of sci-CRAN/RWekajars from R_Overlay with Java dependency no longer + slotted + + diff --git a/sci-CRAN/RWekajars/Manifest b/sci-CRAN/RWekajars/Manifest new file mode 100644 index 0000000..be5c131 --- /dev/null +++ b/sci-CRAN/RWekajars/Manifest @@ -0,0 +1,3 @@ +DIST RWekajars_3.7.11-1.tar.gz 6191185 SHA256 4c20cca37b07f65b173dcb1c8d8d4a8cd5917bc38dd09f27bfbb6f363b0d11dc SHA512 7818b95e397cb444777708712fb375a5d5c5b565840e5aaeb8af1bf651ca4ca6ab896eda849f74e454cd6fa774034131cc4ea5a7117d7ed1339863c483e3e251 WHIRLPOOL 09ac67ac5d9efd91cf9e0ebdbcff39057fa6f14106605bf9055cf37cf823c23ec37d39c9251b2e3de7b908b94493fe3d3f1915eb0561bc11c47f420d4d6e196a +EBUILD RWekajars-3.7.11.1-r1.ebuild 341 SHA256 cd21755a6e64409dc1628e32c83c6042ab62b32c1ab7ef6a41c967f5f73205f3 SHA512 354cb19c3de85cb4e85f113954a41aab8bd68e46d5344d5c93ae546265bb3912cec58dee802ed61c8e2a28612da23c4d3142287453f53910f9a3dff22b648699 WHIRLPOOL beae6411c88d22685e2ee18dec600fc0eba4f2d7753195fe9b40a87825b8a188b24fd02b39f6575e58fa1b85cb22af636429d336ae349c65a6f0d0e93551e8c1 +MISC ChangeLog 324 SHA256 04466bee176bfc59829cf9c5133511b9f4dfebec0123df663421ca30a3a1a9d3 SHA512 0cbe0d63420656907aff74301bc77d4d0bec64396900ca63c7a64e5abf621520b8fedd7ea62da24786f806a4a9223747dae28a39ad17e26e95c10b9609f54086 WHIRLPOOL 45b732cb7cd6c36a66998d5cceb135d2d5b5ee0c043bde3eeb0c971076f808b514bd740dab9cfc972e3244919da7bb75a91fbd6cd09e2a9096ce522445e365cb diff --git a/sci-CRAN/RWekajars/RWekajars-3.7.11.1-r1.ebuild b/sci-CRAN/RWekajars/RWekajars-3.7.11.1-r1.ebuild new file mode 100644 index 0000000..31656e8 --- /dev/null +++ b/sci-CRAN/RWekajars/RWekajars-3.7.11.1-r1.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit R-packages + +DESCRIPTION='R/Weka interface jars' +SRC_URI="http://cran.r-project.org/src/contrib/RWekajars_3.7.11-1.tar.gz" +LICENSE='GPL-2' + +DEPEND=">=sci-CRAN/rJava-0.6.3" +RDEPEND="${DEPEND-} virtual/jdk" |