diff options
author | Hans de Graaff <graaff@gentoo.org> | 2009-06-10 05:00:47 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2009-06-10 05:00:47 +0000 |
commit | 544e8b4f08aad354a88315fd17adeaa2850e758f (patch) | |
tree | 2ef5997153970ba51977561c0ffc0deb5689e19e /dev-lang/ruby | |
parent | Version bump. (diff) | |
download | historical-544e8b4f08aad354a88315fd17adeaa2850e758f.tar.gz historical-544e8b4f08aad354a88315fd17adeaa2850e758f.tar.bz2 historical-544e8b4f08aad354a88315fd17adeaa2850e758f.zip |
Version bumps.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'dev-lang/ruby')
-rw-r--r-- | dev-lang/ruby/ChangeLog | 9 | ||||
-rw-r--r-- | dev-lang/ruby/Manifest | 12 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.6_p369.ebuild | 181 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.7_p173.ebuild | 190 |
4 files changed, 387 insertions, 5 deletions
diff --git a/dev-lang/ruby/ChangeLog b/dev-lang/ruby/ChangeLog index 92df320751c5..9477f4988154 100644 --- a/dev-lang/ruby/ChangeLog +++ b/dev-lang/ruby/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-lang/ruby # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.405 2009/05/27 16:40:13 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.406 2009/06/10 05:00:47 graaff Exp $ + +*ruby-1.8.7_p173 (10 Jun 2009) +*ruby-1.8.6_p369 (10 Jun 2009) + + 10 Jun 2009; Hans de Graaff <graaff@gentoo.org> +ruby-1.8.6_p369.ebuild, + +ruby-1.8.7_p173.ebuild: + Version bumps for bug #273213. *ruby-1.9.1_p129-r1 (27 May 2009) diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest index 8d56c480ab2d..d84fc0e9a1ce 100644 --- a/dev-lang/ruby/Manifest +++ b/dev-lang/ruby/Manifest @@ -19,19 +19,23 @@ AUX ruby19-rubygems-proxy.patch 407 RMD160 0bfedce42f4879d729b8de650f99a345faaa7 DIST onigd2_5_9.tar.gz 221355 RMD160 ceeee9a0221d431d6576a566621ba9badab6423d SHA1 41ca5b916ae1d3b1675fcc45181a0ed04e8726b7 SHA256 b24df7c0fa6fc72ce37fd1e203f378359f29f739a3f4c5b6bdd40ca5f7d25db0 DIST ruby-1.8.6-p114.tar.bz2 3920921 RMD160 332d6e98ef79ad8175ce699ed5293407763f769f SHA1 9929782935ebb77d040593a010b8d65b03ce6e23 SHA256 4ac0d0271324c54525210f775e5fcc9a37e3d8a10b96d68cdfeeb361c6f64a63 DIST ruby-1.8.6-p368.tar.bz2 3967709 RMD160 fba1ef4f6b2b069f4fcd4734b09fc36197138929 SHA1 7a2cfb9f0803d21221e7d066837037bbbc50b6ad SHA256 1bd398a125040261f8e9e74289277c82063aae174ada9f300d2bea0a42ccdcc1 +DIST ruby-1.8.6-p369.tar.bz2 3981771 RMD160 34d2763fd7b24c5883eaea457b871708d20c51e8 SHA1 d121f84b1b264f3a72878797222852b272a099fd SHA256 fb6974ab8a0de52511e846eacf113432b5227a867e3c9741d65775f162e13715 DIST ruby-1.8.7-p160.tar.bz2 4137518 RMD160 77469c9c4e9303f2ec8ca72a0cbf98b674cb1415 SHA1 64ed631a819f28d9dd86d2c699e1b0a94d7e5dc9 SHA256 e524a086212d2142c03eb6b82cd602adcac9dcf8bf60049e89aa4ca69864984d +DIST ruby-1.8.7-p173.tar.bz2 4144667 RMD160 4892b14b9f86b6b9c2332f67c22badbc7ebd4201 SHA1 7dd92fedb49f8db5de7c501f5f0a27efd5e94010 SHA256 7cec49bc4afb82188ca4bdb5a0400ec7ede6bf0937af9dd6acaca4e54b8aa760 DIST ruby-1.9.1-p129.tar.bz2 7183891 RMD160 570f567508f9a4ee41e7983ab0a399cbd1a47b8a SHA1 4e36be3bea89c17e2c7e908d5b18bf6071cc91c0 SHA256 cb730f035aec0e3ac104d23d27a79aa9625fdeb115dae2295de65355f449ce27 EBUILD ruby-1.8.6_p114.ebuild 4942 RMD160 c840276c01dd3e3370416d41ad55e7d4faa584e9 SHA1 a31fbba7d8bce6581423900e983167e53cf1b037 SHA256 19a200859573537ed5b4bf51347d5a622d10ce0856463d9b22694217e6f15209 EBUILD ruby-1.8.6_p368.ebuild 5352 RMD160 b1623b687064f88c97ae9665682266f665d97c7a SHA1 25b2d259617b72a48eb5d1d4306f64b6eedcc49e SHA256 029383d463d2dd3a72075d2af43f9bbd5d9579db87940342a2fcbf77ca824c99 +EBUILD ruby-1.8.6_p369.ebuild 5365 RMD160 561aeeac9da6d3e6f467738f64fe14618311c253 SHA1 fdf6cf2d25844dea26d55e7445ed500cf45bab6d SHA256 937634d3b2d76aa58af0cde1efef71265f2b9627ec225246b7c42c9df1d11062 EBUILD ruby-1.8.7_p160.ebuild 5619 RMD160 e7e456d886cf868efd395c618448ab482a5ce628 SHA1 caed7b026ed3ecfac6fa67df45ea43ff6704f488 SHA256 037e25291fe7958e6430befb881795b21e56e6ef10fb35a964bcb7d3b2074ca9 +EBUILD ruby-1.8.7_p173.ebuild 5616 RMD160 f61f7ed0073beb08c1d15226b875f94d6ce5c389 SHA1 88c23b7f5ef1cbe268556c5a34230ec85d1e2ed8 SHA256 60e324d0b908680493d966dd3b6ac74fc2967528aef936bfd0503f6aa3960b22 EBUILD ruby-1.9.1_p129-r1.ebuild 5678 RMD160 6e9abf937c66f8be2f483415288daf00c657bf39 SHA1 ad522a26a719f60705af4083edde740ebed458cb SHA256 29f368130ee67073419f74ddeeb4af348575905a2f54c521ab33e0d96d303b7c EBUILD ruby-1.9.1_p129.ebuild 5538 RMD160 b8608e8b5287de43ef6f1996270d1d2cccd95ac7 SHA1 77e713a450b68d10ddbebd1cf7d967da95068255 SHA256 8c1c213d9cb537b3428db51653ea50f3e42810359f53d0fd9fed7d378f368872 -MISC ChangeLog 61914 RMD160 7291ac6a686f0422e1467d8358edea73c651eaff SHA1 8a4dd6aa0e005d058df96530bf613d33735bdcc6 SHA256 8fca6177bfa2558239b6ba83c443cf610af98198a4acb0e92538936ee18d4086 +MISC ChangeLog 62110 RMD160 17dee6e0ccc4e634143598be7fe6ba6cee40e429 SHA1 aa206b30a8eb73f32481f09d233da197d43eaf9b SHA256 0f13e3daa8d6288b0395aa34a3df1004a2a1e026ca68b02c80c06e9ad934bbad MISC metadata.xml 262 RMD160 f8642aa78425fe09dc0e0660cb20a5bd4233d5bb SHA1 64def0369477ecf76b9285fb9c1cf0e6a4f334e5 SHA256 5ee3c0cfedcb966505e4fafcfc5321a8ee20c128da9bbcafff5aa268df588d59 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) -iEYEARECAAYFAkodbPMACgkQAiZjviIA2XiGMQCff/Wqr2KVcPpfzgZJeeHvF02M -XWQAn2iReflXyPSmkh9AC6+k1WMa/sOz -=qA1U +iEYEARECAAYFAkovPgUACgkQqj4ysMWt/vszWwCfekV7kBZLToUy5CraTJ4Lj2Na +0x8AoKv6ci9XCIC4/lgdOdhJDK7BahtX +=H2YC -----END PGP SIGNATURE----- diff --git a/dev-lang/ruby/ruby-1.8.6_p369.ebuild b/dev-lang/ruby/ruby-1.8.6_p369.ebuild new file mode 100644 index 000000000000..c3c4f402370d --- /dev/null +++ b/dev-lang/ruby/ruby-1.8.6_p369.ebuild @@ -0,0 +1,181 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p369.ebuild,v 1.1 2009/06/10 05:00:47 graaff Exp $ + +ONIGURUMA="onigd2_5_9" + +inherit autotools eutils flag-o-matic multilib versionator + +MY_P="${PN}-$(replace_version_separator 3 '-')" +S=${WORKDIR}/${MY_P} + +SLOT=$(get_version_component_range 1-2) +MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) + +DESCRIPTION="An object-oriented scripting language" +HOMEPAGE="http://www.ruby-lang.org/" +SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2" + +LICENSE="|| ( Ruby GPL-2 )" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="berkdb debug doc emacs examples gdbm ipv6 rubytests socks5 ssl threads tk xemacs" + +RDEPEND=" + berkdb? ( sys-libs/db ) + gdbm? ( sys-libs/gdbm ) + ssl? ( dev-libs/openssl ) + socks5? ( >=net-proxy/dante-1.1.13 ) + tk? ( dev-lang/tk ) + app-admin/eselect-ruby + !=dev-lang/ruby-cvs-${SLOT}* + !dev-ruby/rdoc + !dev-ruby/rexml" +DEPEND="${RDEPEND}" +PDEPEND="emacs? ( app-emacs/ruby-mode ) + xemacs? ( app-xemacs/ruby-modes )" + +PROVIDE="virtual/ruby" + +pkg_setup() { + use tk || return + + # Note for EAPI-2 lovers: We'd like to show that custom message. + # *If* you can make USE dependencies show that, too, feel free to migrate. + if (use threads && ! built_with_use dev-lang/tk threads) \ + || (! use threads && built_with_use dev-lang/tk threads) ; then + eerror + eerror "You have Tk support enabled." + eerror + eerror "Ruby and Tk need the same 'threads' USE flag settings." + eerror "Either change the USE flag on dev-lang/ruby or on dev-lang/tk" + eerror "and recompile tk." + + die "threads USE flag mismatch" + fi +} + +src_unpack() { + unpack ${A} + + cd "${S}/ext/dl" + epatch "${FILESDIR}/${PN}-1.8.6-memory-leak.diff" + cd "${S}" + + epatch "${FILESDIR}/${PN}-mkconfig.patch" + epatch "${FILESDIR}/${PN}${MY_SUFFIX}-mkmf-parallel-install.patch" + epatch "${FILESDIR}/${PN}-1.8.6-uclibc-udp.patch" + + # Fix a hardcoded lib path in configure script + sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ + configure.in || die "sed failed" + + eautoreconf +} + +src_compile() { + # -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 + + # 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=${RUBY_GC_MALLOC_LIMIT}" + fi + + econf --program-suffix=$MY_SUFFIX --enable-shared \ + $(use_enable socks5 socks) \ + $(use_enable doc install-doc) \ + $(use_enable threads pthread) \ + $(use_enable ipv6) \ + $(use_enable debug) \ + $(use_with berkdb dbm) \ + $(use_with gdbm) \ + $(use_with ssl openssl) \ + $(use_with tk) \ + ${myconf} \ + --with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \ + --enable-option-checking=no \ + || die "econf failed" + + emake EXTLDFLAGS="${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 other" + elog "than root, and you must place them into a writeable directory." + elog "Then call: " + elog + elog "ruby -C /location/of/tests runner.rb" + else + elog "Enable the rubytests USE flag to install the make check tests" + fi +} + +src_install() { + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" + RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${SLOT}" + for d in $(find "${S}/ext" -type d) ; do + RUBYLIB="${RUBYLIB}:$d" + done + export LD_LIBRARY_PATH RUBYLIB + + emake DESTDIR="${D}" install || die "make install failed" + + MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']") + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']") + + if use doc; then + make DESTDIR="${D}" install-doc || die "make install-doc failed" + fi + + if use examples; then + dodir /usr/share/doc/${PF} + cp -pPR sample "${D}/usr/share/doc/${PF}" + 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 README* ToDo + + if use rubytests; then + dodir /usr/share/${PN}-${SLOT} + cp -pPR test "${D}/usr/share/${PN}-${SLOT}" + fi +} + +pkg_postinst() { + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then + eselect ruby set ruby${MY_SUFFIX} + fi + + elog + elog "This ebuild is compatible to eselect-ruby" + elog "To switch between available Ruby profiles, execute as root:" + elog "\teselect ruby set ruby(18|19|...)" + elog +} + +pkg_postrm() { + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then + eselect ruby set ruby${MY_SUFFIX} + fi +} diff --git a/dev-lang/ruby/ruby-1.8.7_p173.ebuild b/dev-lang/ruby/ruby-1.8.7_p173.ebuild new file mode 100644 index 000000000000..744d53ef47e3 --- /dev/null +++ b/dev-lang/ruby/ruby-1.8.7_p173.ebuild @@ -0,0 +1,190 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p173.ebuild,v 1.1 2009/06/10 05:00:47 graaff Exp $ + +#PATCHES APPLY, DOESN'T COMPILE THOUGH +#ONIGURUMA="onigd2_5_9" + +inherit autotools eutils flag-o-matic multilib versionator + +SLOT=$(get_version_component_range 1-2) +MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) + +MY_P="${PN}-$(replace_version_separator 3 '-')" +S=${WORKDIR}/${MY_P} + +DESCRIPTION="An object-oriented scripting language" +HOMEPAGE="http://www.ruby-lang.org/" +SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2" +# cjk? ( http://www.geocities.jp/kosako3/oniguruma/archive/${ONIGURUMA}.tar.gz )" + +LICENSE="|| ( Ruby GPL-2 )" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="berkdb debug doc emacs examples gdbm ipv6 rubytests socks5 ssl threads tk xemacs" #cjk + +RDEPEND=" + berkdb? ( sys-libs/db ) + gdbm? ( sys-libs/gdbm ) + ssl? ( dev-libs/openssl ) + socks5? ( >=net-proxy/dante-1.1.13 ) + tk? ( dev-lang/tk ) + app-admin/eselect-ruby + !=dev-lang/ruby-cvs-${SLOT}* + !<dev-ruby/rdoc-2 + !dev-ruby/rexml" +DEPEND="${RDEPEND}" +PDEPEND="emacs? ( app-emacs/ruby-mode ) + xemacs? ( app-xemacs/ruby-modes )" + +PROVIDE="virtual/ruby" + +pkg_setup() { + use tk || return + + if (use threads && ! built_with_use dev-lang/tk threads) \ + || (! use threads && built_with_use dev-lang/tk threads) ; then + eerror + eerror "You have Tk support enabled." + eerror + eerror "Ruby and Tk need the same 'threads' USE flag settings." + eerror "Either change the USE flag on dev-lang/ruby or on dev-lang/tk" + eerror "and recompile tk." + + die "threads USE flag mismatch" + fi +} + +src_unpack() { + unpack ${A} + +# if use cjk ; then +# einfo "Applying ${ONIGURUMA}" +# pushd "${WORKDIR}/oniguruma" +# econf --with-rubydir="${S}" || die "oniguruma econf failed" +# emake $MY_SUFFIX || die "oniguruma emake failed" +# popd +# fi + + cd "${S}/ext/dl" + epatch "${FILESDIR}/${PN}-1.8.6-memory-leak.diff" + cd "${S}" + epatch "${FILESDIR}/${PN}-mkconfig.patch" + epatch "${FILESDIR}/${PN}${MY_SUFFIX}-mkmf-parallel-install.patch" + + # Fix a hardcoded lib path in configure script + sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ + configure.in || die "sed failed" + + eautoreconf +} + +src_compile() { + # -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 + + # 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=${RUBY_GC_MALLOC_LIMIT}" + fi + + econf --program-suffix=$MY_SUFFIX --enable-shared \ + $(use_enable socks5 socks) \ + $(use_enable doc install-doc) \ + $(use_enable threads pthread) \ + $(use_enable ipv6) \ + $(use_enable debug) \ + $(use_with berkdb dbm) \ + $(use_with gdbm) \ + $(use_with ssl openssl) \ + $(use_with tk) \ + ${myconf} \ + --with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \ + --enable-option-checking=no \ + || die "econf failed" + + emake EXTLDFLAGS="${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 other" + elog "than root, and you must place them into a writeable directory." + elog "Then call: " + elog + elog "ruby -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 here. + unset RUBYOPT + + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" + RUBYLIB="${S}:${LD_LIBRARY_PATH}/ruby/${SLOT}" + for d in $(find "${S}/ext" -type d) ; do + RUBYLIB="${RUBYLIB}:$d" + done + export LD_LIBRARY_PATH RUBYLIB + + emake DESTDIR="${D}" install || die "make install failed" + + MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']") + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']") + + if use doc; then + make DESTDIR="${D}" install-doc || die "make install-doc failed" + fi + + if use examples; then + dodir /usr/share/doc/${PF} + cp -pPR sample "${D}/usr/share/doc/${PF}" + 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 README* ToDo + + if use rubytests; then + dodir /usr/share/${PN}-${SLOT} + cp -pPR test "${D}/usr/share/${PN}-${SLOT}" + fi +} + +pkg_postinst() { + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then + eselect ruby set ruby${MY_SUFFIX} + fi + + elog + elog "This ebuild is compatible to eselect-ruby" + elog "To switch between available Ruby profiles, execute as root:" + elog "\teselect ruby set ruby(18|19|...)" + elog +} + +pkg_postrm() { + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then + eselect ruby set ruby${MY_SUFFIX} + fi +} |