--- R-3.0.2.ebuild 2014-02-10 21:55:52.336965965 +0000 +++ R-3.0.2.ebuild.orig 2014-02-10 21:25:07.946137603 +0000 @@ -131,14 +131,6 @@ src_prepare() { } src_configure() { - if use tk; then - myconf="--with-tcltk \ - --with-tk-config=${EPREFIX}/usr/lib/tkConfig.sh \ - --with-tcl-config=${EPREFIX}/usr/lib/tclConfig.sh"; - else - myconf="--without-tcltk"; - fi - econf \ --enable-byte-compiled-packages \ --enable-R-shlib \ @@ -147,7 +139,7 @@ src_configure() { --with-system-bzlib \ --with-system-pcre \ --with-system-xz \ - --with-blas="$($(tc-getPKG_CONFIG) --variable=libdir blas)" \ + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ $(use_enable nls) \ @@ -164,8 +156,8 @@ src_configure() { $(use_with png libpng) \ $(use_with readline) \ $(use_with tiff libtiff) \ - $(use_with X x) \ - ${myconf} + $(use_with tk tcltk) \ + $(use_with X x) } src_compile() {