diff options
author | Hans de Graaff <graaff@gentoo.org> | 2012-07-07 07:20:48 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2012-07-07 07:20:48 +0000 |
commit | 277d6fa5eee70caa211eb5890ab8db5e6af6d5bf (patch) | |
tree | c8e230cc97e0570d82a731340c795475a8803074 /dev-lang | |
parent | Version bump. (diff) | |
download | historical-277d6fa5eee70caa211eb5890ab8db5e6af6d5bf.tar.gz historical-277d6fa5eee70caa211eb5890ab8db5e6af6d5bf.tar.bz2 historical-277d6fa5eee70caa211eb5890ab8db5e6af6d5bf.zip |
Version bump. Fix bug 378567 thanks to slyfox.
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/ruby/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/ruby/Manifest | 5 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.7_p370.ebuild | 193 |
3 files changed, 203 insertions, 2 deletions
diff --git a/dev-lang/ruby/ChangeLog b/dev-lang/ruby/ChangeLog index 0f04c17d21cc..13a50e696778 100644 --- a/dev-lang/ruby/ChangeLog +++ b/dev-lang/ruby/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/ruby # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.536 2012/06/25 07:06:31 nativemad Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.537 2012/07/07 07:20:48 graaff Exp $ + +*ruby-1.8.7_p370 (07 Jul 2012) + + 07 Jul 2012; Hans de Graaff <graaff@gentoo.org> +ruby-1.8.7_p370.ebuild: + Version bump. Fix bug 378567 thanks to slyfox. 25 Jun 2012; Andreas Schuerch <nativemad@gentoo.org> ruby-1.9.3_p125.ebuild: x86 stable, see bug 411507 diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest index 47a15f1f6faa..1757a77a03aa 100644 --- a/dev-lang/ruby/Manifest +++ b/dev-lang/ruby/Manifest @@ -1,12 +1,14 @@ DIST ruby-1.8.7-p352.tar.bz2 4207576 SHA256 9df4e9108387f7d24a6ab8950984d0c0f8cdbc1dad63194e744f1a176d1c5576 SHA512 30ac829da3cbddecb85318662780bca627eab72cad97882eac1ab20678d9609d603cfa9e33a80d701f7112a3445d94b2c8ce5ad82a6865ef86387d931d0a6a3d WHIRLPOOL b77c5979c4101ce8277916384ab885f2e2d24fa0d61df73175935b2de9eba3bbb80af6fbeebf61718c4dca0c56145d6064646b203b20d2589d1c8b8f7cf5b4f3 DIST ruby-1.8.7-p357.tar.bz2 4208157 SHA256 5c64b63a597b4cb545887364e1fd1e0601a7aeb545e576e74a6d8e88a2765a37 SHA512 c8ec885ed4598ac29bc21a328b6c659feb85b71fc18e2ed6c5fe41ed94131cbb59b128e24015fd482e7e19cca349ab519dfa0eaf52f6b1bb77db41b8c8525765 WHIRLPOOL afbf25d0b6c1e57b399d247d2c5b5a2e73eba47357aecf0030a7f4bc693181b980b9cf7a30410a004087a960f62d2172555419be0bb9cda5d1b3790c3ac4c634 DIST ruby-1.8.7-p358.tar.bz2 4209883 SHA256 309ccd427e47ef41a70f96462bd3c2ef2e7911ce1b22432ab502f5bc6e949c1b SHA512 f5d3729cbf869ee8d24a8d73008de8591d7d3fbee7a935c3cd69f755008243e821e53405b1a62e46d6af847a749c73e7463aede091d63ff43e5b1e01ecf06199 WHIRLPOOL 43329aeb38b6ed2e901ee32b51e527cc49bd72bbf668efd60d7bfd6962171dca2b235d2a13d291ab0a362c7ee5a9262a50538a4c2cff1122c23bb8b2ddcab10e +DIST ruby-1.8.7-p370.tar.bz2 4211597 SHA256 6359b03a1c8ba16630a96fcb5f972c7af15bd33b752e324cd87964224ab1fe31 SHA512 d8e592e142b79d108da7bb3798016b26ac0cba34468c96978a561f1f2386d83714a4d9bf2cbd7e78c7aa71ff29f10cce65cf5b7cadf3ec089412c8d73e627e91 WHIRLPOOL 6762f7006c25f12edd5d8be0ecaa3b76f29f2a54eeb642898094df5c3e3de1f993da9207749b2cc4f793fcb42a14e9ad4335aa8a5ad3f127d32fc00a500ae3af DIST ruby-1.9.3-p0.tar.bz2 9554576 SHA256 ca8ba4e564fc5f98b210a5784e43dfffef9471222849e46f8e848b37e9f38acf SHA512 750f942be0359b09852954fc9933bbb802c870dd1ceca8cc97360404f3c5d6842b26688cccf3a610e4eba074b4c61cce7215e581b2ebca54ee4f35178618d2b4 WHIRLPOOL 243bbd2b5e9feb416dff0ef81820ab3e0071a952de0fd0948f72d4b70f4144c9f7631a23cb0e88bc318fc392d892ff336470b0d435939d60c83ca5df81b61676 DIST ruby-1.9.3-p125.tar.bz2 9733962 SHA256 c67a59443052b5a9219eb4cee3892bdfbc6f250f0c8e214e02256a4cc7ef5526 SHA512 3a3e4284e2533a501ade3a32cdea01cbdf919cb03bd46b237a2f6af28c97416a3e4d3db021da7a9154362de11dc3db5a48d22801b0e31e7c52f785555759e2f7 WHIRLPOOL 0ee5badbc89d5d38757f65681db2cff4a64b1636039d756d18838734e8e2084ed65dc22514824377377e539421a6553de5afaa454e7ca4e1225958106e372982 DIST ruby-1.9.3-p194.tar.bz2 9841223 SHA256 a9d1ea9eaea075c60048369a63b35b3b5a06a30aa214a3d990e0bb71212db8fa SHA512 cb01bb02154c8c316404326ddfa182d212d3291f11250e56d3ada269c1898eea75c23b11558d805d7505422b084d3b7b6aea2c37e23546499e8040a0d4da8b01 WHIRLPOOL 27aff31f301679a70e8ff7babd8a060ea3722150ca29a008f339633a762dab968f77b5b6108a9c938902785213ea59a0cad54742a60ac9a390f90aa5b90e196a DIST ruby-patches-1.8.7_p352.tar.bz2 2646 SHA256 695895d4ab77294975669d879f0b03e08af5fcd750b967b44305031b2c115da6 SHA512 c944e0d8fc2c24fb7d2181dc54025a0b2e119be218e2073edc84f7c8666aff6afb32ff44e3b8dab98b294b63bd28b13006528e5b1da0901a85bcbdce631785f7 WHIRLPOOL e48d826daca4f0c7827fceb41236bf4f12db0e48ba01b5165f86e667752b0d86ec0af4e369c772080735ed7678d2bac15ddace42dc726dbf9753e5303502ae16 DIST ruby-patches-1.8.7_p357.tar.bz2 2444 SHA256 779d98e7c325eaf5bdb652dc7ceebda604792cddcce547766966021e60e68aac SHA512 4fbcdc2fb14ceb5add860537cc97cff1711ac56f9bc9a7fa3a699f12d3882c5404c76fddfe0b648b88e956dc12a72789ffbce158a85d4a6a6e71d773effb796c WHIRLPOOL 5c30143ab906e3520ca3fed85518a5f0abe20373ac80f6a2c69480006fe4587212c571f530e5b1310e243638f5c477e2948f3b197428dc9af022ce35c6e368ab DIST ruby-patches-1.8.7_p358.tar.bz2 4852 SHA256 7afcafa54bfcf4a2f2bb5b95e14aa304d84e9388c9680243db8dc397aa3008cf SHA512 2d37f9334e73993762b5b8e669b3ec091f201393bf07317068b65a40b25718384bd4bd80bd76641439105ed1311db0964c103432994f95d84cc2e209152738aa WHIRLPOOL 5a93cafe85bd88946289c5066edaed284b648a5218b11a1cf80966465d82e0ef6e77fb22a11d93f5f70f777056745c322d76528d4fce8ed34ec7ffc3d51c6fe2 +DIST ruby-patches-1.8.7_p370.tar.bz2 1751 SHA256 aac510388694255db850d7773d75e37b0d6ceefcb36786c61870f318d831be42 SHA512 21b3b6c8c91337414d68a30faf1f800854fa627c3b7078a42920b55a4c9c8af25997657ad5165a98096b14816f422bc88b0bbbb7735eeda6d5782c87ae9ff9cf WHIRLPOOL 8418d37166ddcb45c31c95cbddf957153d1c601ed33e6d23aa1fc9dd4328f3daa9a8b0fbb16720b2cab7f6ca0cf1c81cde99929339a53830e1168779645fe5c7 DIST ruby-patches-1.9.3_p0.tar.bz2 2228 SHA256 22116a403a111701972a5a10d5c31b0bb86dd822c346d0079e86e03866d55df6 SHA512 6c5d1175f4baa8b869dcd12434b8c471784e0e5a925beb449dae076855393f0e46c64d33a729c4528e95201512d07e765802e24000fc1386cc5814df07eac7a6 WHIRLPOOL 0b5dd23f8a7337ebef6f4588de3c548be43260285c67e3778cc4e8b6c00f24b95f4504376941ac83fb99cc1469d5aa48e78615f18e9f08b56c82936b4c0e7412 DIST ruby-patches-1.9.3_p125.tar.bz2 1852 SHA256 bc025f4a304a74531aa683b1a8a806f68b4a96fcf26fa42d9660218b9a1cef1a SHA512 a73b4065bc356e3936aaacfadc5349d0cc1557e31d606a2efac28c0c45f1c583c272f2a21d67580387c06fff7245d5933d82f2d05adbaca3eb194e4a48ad3ac9 WHIRLPOOL 990e1db7dfabe4e88ba9727adabc6566a291b9fba0798349c4b581feb15b60fe8d562729a9cb6f9975a4c7dd1c250919e8094f3757b037e8e496f2efc593bdf5 DIST ruby-patches-1.9.3_p194-r1.tar.bz2 2508 SHA256 c2e01dceb2eee33209d6e218d2750cbd2ff32bdc34af816613b4d902fe107ee8 SHA512 38b2ec286072078ad3a9f17cd676a5636bf38dfc9aa2957a0edd3fe0248becf3d2c9def9a776995515151974f0874d79407ae1619502ea408b3bfb9a7e4661ea WHIRLPOOL eb3db89c7e2c2cf9f4e4b8295d5779dcdba1a0f793810d49f56d209363f2012e9230c0fd55da46b24980ad9c46de9e152ab68ce2c51a78ac2f593122b100c2ac @@ -14,9 +16,10 @@ DIST ruby-patches-1.9.3_p194.tar.bz2 1852 SHA256 bc025f4a304a74531aa683b1a8a806f EBUILD ruby-1.8.7_p352.ebuild 5566 SHA256 6b048c8621cd3ee0cf3bb64caf6f1790dd1d853bd7695a7404d7ca08f55b85c8 SHA512 64b4e289c3fe8841a795d57af460a8e25736493c3904f2cce27a5bb8eeae847f301b4772762fcd0c7ec046e993df956d5dcc05e7436a7cb0d4a399e2e7a5973b WHIRLPOOL af585a462995948fbff492e5f9826616cdceabb77cb4dfe739a22f7fba25f0e343083d494148f3c7ab3c869991d25d3259e4ad53d4bc7fb6e80d8e4de059268e EBUILD ruby-1.8.7_p357.ebuild 5519 SHA256 6243fe1a6e29a0ce1d7073ec7984a7089e6d00b350e13e76bdbaa5b85a24ed68 SHA512 7c6cbdf9370d58d780fdd565ab96ac6ddd04a610686ebaa2aa5a2c0afb7fbca21922d1fc1378bcb7885b80b43d62f7e4f7009f69a0330054b0981a596f376be8 WHIRLPOOL 92874118d62c23bad4b0bc24c547d07f257e879a344dc9bf842d4fd103f246b6909f9c185bcdc864ea2267b6410b94127615dea9a43861b148008fb667b05f37 EBUILD ruby-1.8.7_p358.ebuild 5543 SHA256 0a274b8bc2cd321930b7d6e9a0b592d1e189793a7e116bd808e9716aac47bfe2 SHA512 f4d7ba554b6ed30d610a14c2102e1d326c5d7d135360420bf83b18c6d2358239496009770c03c153da5ab61c78545eac44b73d87489d6b346feda95a166e6db6 WHIRLPOOL 26e630f0eba496dc25b0e658ac128a39d6e79804db86e2a61c46bffba9f7a55b551a87d27adab1229183e204da89a16f11edc8484d55085efad41c3d25d39fba +EBUILD ruby-1.8.7_p370.ebuild 5541 SHA256 c00493449a73470220462ca4ccc7a0534fbc1b74a4cdf89bf20433bc50c48873 SHA512 70cbcadf51529dabb231210640dd16d54a806cb350995abcb42b47548e4e2c89609124a48864fa98e451914e18f02a5553d92a24d2b4e624b3a1025a89de20d4 WHIRLPOOL b7300e0f5fcf0edfaf7c7b09554db2da79a524afc60f4c58d349cdb93ff15c82c1a22fa3f65e37a8bd3c6f4234567445a63c894d00d7bf75fb1f372911732b13 EBUILD ruby-1.9.3_p0.ebuild 6269 SHA256 5ade38e90ddca6d5bade0958ea69ddedb9aeb45bc406c45f1ec9b53dda8e3f9d SHA512 dba01a49f774a1842aca8352dd8431dd2c6a6a69880f409a8843ac6a9042ab1f1fbaec0882b4e6a9728d92d7b90bee24f5325dde5d3817244a1f0e627e70c4e7 WHIRLPOOL 5e9358f210cf1f612d8a5e987b1ad315f7575792b6f288d50f0eca2eb8c0ce55365b4acd796ce43e2735bc2431c3d584c80e3cf70b2eb300b7e1cea38aa51ea2 EBUILD ruby-1.9.3_p125.ebuild 6276 SHA256 b7e4490c83bab12583a3ee89543d1447f32e1872d0ce5aa6030a5e6fe87ab47a SHA512 ddf7486e7464f59f45b2bd0224c6c9912a799bbc53fbffa73dac5d9fec9d97e859d010727326d916fd2feffda3c4f87cfa1940911715c07beae8b3416127dc48 WHIRLPOOL a57fdfa8af5268dca45a05c09ed59a95877494b52b2bf1d1a7f057c2cfadae6e660f02af6dd4b46f4688becbae2b749ba876d81d0c977d523875b43f8c806121 EBUILD ruby-1.9.3_p194-r1.ebuild 6294 SHA256 36c5e9052f3f48b95bf98dfb4b323f681e2bb9af8a5e3dae706de74fb9bd5122 SHA512 568625e244701c20cedb8ab96a372ad09672a7f78cef46241449295d77702ae8a74c8c87fef7b77552029786e71d0c3eba33aa1bad0fd03b87bbd2fbc5f07538 WHIRLPOOL 7c56778e26350bb0d512a8203fadcd737c2c8f190d89a888d7f1ebd73b83488c6b9bf4d61b1fdf1ee228f2d800c38b0861ce5f3174164b770dfd3cf5fa8391e1 EBUILD ruby-1.9.3_p194.ebuild 6276 SHA256 ce6ccd342e88fcb0b8cf3c1f83a0289a55259d1f6f8d127b47f255b05826c639 SHA512 81eb63bb19a032821a8f59b6f081c648fceb2b1465acdda8236a3feb272c9493bf76fa74011ecfbf1b619fb0e54ead82748da5b46a614fe80d36e1b301846bdb WHIRLPOOL 9a1758d4e5c8badfc0d963a725cc4affb8aa4615f75b5f56e8041807bf47d141fc20e67445e0109cfb1ff1a3c9cd2c4f3d07307f52e4e7d4b09bc91c50cb1612 -MISC ChangeLog 81910 SHA256 49c5b5ffc7f3875dc52fd76b69f30c4539e1121524baa3edaeebe0e7e2d4a1fe SHA512 447c5707dc30e1437c396df890c517e691c34c1721fd40626f140dd44e6718ab4eece16992272cf8095a306296cab23a7687f1f10804cf25609721072a1f95f2 WHIRLPOOL 995b331e88e3cb193e2c37c6a4b339914614a4c59047f07128fdff9e4d60f1ee6bcc6ddfb65577f031dea6e37eb7c329d1c0f830323fc9c47d34e75c56786279 +MISC ChangeLog 82064 SHA256 d6d18aa6b440173b255341c9717120f623a41ff30b52797660629748467927e1 SHA512 3e9e8fef9db53b15a8d469a08cf9d652e956fd6fc90e93913723678afbae97d1031086ad075ed9974b93f42fab86246c7e8e838b79cc6197803359d5f50f6d17 WHIRLPOOL a311fd1659134649f23344be4c5569a3206eefacac90e70e4f750c1e9ff2d356a1280d0b72ea7825f99b9640c45df8d11729bab375092809d5fe1e68dda1a376 MISC metadata.xml 1388 SHA256 365a88ae053d47050b6b50d05eb518755a3aeb0c91ca77d2d8eeabfd24a2447f SHA512 deb4ce50904ebf52f2b390009d23a63fa63a1652063a924406b6d6cd3c1c30fefbd71525aaeda73f57d7178afebcbd348080a5661439a365bb15bdbf95608b55 WHIRLPOOL 8ef6d3c3c05c66b1a960366f7c69fd401ab8b49145ef464eae8c94daf9935dad96f5e499e550d87435aa960a7aa3e2b8b1afc9f693d2a0db0e52bc6c77cdbbe7 diff --git a/dev-lang/ruby/ruby-1.8.7_p370.ebuild b/dev-lang/ruby/ruby-1.8.7_p370.ebuild new file mode 100644 index 000000000000..eccedaca52ea --- /dev/null +++ b/dev-lang/ruby/ruby-1.8.7_p370.ebuild @@ -0,0 +1,193 @@ +# Copyright 1999-2012 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_p370.ebuild,v 1.1 2012/07/07 07:20:48 graaff Exp $ + +EAPI=2 + +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}) +# 1.8 and 1.9 series disagree on this +RUBYVERSION=$(get_version_component_range 1-2) + +if [[ -n ${PATCHSET} ]]; then + if [[ ${PVR} == ${PV} ]]; then + PATCHSET="${PV}-r0.${PATCHSET}" + else + PATCHSET="${PVR}.${PATCHSET}" + fi +else + PATCHSET="${PVR}" +fi + +DESCRIPTION="An object-oriented scripting language" +HOMEPAGE="http://www.ruby-lang.org/" +SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2 + http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" + +LICENSE="|| ( Ruby GPL-2 )" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit" + +RDEPEND=" + berkdb? ( sys-libs/db ) + gdbm? ( sys-libs/gdbm ) + ssl? ( >=dev-libs/openssl-0.9.8m ) + socks5? ( >=net-proxy/dante-1.1.13 ) + tk? ( dev-lang/tk[threads=] ) + ncurses? ( sys-libs/ncurses ) + libedit? ( dev-libs/libedit ) + !libedit? ( readline? ( sys-libs/readline ) ) + sys-libs/zlib + >=app-admin/eselect-ruby-20100603 + !<dev-ruby/rdoc-2" +DEPEND="${RDEPEND}" +PDEPEND="xemacs? ( app-xemacs/ruby-modes )" + +src_prepare() { + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ + epatch "${WORKDIR}/patches" + + # 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_configure() { + local myconf= + + # -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 + + # ipv6 hack, bug 168939. Needs --enable-ipv6. + use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" + + if use libedit; then + einfo "Using libedit to provide readline extension" + myconf="${myconf} --enable-libedit --with-readline" + elif use readline; then + einfo "Using readline to provide readline extension" + myconf="${myconf} --with-readline" + else + myconf="${myconf} --without-readline" + fi + + econf \ + --program-suffix="${MY_SUFFIX}" \ + --enable-shared \ + $(use_enable socks5 socks) \ + $(use_enable doc install-doc) \ + $(use_enable threads pthread) \ + --enable-ipv6 \ + $(use_enable debug) \ + $(use_with berkdb dbm) \ + $(use_with gdbm) \ + $(use_with ssl openssl) \ + $(use_with tk) \ + $(use_with ncurses curses) \ + ${myconf} \ + --with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \ + --enable-option-checking=no \ + || die "econf failed" +} + +src_compile() { + 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${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 here. + unset RUBYOPT + + local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) + + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" + RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" + 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" + + 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 + 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 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 +} |