diff options
author | Nguyen Thai Ngoc Duy <pclouds@gentoo.org> | 2007-09-03 08:50:51 +0000 |
---|---|---|
committer | Nguyen Thai Ngoc Duy <pclouds@gentoo.org> | 2007-09-03 08:50:51 +0000 |
commit | 59d52f135661a91dadbb489386fe2468cfb91ac1 (patch) | |
tree | 0071ce905facec91c05d38fd31466233b006f692 /dev-ruby | |
parent | Fix freeStacks() in single-threaded builds without dynamic stack shifting. (diff) | |
download | historical-59d52f135661a91dadbb489386fe2468cfb91ac1.tar.gz historical-59d52f135661a91dadbb489386fe2468cfb91ac1.tar.bz2 historical-59d52f135661a91dadbb489386fe2468cfb91ac1.zip |
Add initscript for gem_server. The script was contributed by Henning Schild <henning@wh9.tu-dresden.de>, #186937
Package-Manager: portage-2.1.3_rc8
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rubygems/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/rubygems/Manifest | 33 | ||||
-rw-r--r-- | dev-ruby/rubygems/files/conf.d-gem_server | 5 | ||||
-rw-r--r-- | dev-ruby/rubygems/files/digest-rubygems-0.9.4-r1 | 3 | ||||
-rw-r--r-- | dev-ruby/rubygems/files/init.d-gem_server | 22 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-0.9.4-r1.ebuild | 88 |
6 files changed, 146 insertions, 15 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog index 07651984f7fb..8ec8828bcc1e 100644 --- a/dev-ruby/rubygems/ChangeLog +++ b/dev-ruby/rubygems/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-ruby/rubygems # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.68 2007/08/24 11:06:42 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.69 2007/09/03 08:50:51 pclouds Exp $ + +*rubygems-0.9.4-r1 (03 Sep 2007) + + 03 Sep 2007; Nguyễn Thái Ngọc Duy <pclouds@gentoo.org> + +files/conf.d-gem_server, +files/init.d-gem_server, + +rubygems-0.9.4-r1.ebuild: + Add initscript for gem_server. The script was contributed by Henning Schild + <henning@wh9.tu-dresden.de>, #186937 24 Aug 2007; Hans de Graaff <graaff@gentoo.org> rubygems-0.9.4.ebuild: Fix silly typo, thanks to marc_alec diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index 65d2b5ce5867..84ee6d5c423b 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 0.8.11-install.rb.extract_files.patch 1416 RMD160 1af89ae0536a8139a849e66a71e27c205b1a5a0a SHA1 f7feb72e775ddaf48b455f66a719575306e4e09b SHA256 801106efb151be063fca60dd3eed4a981424e4a7ce65f60eb97606453ebffde2 MD5 3b30b6d6252ec0148863e438db59c8a3 files/0.8.11-install.rb.extract_files.patch 1416 RMD160 1af89ae0536a8139a849e66a71e27c205b1a5a0a files/0.8.11-install.rb.extract_files.patch 1416 @@ -13,6 +10,14 @@ AUX auto_gem.rb 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 SHA1 8dde3d7 MD5 fafe3ad43fd0c53f7f10ec7736a90c4f files/auto_gem.rb 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 files/auto_gem.rb 159 SHA256 fe1efe24cd0ba36c55449e9623cd0be394980f37d12468624dad7ffdef72f4dc files/auto_gem.rb 159 +AUX conf.d-gem_server 81 RMD160 8c5c57e989e009b87fcb345185f3f1e3acaf517d SHA1 4d43d760253a478adbce597148ff1c4e414e8eea SHA256 aa850780bebe0e31da9732d8707a748567ca72716fd91e294dc712e71f82db2f +MD5 a0216ad26adad2af57eb6a344c51a10f files/conf.d-gem_server 81 +RMD160 8c5c57e989e009b87fcb345185f3f1e3acaf517d files/conf.d-gem_server 81 +SHA256 aa850780bebe0e31da9732d8707a748567ca72716fd91e294dc712e71f82db2f files/conf.d-gem_server 81 +AUX init.d-gem_server 502 RMD160 9fe089f462edff052e6b7fa6ea3803e0178f41ef SHA1 e00ead252760613865f5e655ff2e559e7578d28f SHA256 b6166c27021880ee1509eb68092f0d3d0550adb9d6b0dcb9396c91c725c5218e +MD5 39d06e174ad6a8feabcd32e64d194d9b files/init.d-gem_server 502 +RMD160 9fe089f462edff052e6b7fa6ea3803e0178f41ef files/init.d-gem_server 502 +SHA256 b6166c27021880ee1509eb68092f0d3d0550adb9d6b0dcb9396c91c725c5218e files/init.d-gem_server 502 AUX no-manage_gems.patch 472 RMD160 e70f8c939f4e35a5fb7e0ccc3935cda8089fd569 SHA1 eca009a56418bf076c1153d2a71ab4fe3a576f8a SHA256 36a4a5cca5c32185f5057934f10c28704f64ba1cb586120f20473875413b9f93 MD5 9905636361088bee5e56beb6c94cf106 files/no-manage_gems.patch 472 RMD160 e70f8c939f4e35a5fb7e0ccc3935cda8089fd569 files/no-manage_gems.patch 472 @@ -52,14 +57,18 @@ EBUILD rubygems-0.9.0-r2.ebuild 1976 RMD160 f829fa67d1641ff3b7c2ef32f2e2dac3d1fb MD5 eb705d47ede3c48d23e6efa11692fd22 rubygems-0.9.0-r2.ebuild 1976 RMD160 f829fa67d1641ff3b7c2ef32f2e2dac3d1fbed62 rubygems-0.9.0-r2.ebuild 1976 SHA256 1139c22d00fc4d117ba397fbc8f275c6ed33376614fe1a6113da6f0fe1e35c54 rubygems-0.9.0-r2.ebuild 1976 +EBUILD rubygems-0.9.4-r1.ebuild 2897 RMD160 b5f2ac8ae0de879c548b8e10eced891aed7c458b SHA1 e48601af5a1c12b19fc09c4a0b358e2ac0ef87a1 SHA256 b717be755a7418e12ac27888910c184d054e6cb49760f2300df0622f79d8d18d +MD5 55085f3961e8eab4b407e49c3b629823 rubygems-0.9.4-r1.ebuild 2897 +RMD160 b5f2ac8ae0de879c548b8e10eced891aed7c458b rubygems-0.9.4-r1.ebuild 2897 +SHA256 b717be755a7418e12ac27888910c184d054e6cb49760f2300df0622f79d8d18d rubygems-0.9.4-r1.ebuild 2897 EBUILD rubygems-0.9.4.ebuild 2753 RMD160 62d3725c309778184b5639bf80d0a3277b7be752 SHA1 4e54d3242dfc30f6112928599acc17cfaae8b185 SHA256 0466e321185e2bef8b796c0de744ef58de27a64cb98f65651b1e0e1cd659df35 MD5 9fb8a7f4eb4b434f2716b2ea712a7f9b rubygems-0.9.4.ebuild 2753 RMD160 62d3725c309778184b5639bf80d0a3277b7be752 rubygems-0.9.4.ebuild 2753 SHA256 0466e321185e2bef8b796c0de744ef58de27a64cb98f65651b1e0e1cd659df35 rubygems-0.9.4.ebuild 2753 -MISC ChangeLog 9964 RMD160 95048d95874a74a4ccc56f911a45d86f9cf3687a SHA1 07046bd1e6c57a74d2435b0f381de6247232eb07 SHA256 115a159ece5d73fe35604061946c254bbbbfb6f9700cebcb6d074544d503030b -MD5 8d79d28f235946465c6dc019413dbfa0 ChangeLog 9964 -RMD160 95048d95874a74a4ccc56f911a45d86f9cf3687a ChangeLog 9964 -SHA256 115a159ece5d73fe35604061946c254bbbbfb6f9700cebcb6d074544d503030b ChangeLog 9964 +MISC ChangeLog 10262 RMD160 5f5ac9113a0ada7ae40862b815bf5c89490bb028 SHA1 c587222e36ab7b9f84b5d76f0f181c7d73c9e0ca SHA256 f7a708d9d27259c28c4c335ea16d5995f1aad4c3df11f46274cb7ec4d9a6a241 +MD5 3e155e5d9db319ddcd0edd59cf627bbd ChangeLog 10262 +RMD160 5f5ac9113a0ada7ae40862b815bf5c89490bb028 ChangeLog 10262 +SHA256 f7a708d9d27259c28c4c335ea16d5995f1aad4c3df11f46274cb7ec4d9a6a241 ChangeLog 10262 MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 metadata.xml 157 @@ -73,10 +82,6 @@ SHA256 70a1185b3b03d3e319df2082ac691e533568859a4f8ee26de4898a35806aa378 files/di MD5 c7ab1d478ef92824585c153009dff80b files/digest-rubygems-0.9.4 235 RMD160 3a4038918818bfe86f352858b2ee4656c761c4d2 files/digest-rubygems-0.9.4 235 SHA256 01e01f85b72c814b08949caff97674ef45d0560c218c1de3d3814b9310b1d4d1 files/digest-rubygems-0.9.4 235 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.7 (GNU/Linux) - -iD8DBQFGzrvI0BM77Tkv120RAmX/AJ0eHA3YOk5v5vXjpfYr1wP6LbZJdgCgpJwZ -5nLVb0juIwT2ZdPYsIsEcH0= -=WgSF ------END PGP SIGNATURE----- +MD5 c7ab1d478ef92824585c153009dff80b files/digest-rubygems-0.9.4-r1 235 +RMD160 3a4038918818bfe86f352858b2ee4656c761c4d2 files/digest-rubygems-0.9.4-r1 235 +SHA256 01e01f85b72c814b08949caff97674ef45d0560c218c1de3d3814b9310b1d4d1 files/digest-rubygems-0.9.4-r1 235 diff --git a/dev-ruby/rubygems/files/conf.d-gem_server b/dev-ruby/rubygems/files/conf.d-gem_server new file mode 100644 index 000000000000..b9cfa3f557ee --- /dev/null +++ b/dev-ruby/rubygems/files/conf.d-gem_server @@ -0,0 +1,5 @@ +# /etc/conf.d/gem_server + +# See `gem_server --help` for more + +GEM_SERVER_OPTS="" diff --git a/dev-ruby/rubygems/files/digest-rubygems-0.9.4-r1 b/dev-ruby/rubygems/files/digest-rubygems-0.9.4-r1 new file mode 100644 index 000000000000..29a12d32c242 --- /dev/null +++ b/dev-ruby/rubygems/files/digest-rubygems-0.9.4-r1 @@ -0,0 +1,3 @@ +MD5 b5680acaa019c80ea44fe87cc2e227da rubygems-0.9.4.tgz 204841 +RMD160 6ee02db45173f05e6f8c5b1ecd5af832fb8601f8 rubygems-0.9.4.tgz 204841 +SHA256 b4d47bcfe2f3b08f7c3bb659a2f4e34a3fa9c1135ba98ad3272753753c354e5c rubygems-0.9.4.tgz 204841 diff --git a/dev-ruby/rubygems/files/init.d-gem_server b/dev-ruby/rubygems/files/init.d-gem_server new file mode 100644 index 000000000000..1600bdc12349 --- /dev/null +++ b/dev-ruby/rubygems/files/init.d-gem_server @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PID=/var/run/gem_server.pid + +depend() { + need localmount net +} + +start() { + ebegin "Starting gem_server" + start-stop-daemon --start --chuid nobody --quiet --background --make-pidfile \ + --pidfile ${PID} --exec /usr/bin/ruby -- /usr/bin/gem_server ${GEM_SERVER_OPTS} + eend ${?} +} + +stop() { + ebegin "Stopping gem_server" + start-stop-daemon --stop --pidfile ${PID} + eend ${?} +} diff --git a/dev-ruby/rubygems/rubygems-0.9.4-r1.ebuild b/dev-ruby/rubygems/rubygems-0.9.4-r1.ebuild new file mode 100644 index 000000000000..71da31fab145 --- /dev/null +++ b/dev-ruby/rubygems/rubygems-0.9.4-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-0.9.4-r1.ebuild,v 1.1 2007/09/03 08:50:51 pclouds Exp $ + +inherit ruby + +DESCRIPTION="Centralized Ruby extension management system" +HOMEPAGE="http://rubyforge.org/projects/rubygems/" +LICENSE="Ruby" + +# Needs to be installed first +RESTRICT="test" + +# The URL depends implicitly on the version, unfortunately. Even if you +# change the filename on the end, it still downloads the same file. +SRC_URI="http://rubyforge.org/frs/download.php/20989/${P}.tgz" + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +SLOT="0" +IUSE="doc server examples" +DEPEND=">=dev-lang/ruby-1.8" +PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb + +PATCHES="${FILESDIR}/${PN}-0.9.1-no_post_install.patch + ${FILESDIR}/no-system-rubygems.patch" +USE_RUBY="ruby18" + +src_unpack() { + ruby_src_unpack + use doc || epatch "${FILESDIR}/${PN}-0.9.1-no_rdoc_install.patch" + + # Delete mis-packaged . files + cd "${S}" + find -name '.*' -type f -print0|xargs -0 rm +} + +src_compile() { + ${RUBY} setup.rb config --libruby="/usr/$(get_libdir)/ruby" || die "setup.rb config failed" + ${RUBY} setup.rb setup || die "setup.rb setup failed" +} + +src_test() { + # Currently RESTRICTed because rubygems needs to be installed + # When I work out how to get around that I'll remove the RETRICT + + #for i in test/{test,functional}*.rb; do + # ruby -I pkgs/sources/lib/ -I lib ${i} # || die "$i failed" + #done + ruby setup.rb test || die "test failed" +} + +src_install() { + # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455 + export RUBYOPT="${GENTOO_RUBYOPT}" + + # Fix GEM_HOME to install sources.gem + ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]') + export GEM_HOME="${D}usr/$(get_libdir)/ruby/gems/${ver}" + + ${RUBY} setup.rb install --prefix=${D} || die "setup.rb install failed" + erubydoc + cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]') + keepdir /usr/$(get_libdir)/ruby/gems/$ver/doc + doenvd "${FILESDIR}/10rubygems" + + if use server; then + newinitd "${FILESDIR}/init.d-gem_server" gem_server + newconfd "${FILESDIR}/conf.d-gem_server" gem_server + fi +} + +pkg_postinst() +{ + ewarn "If you have previously switched to using ruby18_with_gems using ruby-config, this" + ewarn "package has removed that file and makes it unnecessary anymore." + ewarn "Please use ruby-config to revert back to ruby18." +} + +pkg_postrm() +{ + ewarn "If you have uninstalled dev-ruby/rubygems. Ruby applications are unlikely" + ewarn "to run in current shells because of missing auto_gem." + ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby" + ewarn "or start new shells" + ewarn + ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset " + ewarn "RUBYOPT" +} |