From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RcLAn-0008Nl-SO for garchives@archives.gentoo.org; Sun, 18 Dec 2011 18:09:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2A3B21C21B; Sun, 18 Dec 2011 18:09:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id ADBE821C21B for ; Sun, 18 Dec 2011 18:09:14 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E97B81B4012 for ; Sun, 18 Dec 2011 18:09:13 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2149) id BA18D2004B; Sun, 18 Dec 2011 18:09:12 +0000 (UTC) From: "Hans de Graaff (graaff)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, graaff@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/ruby: ChangeLog ruby-1.9.3_p0.ebuild X-VCS-Repository: gentoo-x86 X-VCS-Files: ChangeLog ruby-1.9.3_p0.ebuild X-VCS-Directories: dev-lang/ruby X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff Content-Type: text/plain; charset=utf8 Message-Id: <20111218180912.BA18D2004B@flycatcher.gentoo.org> Date: Sun, 18 Dec 2011 18:09:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: fba60d13-c760-4375-896f-0b800698538f X-Archives-Hash: 825425ed2a5489058c7a83d0dc6e5f0a graaff 11/12/18 18:09:12 Modified: ChangeLog Added: ruby-1.9.3_p0.ebuild Log: Version bump to 1.9.3p0. Still has massive failures in the rubytests te= st suite which need to be diagnosed first. =20 (Portage version: 2.1.10.11/cvs/Linux x86_64) Revision Changes Path 1.515 dev-lang/ruby/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/Chan= geLog?rev=3D1.515&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/Chan= geLog?rev=3D1.515&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/Chan= geLog?r1=3D1.514&r2=3D1.515 Index: ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v retrieving revision 1.514 retrieving revision 1.515 diff -u -r1.514 -r1.515 --- ChangeLog 22 Oct 2011 17:16:53 -0000 1.514 +++ ChangeLog 18 Dec 2011 18:09:12 -0000 1.515 @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/ruby # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.514 2011/= 10/22 17:16:53 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.515 2011/= 12/18 18:09:12 graaff Exp $ + +*ruby-1.9.3_p0 (18 Dec 2011) + + 18 Dec 2011; Hans de Graaff +ruby-1.9.3_p0.ebuild: + Version bump to 1.9.3p0. Still has massive failures in the rubytests t= est + suite which need to be diagnosed first. =20 22 Oct 2011; Jeroen Roovers ruby-1.9.3_rc1.ebuild: Add workaround for target_arch issue (bug #342819). Marked ~hppa (bug 1.1 dev-lang/ruby/ruby-1.9.3_p0.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby= -1.9.3_p0.ebuild?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby= -1.9.3_p0.ebuild?rev=3D1.1&content-type=3Dtext/plain Index: ruby-1.9.3_p0.ebuild =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p0.ebuild,v 1= .1 2011/12/18 18:09:12 graaff Exp $ EAPI=3D2 #PATCHSET=3D inherit autotools eutils flag-o-matic multilib versionator RUBYPL=3D$(get_version_component_range 4) MY_P=3D"${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}" S=3D${WORKDIR}/${MY_P} SLOT=3D$(get_version_component_range 1-2) MY_SUFFIX=3D$(delete_version_separator 1 ${SLOT}) # 1.9.3 still uses 1.9.1 RUBYVERSION=3D1.9.1 if [[ -n ${PATCHSET} ]]; then if [[ ${PVR} =3D=3D ${PV} ]]; then PATCHSET=3D"${PV}-r0.${PATCHSET}" else PATCHSET=3D"${PVR}.${PATCHSET}" fi else PATCHSET=3D"${PVR}" fi DESCRIPTION=3D"An object-oriented scripting language" HOMEPAGE=3D"http://www.ruby-lang.org/" SRC_URI=3D"mirror://ruby/1.9/${MY_P}.tar.bz2 http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.t= ar.bz2" LICENSE=3D"|| ( Ruby BSD-2 )" KEYWORDS=3D"~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~s= parc ~x86" IUSE=3D"berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl tk= xemacs ncurses +readline +yaml" #libedit # libedit support is removed everywhere because of this upstream bug: # http://redmine.ruby-lang.org/issues/show/3698 RDEPEND=3D" berkdb? ( sys-libs/db ) gdbm? ( sys-libs/gdbm ) ssl? ( dev-libs/openssl ) socks5? ( >=3Dnet-proxy/dante-1.1.13 ) tk? ( dev-lang/tk[threads] ) ncurses? ( sys-libs/ncurses ) readline? ( sys-libs/readline ) yaml? ( dev-libs/libyaml ) virtual/libffi sys-libs/zlib >=3Dapp-admin/eselect-ruby-20100402 !=3Ddev-lang/ruby-cvs-${SLOT}* !=3Ddev-ruby/rdoc-3.9.4[ruby_targets_ruby19] ) xemacs? ( app-xemacs/ruby-modes )" src_prepare() { EPATCH_FORCE=3D"yes" EPATCH_SUFFIX=3D"patch" \ epatch "${WORKDIR}/patches" einfo "Unbundling gems..." cd "$S" rm -r \ {bin,lib}/rake lib/rake.rb man/rake.1 \ ext/json \ bin/gem || die "removal failed" # Fix a hardcoded lib path in configure script sed -i -e "s:\(RUBY_LIB_PREFIX=3D\"\${prefix}/\)lib:\1$(get_libdir):" \ configure.in || die "sed failed" eautoreconf } src_configure() { local myconf=3D # -fomit-frame-pointer makes ruby segfault, see bug #150413. filter-flags -fomit-frame-pointer # In many places aliasing rules are broken; play it safe # as it's risky with newer compilers to leave it as it is. append-flags -fno-strict-aliasing # SuperH needs this use sh && append-flags -mieee # Socks support via dante if use socks5 ; then # Socks support can't be disabled as long as SOCKS_SERVER is # set and socks library is present, so need to unset # SOCKS_SERVER in that case. unset SOCKS_SERVER fi # Increase GC_MALLOC_LIMIT if set (default is 8000000) if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then append-flags "-DGC_MALLOC_LIMIT=3D${RUBY_GC_MALLOC_LIMIT}" fi # ipv6 hack, bug 168939. Needs --enable-ipv6. use ipv6 || myconf=3D"${myconf} --with-lookup-order-hack=3DINET" # if use libedit; then # einfo "Using libedit to provide readline extension" # myconf=3D"${myconf} --enable-libedit --with-readline" # elif use readline; then # einfo "Using readline to provide readline extension" # myconf=3D"${myconf} --with-readline" # else # myconf=3D"${myconf} --without-readline" # fi myconf=3D"${myconf} $(use_with readline)" # Set a faux target (bug #342819) use hppa && myconf=3D"${myconf} --target=3Dparisc" econf \ --program-suffix=3D${MY_SUFFIX} \ --with-soname=3Druby${MY_SUFFIX} \ --enable-shared \ --enable-pthread \ $(use_enable socks5 socks) \ $(use_enable doc install-doc) \ --enable-ipv6 \ $(use_enable debug) \ $(use_with berkdb dbm) \ $(use_with gdbm) \ $(use_with ssl openssl) \ $(use_with tk) \ $(use_with ncurses curses) \ $(use_with yaml psych) \ ${myconf} \ --enable-option-checking=3Dno \ || die "econf failed" } src_compile() { emake EXTLDFLAGS=3D"${LDFLAGS}" || die "emake failed" } src_test() { emake -j1 test || die "make test failed" elog "Ruby's make test has been run. Ruby also ships with a make check" elog "that cannot be run until after ruby has been installed." elog if use rubytests; then elog "You have enabled rubytests, so they will be installed to" elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user oth= er" elog "than root, and you must place them into a writeable directory." elog "Then call: " elog elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" else elog "Enable the rubytests USE flag to install the make check tests" fi } src_install() { # Ruby is involved in the install process, we don't want interference he= re. unset RUBYOPT local MINIRUBY=3D$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MI= NIRUBY)'|make -f - getminiruby) LD_LIBRARY_PATH=3D"${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRAR= Y_PATH}" RUBYLIB=3D"${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" for d in $(find "${S}/ext" -type d) ; do RUBYLIB=3D"${RUBYLIB}:$d" done export LD_LIBRARY_PATH RUBYLIB emake DESTDIR=3D"${D}" install || die "make install failed" # Remove installed rubygems copy rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm r= ubygems failed" rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc= failed" rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed= " if use doc; then make DESTDIR=3D"${D}" install-doc || die "make install-doc failed" fi if use examples; then insinto /usr/share/doc/${PF} doins -r sample fi dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})" dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})" dodoc ChangeLog NEWS doc/NEWS-1.8.7 README* ToDo || die if use rubytests; then pushd test insinto /usr/share/${PN}-${SLOT}/test doins -r . popd fi } pkg_postinst() { if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then eselect ruby set ruby${MY_SUFFIX} fi elog elog "To switch between available Ruby profiles, execute as root:" elog "\teselect ruby set ruby(18|19|...)" elog } pkg_postrm() { eselect ruby cleanup }