diff options
author | Justin Lecher <jlec@gentoo.org> | 2014-01-15 12:17:58 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2014-01-15 12:17:58 +0000 |
commit | ddacdbba0e72c950aa5399aa2d160a59c15e8c4d (patch) | |
tree | 044260a1d774fd1ae54b7491f9fd9ddb44d80f1f /dev-lang/R | |
parent | Stable for amd64 wrt bug #497460 (diff) | |
download | historical-ddacdbba0e72c950aa5399aa2d160a59c15e8c4d.tar.gz historical-ddacdbba0e72c950aa5399aa2d160a59c15e8c4d.tar.bz2 historical-ddacdbba0e72c950aa5399aa2d160a59c15e8c4d.zip |
dev-lang/R: Drop old; fixes #478572 (EAPI <4 should be removed), #476010 & #476008 (Respect AR and LDFLAGS), #438544 (Installation Problems with version 2), #425708 (stack smashing)
Package-Manager: portage-2.2.8/cvs/Linux x86_64
Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'dev-lang/R')
-rw-r--r-- | dev-lang/R/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/R/Manifest | 35 | ||||
-rw-r--r-- | dev-lang/R/R-2.10.1.ebuild | 173 | ||||
-rw-r--r-- | dev-lang/R/R-2.15.3.ebuild | 204 |
4 files changed, 22 insertions, 398 deletions
diff --git a/dev-lang/R/ChangeLog b/dev-lang/R/ChangeLog index dce35921eeb2..406eceda2d56 100644 --- a/dev-lang/R/ChangeLog +++ b/dev-lang/R/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/R # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.228 2014/01/15 10:11:28 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.229 2014/01/15 12:17:57 jlec Exp $ + + 15 Jan 2014; Justin Lecher <jlec@gentoo.org> -R-2.10.1.ebuild, + -R-2.15.3.ebuild: + Drop old; fixes #478572 (EAPI <4 should be removed), #476010 & #476008 + (Respect AR and LDFLAGS), #438544 (Installation Problems with version 2), + #425708 (stack smashing) 15 Jan 2014; Agostino Sarubbo <ago@gentoo.org> R-3.0.1.ebuild: Stable for ia64, wrt bug #437508 diff --git a/dev-lang/R/Manifest b/dev-lang/R/Manifest index 0f554dc40824..df9b770eba7e 100644 --- a/dev-lang/R/Manifest +++ b/dev-lang/R/Manifest @@ -1,38 +1,33 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA512 AUX R-2.11.1-parallel.patch 633 SHA256 4ad6f007ffb390584de0c8a5935e98f98106f32394aac45c30c3fdfe77c00c70 SHA512 788eca6236dccaf3fd6a13387c167bf3b11625b32c5b658fb19b17521d8e2747170cfaa54eaca3a4703a89e1f9453399e013792f7f92e7e9d0adeafeefb7e6da WHIRLPOOL a8ebf8ea01406fe576d2f95d57efc1f3c42d9ba61f75bd1034f485c85e68576cdd1c46c5d0e3139b5de8da312c20e89c78d97395082b4ff821fde4248a1b2b58 AUX R-2.12.1-ldflags.patch 639 SHA256 dee11fd510d31add8166230a7af61b7e700f2f4f122cbe0a07310d0017874933 SHA512 49b73cff79c1521e214f036390f32eed8c7d4afd39082eabb7e6c59e5d7136f399ff7227117e418d4445647d25259dce8eb208a1ebe5990bf4ad87cefa250338 WHIRLPOOL 98ec264ac6d68e64dcbce32f4688aa458ba6d300202b6f31cd7580de68c693f0fb6aecba40cd0f6736a0ef9ff346d04cd96af06716a25c4a84a72551085837ed AUX R-2.13.1-zlib_header_fix.patch 464 SHA256 161f0fff63db5cb2cb4894321759997e75463d784d5a7ba5105f74fe2ed73c40 SHA512 7d573f33f16a9cfe080976e32fae1cb0af50e02bef026814aa5d30ce5a37d79f0ddeb69cee817602de40968fc3d5aee2ee4681b15d4011afc61ad69a01705f17 WHIRLPOOL 30d34d6e3c3a39f395409f238f6469b0c096db5039df377c8668678aaf4968f704205202f5c4f63cf8c5e3607b15df83172af09178df7707e12e746151bf02aa AUX R-2.14.1-rmath-shared.patch 986 SHA256 c05463dbf9ec5bba34cc987df4f6878154a738e57aaeaac46cc4f728c0c837a7 SHA512 d839fab36da9f78eeed4aa60514b37b6737486ed38e1094bac304fb4dc540f44ebf7df906f7efc577509c62e6d8926fc4c2f66d49dde83a2372f53ee8293ba1d WHIRLPOOL 16964dacfc2867f7301b62c5997c6c7ac9562de9fd005f6ddc82fd2ffb43c782032a7c2ef2d0b95dbe72263e4d2b1fa92a6eecd5cc25c1739d43db50e85672b7 AUX R-3.0.0-rmath-shared.patch 1069 SHA256 fc5278e204bbd71ec5ac634e108295744d509ee50a61bb36e5fd268a854f9219 SHA512 63640d890346651f5f92664afffadc9614c1c4c6207d230df873d81fb9361827f0b9b96a46acd7d9bd3ee5d9f100bc0484c2dfa17c947c5707d6895fd46a6b74 WHIRLPOOL d68a3093b6a3a25b5e10a35e77a486ee78c5b19772764f7a3256e9020ff7ed1695dcb73e9819effbd0bc7a419fdca7d64f10e06064221b70701e8ae0a1b8cb26 -DIST R-2.10.1.tar.gz 19705604 SHA256 5ca1780d9f47f2f4a9b52ba44fed9ee6e7d3547f18ed2c05192b0dbc56038e9d SHA512 aeedc0190c90b09fc2969f680ec0b8b8174ca224288d0d0c5536e19c63e28d92604ec2936015298b839cdbce349e5d4e9f759ef30d31fc3dccd2a67448e3b7d4 WHIRLPOOL 2252ad97059b6e7fbe4473280f681af1b57ff1a3c1c3151c499f71cc6b7f4d4fce0c5312389e79e61272f7b635cf31dcd1dd320525e627c08b97367c17ec3d58 -DIST R-2.15.3.tar.gz 25409925 SHA256 c583a38f8dad3bc012c08116f4ba1eb2182cadfad4b0f8d7bd3cdba24bc255d6 SHA512 83389e792aecb52fcd129321c896558dd3bfaf0f6ac775b662d67bbea8a4ec86f22fab625cc20587a17f991ea39764a89fbea34c9f638e3134a095a4e3b2fa12 WHIRLPOOL 3c240f24c82db09fe2c9b4b33cb9ddbc57688940d6f6e3b76f67e0a440910f1aef23617f25219fd62ba83f730a4a8bae3ff32b9c27faad08fd8b95fce847ed6d DIST R-20130129.bash_completion.bz2 4209 SHA256 487e969b94563fec98ec58de7e6142e9361d4219088add0fca282b482a9e01b1 SHA512 910b26e16cfebe677f438abfa5f2652e582db143d91dbf0e7d4b1ea33462c7e5c89c3a3619c63ae98bba26b11a5adb16eda9d344f8cdbe4f0feabc546993c1a5 WHIRLPOOL 2368efaed37fcb6e010f6a234864631f68549bd8e3f733561170cc5b28f5557e546d8561246fb265a481a47991a262fec3acf6abc1dc3929a9357405e0d3c6fc DIST R-3.0.1.tar.gz 25508280 SHA256 af90488af3141103b211dc81b6f17d1f0faf4f17684c579a32dfeb25d0d87134 SHA512 470edbf4a4fccf9310add110d7fa7f338e410e412b3ec84f6ea5f1253e94a435e185a7a1b62b22aee443293147ff7bcca139015b490a9271a502b1bfbf1426a2 WHIRLPOOL f45c960280f51cba3a4f3730fa79671808b3c07fd49f97b2cdce4a1de45986e62ac9bb24c6f764386a3ef1034a266b86f041a1a1652ec7f687a4db08a074d22e DIST R-3.0.2.tar.gz 25364181 SHA256 956e05ad60447955049285420b5a48e0526aa4db676fd9eadb4bcfb7ccdc024b SHA512 206e29679d33d8804ae230e21d87ab125d8a46fc1958feea09de338ed33806865961e2ac0ecaed873bb27a15f9ccc39c0aa750240bfe03d060c1e2c042a5bedd WHIRLPOOL 2f51ae9847d65343e43bc22fa3b6ee3c2619e968ed9fe30074c364a018fee63b0b33ffd572689f196b9aaa8a246d10b074db730560a3d09fdf44853e7cff3036 -DIST R.bash_completion.bz2 4019 SHA256 424790f7be27a0aad7b65289c97cb15d2ca9ee272f30f3e5c906217e487c7f85 SHA512 b11efb99a5dae1f434d2f8c70154a09dd3826126a034a102f905144650c3d77851ddeb206c247dd9365baca13cf95897708a62bd6f8bddc079e3b679a8470fe2 WHIRLPOOL eb8fb8bff43873b75b61bf92af817be7d2bc4eddb2bf51c13e51dc1bdcc0cb5b0bd3623cf73fe20867c8b734732c6c89523916bc8ed4fba2931e55c5a0f837b8 -EBUILD R-2.10.1.ebuild 4523 SHA256 bdbefc0fb170f6ca734e08d40bd9a27b26cbd763126e6a8a7c7c2b7a54c323ac SHA512 66c0468903136f7b65316da5fb67329b877927d34d2e66990c0a9668ca521c90672e2c06e4bd1ad54d60c35aedb7d746b97afb749874247c61d7a5a761aebd52 WHIRLPOOL 67174e8a26550caa7f0b21f1819ff503d5bf015d5a96881f0823d36d13cdd6364435ac983e312183a76c91ec7507f5ff6984d323862df994ef7b2980492bc6d1 -EBUILD R-2.15.3.ebuild 6205 SHA256 a8c09ed00a6d9f697ea019c32761023f7e1470ee88ba0769ff5b5a81ff5a180a SHA512 ec8a1a20444a95c1bafdca7f20ffb198827d5b0a7a6693ab9f8729d08af041a9d3fe6183d38ee8b49c2ff6e69a2ec8283f29089141a0b20cde2270fd17b2f4f5 WHIRLPOOL 5d03a90e6ef42e49afccad12c7d0184b061acf87c70161a5648270fc6e386523822d373e693db39fe310618fe686ad172b716714d1c7278f80d8753d2764fc3e EBUILD R-3.0.1-r1.ebuild 6212 SHA256 a284198d44fa2a9eb8a4b39d2a5e9450c3092d8917eae0aa294ece6479f402f3 SHA512 608a17f94ebe1511d06708937b063ccc95a500d6616928ca2110a925ba7ce4ecadd2a441bb323c222585a480d7bdfc33b41fe5fba319155dc644f927caa966a2 WHIRLPOOL e46df5bb643258a8bd9726bc30b592c9eb3af7fc2c93172f7cb59371590eb0086672290e501764d3ec2fee3ec1f39e8c392f34d151716d2b40e16aa321e99b13 EBUILD R-3.0.1.ebuild 6164 SHA256 07cc4f9cecdcd84bd812872e2f2d6226b3ea900789e9d36584d2dbc5bbb01fe2 SHA512 c6ebf91c0538ce73a8641c122371d51ee5dd42c21ab7ad4ea59aac48fb969a793e70a8d2bcd2834a7f85a48fdb725ed0a4bae51f772eb6053dcadb0e8c9d31aa WHIRLPOOL 9d409959f871ae9733e010428523f4cfd77248e67e71e99cd4c3c918a1eef6d3034432662e4c791fabe8409eb8a8a50c3194a5d51f0752d6fa7c6ea8e51976ca EBUILD R-3.0.2.ebuild 6285 SHA256 403d6d10b2650b193a64ff2c4c0ef504b3fd165a7daacf74be5c798242863636 SHA512 f3aeae6ae4bce281caa8ee9d20dc3506a0a871781395cfc44f01271c474399fd4e4ef885e58b492c4e78dc0b1b7b9ff5ae9b422e9701c37d5315a3caef87d18f WHIRLPOOL 0691b6c3468de925d08ab7562811d1d67fa0d1095545ccb9761e21ddc355991c526d7607816665f56083e5b0ef082d66ff7558a7d747936e4285c2541e0cd0fc -MISC ChangeLog 34560 SHA256 7a5df9a2d3e77dfad04c2673ee2bb0280ea097856a40425e5641c40e29c6bed2 SHA512 ad876ec5ea18b8f50556523eb6dd9b5e503c33000f5365cd7ad451ebb436c636f1e870d5ebdaa3298e9017f7086cee1de465960fd6d7e6163234c3881876e5bf WHIRLPOOL a55abcf4bd05830db9a77b3c28379735684d5bbe7e211a5a9ba8ba23836a6edf096ac9cf9c18dd479cd314e4861a5ed2f6d049e30bb14adc7182caeb44f91dbd +MISC ChangeLog 34823 SHA256 51da5727cf592748f98b8b7eda7f428fcd73c2ee7727d3727e465f323257ebde SHA512 85f190122c1f4c9456725db63bd18a377ef3ed8301c416039b6fade62dbf8712e99450389d5237a3013f46865afd0d8ab9c72456e064e842c94a57d656f4e93d WHIRLPOOL 9c6f7fed065c9c862ce72b33a715d3d8b62786358027d5038fd86306b16f5ebdb6268447e41ffd9d2861987970c9dd8ed7c5c47424bd78f45a7f1d333e5edeb7 MISC metadata.xml 1136 SHA256 7d7c013a77ad6ffc785202e05711d4127a77f64fe09ef919deffa80cc74f992a SHA512 761c3afcbfc76c6026cc6a6f89dae2502f495008851dcb070ee04990653ed6785f089d31a0ea3ada11ccf3d027d372256d04a0baf9ee5d2528e63a9ea4dee313 WHIRLPOOL b7bd0d3843543ff07d15e2d18ae56358477667cec9e78be266f2d983304537afd6c1bac0842e403ce62729248debe2fddfe345c66e022bf2716a47d7819fe041 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJS1l7RAAoJELp701BxlEWf/H8P/jj8pouCExuhnUUTTrpBv44d -gnVTnwE4cvhNgylqwgKqqQU3o8S7Xa7HOkGI/cP8OliGhFaFVdcSMc82XuBWiaew -A3b7nxCNOAu5immdbNut6tFlqs1M5U6GlwdcXshJ/J8KDVOHSJ6X+kqTSkc/HOet -ZpC0BGCoEASv3rAvDCXoRgFgH+0e43OpQ+6/rjSIM0OPp5r3BRT/JZ+KhE3nqOEa -/U+15BOd3OTOmhTjgDsISnku60XJDsUk6lLGn+6+t+BrXFG4LhfsX23rZsYy2znZ -nwZW6SKvinJxufZ5ofB9S26I7TzptKD2e0k3d47N1NpdHmbAJ6aDUDR1NBuH05Qp -vDHQ79MUHHB3tul2ecAhRYrqkBA5HJOyRTD6bKDH+SV3Q00fMEBx7z90fZ3WuhzE -7vYRjni88/+cFwE127FnAxo/m7P4Ts7MGyDX2n/nA3sLtylenKJRFXncA0WuNoL9 -KhdwWz3tpAWGpkRrAwPEwOWHPd/Sego/FbknScRXjvxE4NlqLVzZ/Ar4UZkNliQk -q2oBE9GJXKbv/2N6QAs6A1tM97yB7VErGFc3d8Tar5JU0wNhzeOFM7ylye7KIyCI -K4+OsGUBbUYQZkRLmZ4OPfNvQVMXtdy7VPcArsjLFCtJcSEKkFtTBM9yMSCkIjTj -/BBsyhtN6xw6Ltq6IITh -=Hn09 +iQIcBAEBCgAGBQJS1nx2AAoJELnU8jG9FVirP14P/1lN+j0DC+f0HucjdWSzuLB0 +mJZCMBaNB3nbZn6ZVe5eG56gZLe52LAlLMCgo60pvYE3tJxAY2qZq4GrxjwRjO7q +TyarjPwwQCk1mWIl2duoahHAJTFM9C13Kw981Rb45d38AkuiA4zW2IIQRxQ2phik +Vm4uL9nK03KJqvTy7wYlwDb0WMVRSgz8ZOvoT/5SFklCk/KgNCrTSE2U//2oM66X +9lHFEaKfQdlNlEH24ikonIUNLfW8hDH7SB2d86CdfJ8IB9MBH4wkgmgbhxebwAjx +05V70pT9KBV4FaxXZ+kVKm2Q3bSczuaop9+1yYXxFzvVCrwFQMxm30fh/xjIyIGq +XhCS6aEbLJJWDZF/8pZJruNH1D0kATGtMNuajOCUap+G4mngZ+XA1qXP8XFRmQw3 +Xa1TJsFn0zYnUyDsy3MKUNpdjrrrlM8F4BJDZ9N7CZ9DvtYha/pcy3aorbnk9fzv +y/Y9TRN8VRGQYrzvOtDFK2614AXOK8f8kP5M8W3T7qObexGigPP11KU6UFpHg4cq +OcxZFDaOdMoOOkILkKnnnVqwJ2Tu2VxTusWAV7Et0krjLMrnCoq+XV4cyhCv3S5I +TTCxEsFBHwUXSR3zLurd+/rOGOL7EHCL1OLQkmoxB+JxsCs8OkJ8i3c8YUL2OvVo +kacjTbv4USJPVBHu0S9c +=aHx2 -----END PGP SIGNATURE----- diff --git a/dev-lang/R/R-2.10.1.ebuild b/dev-lang/R/R-2.10.1.ebuild deleted file mode 100644 index f78718f24f6c..000000000000 --- a/dev-lang/R/R-2.10.1.ebuild +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.10.1.ebuild,v 1.21 2013/11/03 20:38:33 mattst88 Exp $ - -EAPI=2 - -inherit bash-completion-r1 eutils flag-o-matic fortran-2 multilib versionator - -DESCRIPTION="Language and environment for statistical computing and graphics" -HOMEPAGE="http://www.r-project.org/" -SRC_URI=" - mirror://cran/src/base/R-2/${P}.tar.gz - bash-completion? ( mirror://gentoo/R.bash_completion.bz2 )" - -LICENSE="GPL-2 LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" - -IUSE="bash-completion cairo doc java jpeg lapack minimal nls perl png readline threads tk X" - -# common depends -CDEPEND=" - app-arch/bzip2 - app-text/ghostscript-gpl - dev-libs/libpcre - virtual/blas - cairo? ( - x11-libs/cairo[X] - >=x11-libs/pango-1.20[X] ) - jpeg? ( virtual/jpeg:0 ) - lapack? ( virtual/lapack ) - perl? ( dev-lang/perl ) - png? ( media-libs/libpng ) - readline? ( sys-libs/readline ) - tk? ( dev-lang/tk ) - X? ( x11-libs/libXmu x11-misc/xdg-utils )" - -DEPEND="${CDEPEND} - virtual/pkgconfig - doc? ( - virtual/latex-base - dev-texlive/texlive-fontsrecommended - )" - -RDEPEND="${CDEPEND} - app-arch/unzip - app-arch/zip - java? ( >=virtual/jre-1.5 )" - -RESTRICT="minimal? ( test )" - -R_DIR=/usr/$(get_libdir)/${PN} - -pkg_setup() { - fortran-2_pkg_setup - filter-ldflags -Wl,-Bdirect -Bdirect - # avoid using existing R installation - unset R_HOME -} - -src_prepare() { - # fix packages.html for doc (bug #205103) - # check in later versions if fixed - sed -i \ - -e "s:../../library:../../../../$(get_libdir)/R/library:g" \ - src/library/tools/R/packageshtml.R \ - || die "sed failed" - - # fix Rscript - sed \ - -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \ - -i src/unix/Makefile.in || die "sed unix Makefile failed" - - # fix HTML links to manual (bug #273957) - sed \ - -e 's:\.\./manual/:manual/:g' \ - -i $(grep -Flr ../manual/ doc) \ - || die "sed for HTML links to manual failed" - - # Fix compability with zlib-1.2.5.1-r1 OF change - has_version ">=sys-libs/zlib-1.2.5.1-r1" && \ - sed -i -e '1i#define OF(x) x' src/main/unzip.h - - # Missing include that was implicit before - sed -i -e '1i#include <zlib.h>' src/main/dounzip.c || die - - # Don't try to access libpng internal structure - sed -i -e 's:png_ptr->jmpbuf:png_jmpbuf(png_ptr):' src/modules/X11/rbitmap.c || die - - use lapack && \ - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" - - if use X; then - export R_BROWSER="$(type -p xdg-open)" - export R_PDFVIEWER="$(type -p xdg-open)" - fi - use perl && \ - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" -} - -src_configure() { - econf \ - --disable-rpath \ - --enable-R-profiling \ - --enable-memory-profiling \ - --enable-R-shlib \ - --enable-linux-lfs \ - --with-system-zlib \ - --with-system-bzlib \ - --with-system-pcre \ - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ - --docdir=/usr/share/doc/${PF} \ - rdocdir=/usr/share/doc/${PF} \ - $(use_enable nls) \ - $(use_enable threads) \ - $(use_with lapack) \ - $(use_with tk tcltk) \ - $(use_with jpeg jpeglib) \ - $(use_with !minimal recommended-packages) \ - $(use_with png libpng) \ - $(use_with readline) \ - $(use_with cairo) \ - $(use_with X x) -} - -src_compile(){ - emake || die "emake failed" - RMATH_V=0.0.0 - emake -j1 -C src/nmath/standalone \ - libRmath_la_LDFLAGS=-Wl,-soname,libRmath.so.${RMATH_V} \ - || die "emake math library failed" - if use doc; then - export VARTEXFONTS="${T}/fonts" - emake info pdf || die "emake docs failed" - fi -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - if use doc; then - emake DESTDIR="${D}" \ - install-info install-pdf || die "emake install docs failed" - dosym /usr/share/doc/${PF}/manual /usr/share/doc/${PF}/html/manual - fi - - # standalone math lib install (-j1 basically harmless) - emake -j1 \ - -C src/nmath/standalone \ - DESTDIR="${D}" install \ - || die "emake install math library failed" - - local mv=$(get_major_version ${RMATH_V}) - mv "${D}"/usr/$(get_libdir)/libRmath.so \ - "${D}"/usr/$(get_libdir)/libRmath.so.${RMATH_V} - dosym libRmath.so.${RMATH_V} /usr/$(get_libdir)/libRmath.so.${mv} - dosym libRmath.so.${mv} /usr/$(get_libdir)/libRmath.so - - # env file - cat > 99R <<-EOF - LDPATH=${R_DIR}/lib - R_HOME=${R_DIR} - EOF - doenvd 99R || die "doenvd failed" - use bash-completion && dobashcomp "${WORKDIR}"/R.bash_completion -} - -pkg_config() { - if use java; then - einfo "Re-initializing java paths for ${P}" - R CMD javareconf - fi -} diff --git a/dev-lang/R/R-2.15.3.ebuild b/dev-lang/R/R-2.15.3.ebuild deleted file mode 100644 index e04a3307cf14..000000000000 --- a/dev-lang/R/R-2.15.3.ebuild +++ /dev/null @@ -1,204 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.15.3.ebuild,v 1.3 2013/11/03 20:38:33 mattst88 Exp $ - -EAPI=5 - -inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs - -BCP=${PN}-20130129.bash_completion -DESCRIPTION="Language and environment for statistical computing and graphics" -HOMEPAGE="http://www.r-project.org/" -SRC_URI="mirror://cran/src/base/R-2/${P}.tar.gz - bash-completion? ( http://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2 )" - -LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" -IUSE="bash-completion cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X" -REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )" - -CDEPEND=" - app-arch/bzip2 - app-text/ghostscript-gpl - dev-libs/libpcre - virtual/blas - cairo? ( x11-libs/cairo[X] x11-libs/pango ) - icu? ( dev-libs/icu ) - jpeg? ( virtual/jpeg:0 ) - lapack? ( virtual/lapack ) - perl? ( dev-lang/perl ) - png? ( media-libs/libpng ) - readline? ( sys-libs/readline ) - tk? ( dev-lang/tk ) - X? ( x11-libs/libXmu x11-misc/xdg-utils )" - -DEPEND="${CDEPEND} - virtual/pkgconfig - doc? ( - virtual/latex-base - dev-texlive/texlive-fontsrecommended - )" - -RDEPEND="${CDEPEND} - ( || ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] ) ) - app-arch/xz-utils - java? ( >=virtual/jre-1.5 )" - -RESTRICT="minimal? ( test )" - -R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}" - -pkg_setup() { - if use openmp; then - FORTRAN_NEED_OPENMP=1 - tc-has-openmp || die "Please enable openmp support in your compiler" - fi - fortran-2_pkg_setup - filter-ldflags -Wl,-Bdirect -Bdirect - # avoid using existing R installation - unset R_HOME - # Temporary fix for bug #419761 - if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then - append-flags -fno-ipa-cp-clone - fi -} - -src_prepare() { - # gentoo bug #322965 (not applied upstream) - # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14505 - epatch "${FILESDIR}"/${PN}-2.11.1-parallel.patch - - # respect ldflags (not applied upstream) - # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14506 - epatch "${FILESDIR}"/${PN}-2.12.1-ldflags.patch - - # gentoo bug #383431 - # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14951 - epatch "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch - - # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14953 - epatch "${FILESDIR}"/${PN}-2.14.1-rmath-shared.patch - - # fix packages.html for doc (gentoo bug #205103) - sed -i \ - -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \ - src/library/tools/R/Rd.R || die - - # fix Rscript path when installed (gentoo bug #221061) - sed -i \ - -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \ - src/unix/Makefile.in || die "sed unix Makefile failed" - - # fix HTML links to manual (gentoo bug #273957) - sed -i \ - -e 's:\.\./manual/:manual/:g' \ - $(grep -Flr ../manual/ doc) || die "sed for HTML links failed" - - use lapack && \ - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" - - if use X; then - export R_BROWSER="$(type -p xdg-open)" - export R_PDFVIEWER="$(type -p xdg-open)" - fi - use perl && \ - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" - - # don't search /usr/local - sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die - # Fix for Darwin (OS X) - if use prefix; then - if [[ ${CHOST} == *-darwin* ]] ; then - sed -i \ - -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \ - -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \ - -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \ - -e "/SHLIB_EXT/s/\.so/.dylib/" \ - configure.ac || die - # sort of "undo" 2.14.1-rmath-shared.patch - sed -i \ - -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \ - src/nmath/standalone/Makefile.in || die - else - append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib" - fi - fi - AT_M4DIR=m4 eaclocal - eautoconf -} - -src_configure() { - econf \ - --enable-byte-compiled-packages \ - --enable-R-shlib \ - --disable-R-framework \ - --with-system-zlib \ - --with-system-bzlib \ - --with-system-pcre \ - --with-system-xz \ - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ - --docdir="${EPREFIX}/usr/share/doc/${PF}" \ - rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ - $(use_enable nls) \ - $(use_enable openmp) \ - $(use_enable profile R-profiling) \ - $(use_enable profile memory-profiling) \ - $(use_enable static-libs static) \ - $(use_enable static-libs R-static-lib) \ - $(use_with cairo) \ - $(use_with icu ICU) \ - $(use_with jpeg jpeglib) \ - $(use_with lapack) \ - $(use_with !minimal recommended-packages) \ - $(use_with png libpng) \ - $(use_with readline) \ - $(use_with tiff libtiff) \ - $(use_with tk tcltk) \ - $(use_with X x) -} - -src_compile() { - export VARTEXFONTS="${T}/fonts" - emake AR="$(tc-getAR)" - emake -C src/nmath/standalone shared $(use static-libs && echo static) AR="$(tc-getAR)" - use doc && emake info pdf -} - -src_install() { - default - emake -C src/nmath/standalone DESTDIR="${D}" install - - if use doc; then - emake DESTDIR="${D}" install-info install-pdf - dosym ../manual /usr/share/doc/${PF}/html/manual - fi - - cat > 99R <<-EOF - LDPATH=${R_DIR}/lib - R_HOME=${R_DIR} - EOF - doenvd 99R - use bash-completion && newbashcomp "${WORKDIR}"/${BCP} ${PN} - # The buildsystem has a different understanding of install_names than what - # we require. Since it builds modules like shared objects (wrong), many - # objects (all modules) get an incorrect install_name. Fixing the build - # system here is not really trivial. - if [[ ${CHOST} == *-darwin* ]] ; then - local mod - pushd "${ED}"/usr/lib/R > /dev/null - for mod in $(find . -name "*.dylib") ; do - mod=${mod#./} - install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \ - "${mod}" - done - popd > /dev/null - fi -} - -pkg_postinst() { - if use java; then - einfo "Re-initializing java paths for ${P}" - R CMD javareconf - fi -} |