View previous topic :: View next topic |
Author |
Message |
Isomorph n00b
Joined: 22 Sep 2002 Posts: 55 Location: Denmark
|
Posted: Sun Feb 05, 2012 3:40 pm Post subject: How do I get hold of an old ebuild? swig-1.3.38 |
|
|
How do I get hold of an old ebuild ?
I need swig-1.3.36 in order to compile wxRuby, but the oldest in portage is 1.3.40.
Is there anywhere I can find old ebuilds that have been removed from portage, so that I can install it locally? |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Feb 05, 2012 4:11 pm Post subject: |
|
|
Why do you think you need swig 1.3.36 ? |
|
Back to top |
|
|
Isomorph n00b
Joined: 22 Sep 2002 Posts: 55 Location: Denmark
|
Posted: Sun Feb 05, 2012 4:52 pm Post subject: |
|
|
VoidMage wrote: | Why do you think you need swig 1.3.36 ? |
wxruby can maximum use version 1.3.38, because it says so. So I need a older version of swig.
Code: |
cybert ~ # cat /var/tmp/portage/dev-ruby/wxruby-2.0.1/temp/build.log
* Package: dev-ruby/wxruby-2.0.1
* Repository: x-portage
* USE: doc elibc_glibc kernel_linux userland_GNU x86
* FEATURES: sandbox
>>> Unpacking source...
>>> Unpacking wxruby-2.0.1.tar.gz to /var/tmp/portage/dev-ruby/wxruby-2.0.1/work
>>> Source unpacked in /var/tmp/portage/dev-ruby/wxruby-2.0.1/work
>>> Compiling source in /var/tmp/portage/dev-ruby/wxruby-2.0.1/work/wxruby-2.0.1 ...
(in /var/tmp/portage/dev-ruby/wxruby-2.0.1/work/wxruby-2.0.1)
Enabling DYNAMIC build
Enabling RELEASE build
Enabling UNICODE build
The following wxWidgets features are not available and will be skipped:
PrinterDC
rake aborted!
SWIG version 2.0.4 is installed, maximum version permitted is 1.3.38
(See full trace by running task with --trace)
* ERROR: dev-ruby/wxruby-2.0.1 failed (compile phase):
* rake compile failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 2369: Called die
* The specific snippet of code:
* rake compile || die "rake compile failed"
*
* If you need support, post the output of 'emerge --info =dev-ruby/wxruby-2.0.1',
* the complete build log and the output of 'emerge -pqv =dev-ruby/wxruby-2.0.1'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/dev-ruby/wxruby-2.0.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-ruby/wxruby-2.0.1/temp/environment'.
|
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sun Feb 05, 2012 6:26 pm Post subject: |
|
|
That is an artificial failure forced by the wxRuby build system. It may work with newer versions if the check is bypassed. I see that you are using an overlay to obtain wxRuby. Are there newer versions available? They may have already fixed their support for newer SWIG. |
|
Back to top |
|
|
Isomorph n00b
Joined: 22 Sep 2002 Posts: 55 Location: Denmark
|
Posted: Sun Feb 05, 2012 6:55 pm Post subject: |
|
|
Hu wrote: | That is an artificial failure forced by the wxRuby build system. It may work with newer versions if the check is bypassed. I see that you are using an overlay to obtain wxRuby. Are there newer versions available? They may have already fixed their support for newer SWIG. |
The ebuild for wxruby it a modification of a old one I had in my /usr/local/portage directory.
I made a modification in order to update to the latest version 2.0.1
Here is the new ebuild.
Code: |
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit ruby gems eutils
DESCRIPTION="ruby bindings for wxwidgets"
HOMEPAGE="http://wxruby.rubyforge.org/wiki/wiki.pl"
SRC_URI="http://rubyforge.org/frs/download.php/63379/${P}.tar.gz"
LICENSE="wxWinLL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=">=dev-lang/ruby-1.8
>=x11-libs/wxGTK-2.8.7
>=dev-lang/swig-2.0.1
dev-ruby/rake
>=dev-ruby/rubygems-0.9.4"
# Overriding the src_unpack() from gems
src_unpack() {
if [ "${A}" != "" ]; then
unpack ${A}
fi
}
src_compile() {
rake compile || die "rake compile failed"
}
src_install() {
# Have to use rake gem instead of rake install because the rake file
# doesn't respect destdir settings.
rake gem
if use amd64; then
export GEM_SRC="${S}/${P}-x86_64-linux.gem"
elif use x86; then
export GEM_SRC="${S}/${P}-x86-linux.gem"
fi
gems_src_install || die "Gem install failed"
}
|
|
|
Back to top |
|
|
Isomorph n00b
Joined: 22 Sep 2002 Posts: 55 Location: Denmark
|
|
Back to top |
|
|
|