diff options
author | swills <swills@FreeBSD.org> | 2011-08-23 11:47:28 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2011-08-23 11:47:28 +0800 |
commit | 492558129dd9214226c5a412e81070c78c449611 (patch) | |
tree | 2fb41e577311438b2f40167989c36d29b983e87c /lang/ruby19 | |
parent | 948d8cd1d721b72260dd84c10427ce10dee866d6 (diff) | |
download | freebsd-ports-gnome-492558129dd9214226c5a412e81070c78c449611.tar.gz freebsd-ports-gnome-492558129dd9214226c5a412e81070c78c449611.tar.zst freebsd-ports-gnome-492558129dd9214226c5a412e81070c78c449611.zip |
- Undo some of the changes related to making Ruby 1.9 default.
Specifically, don't try to use devel/ruby-gems instead of the bundled
gem.
Diffstat (limited to 'lang/ruby19')
-rw-r--r-- | lang/ruby19/Makefile | 36 | ||||
-rw-r--r-- | lang/ruby19/files/patch-common.mk | 9 | ||||
-rw-r--r-- | lang/ruby19/pkg-plist | 102 |
3 files changed, 131 insertions, 16 deletions
diff --git a/lang/ruby19/Makefile b/lang/ruby19/Makefile index 94f607b8bac4..6dde5e2cf66e 100644 --- a/lang/ruby19/Makefile +++ b/lang/ruby19/Makefile @@ -86,7 +86,10 @@ PLIST_SUB+= IF_DEFAULT="" PLIST_SUB+= IF_DEFAULT="@comment " .endif -INSTALLED_SCRIPTS= irb erb rdoc ri ruby testrb +GEMS_DIR= ${PREFIX}/lib/ruby/gems/${RUBY_VER} +PLIST_SUB+= GEMS_DIR="lib/ruby/gems/${RUBY_VER}" + +INSTALLED_SCRIPTS= irb erb rdoc ri ruby testrb gem EXTSAMPLES= bigdecimal/sample/*.rb \ curses/hello.rb \ @@ -133,12 +136,6 @@ post-patch: ${MV} ${BUILD_WRKSRC}/ext/${d} ${WRKDIR}/ .endfor -# we get ruby-gems from ports -.for d in bin/gem doc/rubygems lib/rubygems test/rubygems \ - lib/rubygems.rb lib/ubygems.rb gem_prelude.rb - ${RM} -rf ${BUILD_WRKSRC}/${d} -.endfor - # we get rake from ports .for d in bin/rake doc/rake lib/rake test/rake man/rake.1 lib/rake.rb ${RM} -rf ${BUILD_WRKSRC}/${d} @@ -169,6 +166,8 @@ pre-su-install: ${TOUCH} ${RUBY_DOCDIR}/.keep_me ${TOUCH} ${RUBY_SITEARCHLIBDIR}/.keep_me ${TOUCH} ${RUBY_VENDORARCHLIBDIR}/.keep_me + ${MKDIR} ${GEMS_DIR}/gems + ${TOUCH} ${GEMS_DIR}/gems/.keep_me post-install: # @@ -286,6 +285,29 @@ plist:: @${FIND} -ds ${RUBY_LIBDIR}/ -type d | ${SORT} -r | \ ${SED} -E -e 's,^${RUBY_LIBDIR}(.*),@dirrm %%RUBY_LIBDIR%%\1,' >> pkg-plist +# +# Find all gem files/folders +# + @${FIND} -ds ${GEMS_DIR}/ ! -type d | \ + ${SED} 's,^${GEMS_DIR},%%GEMS_DIR%%,' >> pkg-plist + @${FIND} -ds ${GEMS_DIR}/ -type d | ${SORT} -r | \ + ${SED} -E -e 's,^${GEMS_DIR}(.*),@dirrm %%GEMS_DIR%%\1,' >> pkg-plist + + @${ECHO_CMD} "%%RUBY_SITEARCHLIBDIR%%/.keep_me" >> pkg-plist + @${ECHO_CMD} "@dirrmtry %%RUBY_SITEARCHLIBDIR%%" >> pkg-plist + @${ECHO_CMD} "@dirrmtry %%RUBY_SITELIBDIR%%" >> pkg-plist + @${ECHO_CMD} "@dirrmtry lib/ruby/site_ruby" >> pkg-plist + + @${ECHO_CMD} "%%RUBY_VENDORARCHLIBDIR%%/.keep_me" >> pkg-plist + @${ECHO_CMD} "@dirrmtry %%RUBY_VENDORARCHLIBDIR%%" >> pkg-plist + @${ECHO_CMD} "@dirrmtry %%RUBY_VENDORLIBDIR%%" >> pkg-plist + @${ECHO_CMD} "@dirrmtry lib/ruby/vendor_ruby" >> pkg-plist + @${ECHO_CMD} "@dirrmtry lib/ruby/gems" >> pkg-plist + + @${ECHO_CMD} "@dirrmtry lib/ruby" >> pkg-plist + + @${SED} -i "" -E -e "s,${RUBY_ARCH},%%RUBY_ARCH%%,g" pkg-plist + test: @(cd ${WRKSRC}; ${MAKE} test) diff --git a/lang/ruby19/files/patch-common.mk b/lang/ruby19/files/patch-common.mk index a068f6d240f3..0836883c8ed2 100644 --- a/lang/ruby19/files/patch-common.mk +++ b/lang/ruby19/files/patch-common.mk @@ -1,14 +1,5 @@ --- common.mk.orig 2011-05-17 21:19:20.689620679 -0400 +++ common.mk 2011-05-17 21:19:28.688621223 -0400 -@@ -96,7 +96,7 @@ - - GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT) - --PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(srcdir)/gem_prelude.rb -+PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb - PRELUDES = prelude.c miniprelude.c - GOLFPRELUDES = golf_prelude.c - @@ -256,7 +256,7 @@ install-capi: capi pre-install-capi do-install-capi post-install-capi pre-install-capi:: install-prereq diff --git a/lang/ruby19/pkg-plist b/lang/ruby19/pkg-plist index cf5122a397e6..a3d72f4b5826 100644 --- a/lang/ruby19/pkg-plist +++ b/lang/ruby19/pkg-plist @@ -10,6 +10,8 @@ bin/ruby%%RUBY_SUFFIX%% %%IF_DEFAULT%%bin/ruby bin/testrb%%RUBY_SUFFIX%% %%IF_DEFAULT%%bin/testrb +bin/gem%%RUBY_SUFFIX%% +%%IF_DEFAULT%%bin/gem lib/lib%%RUBY_NAME%%-static.a lib/lib%%RUBY_NAME%%.so lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%% @@ -69,9 +71,14 @@ include/ruby-1.9/ruby.h %%PORTDOCS%%%%RUBY_DOCDIR%%/readline/README %%PORTDOCS%%%%RUBY_DOCDIR%%/readline/README.ja %%PORTDOCS%%%%RUBY_DOCDIR%%/ripper/README +%%PORTDOCS%%%%RUBY_DOCDIR%%/rubygems/ChangeLog +%%PORTDOCS%%%%RUBY_DOCDIR%%/rubygems/History.txt +%%PORTDOCS%%%%RUBY_DOCDIR%%/rubygems/LICENSE.txt +%%PORTDOCS%%%%RUBY_DOCDIR%%/rubygems/README %%PORTDOCS%%%%RUBY_DOCDIR%%/shell.rd %%PORTDOCS%%%%RUBY_DOCDIR%%/shell.rd.ja %%PORTDOCS%%%%RUBY_DOCDIR%%/stringio/README +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/rubygems %%PORTDOCS%%%%RUBY_DOCDIR%%/syslog/syslog.txt %%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/syslog %%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/stringio @@ -712,6 +719,91 @@ include/ruby-1.9/ruby.h %%RUBY_LIBDIR%%/rss/parser.rb %%RUBY_LIBDIR%%/rss/rexmlparser.rb %%RUBY_LIBDIR%%/rss/rss.rb +%%RUBY_LIBDIR%%/rubygems/builder.rb +%%RUBY_LIBDIR%%/rubygems/command.rb +%%RUBY_LIBDIR%%/rubygems/command_manager.rb +%%RUBY_LIBDIR%%/rubygems/commands/build_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/cert_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/check_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/cleanup_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/contents_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/dependency_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/environment_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/fetch_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/generate_index_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/help_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/install_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/list_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/lock_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/mirror_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/outdated_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/owner_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/pristine_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/push_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/query_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/rdoc_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/search_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/server_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/setup_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/sources_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/specification_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/stale_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/uninstall_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/unpack_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/update_command.rb +%%RUBY_LIBDIR%%/rubygems/commands/which_command.rb +%%RUBY_LIBDIR%%/rubygems/config_file.rb +%%RUBY_LIBDIR%%/rubygems/custom_require.rb +%%RUBY_LIBDIR%%/rubygems/defaults.rb +%%RUBY_LIBDIR%%/rubygems/dependency.rb +%%RUBY_LIBDIR%%/rubygems/dependency_installer.rb +%%RUBY_LIBDIR%%/rubygems/dependency_list.rb +%%RUBY_LIBDIR%%/rubygems/doc_manager.rb +%%RUBY_LIBDIR%%/rubygems/errors.rb +%%RUBY_LIBDIR%%/rubygems/exceptions.rb +%%RUBY_LIBDIR%%/rubygems/ext/builder.rb +%%RUBY_LIBDIR%%/rubygems/ext/configure_builder.rb +%%RUBY_LIBDIR%%/rubygems/ext/ext_conf_builder.rb +%%RUBY_LIBDIR%%/rubygems/ext/rake_builder.rb +%%RUBY_LIBDIR%%/rubygems/ext.rb +%%RUBY_LIBDIR%%/rubygems/format.rb +%%RUBY_LIBDIR%%/rubygems/gem_openssl.rb +%%RUBY_LIBDIR%%/rubygems/gem_path_searcher.rb +%%RUBY_LIBDIR%%/rubygems/gem_runner.rb +%%RUBY_LIBDIR%%/rubygems/gemcutter_utilities.rb +%%RUBY_LIBDIR%%/rubygems/indexer.rb +%%RUBY_LIBDIR%%/rubygems/install_update_options.rb +%%RUBY_LIBDIR%%/rubygems/installer.rb +%%RUBY_LIBDIR%%/rubygems/local_remote_options.rb +%%RUBY_LIBDIR%%/rubygems/old_format.rb +%%RUBY_LIBDIR%%/rubygems/package/f_sync_dir.rb +%%RUBY_LIBDIR%%/rubygems/package/tar_header.rb +%%RUBY_LIBDIR%%/rubygems/package/tar_input.rb +%%RUBY_LIBDIR%%/rubygems/package/tar_output.rb +%%RUBY_LIBDIR%%/rubygems/package/tar_reader/entry.rb +%%RUBY_LIBDIR%%/rubygems/package/tar_reader.rb +%%RUBY_LIBDIR%%/rubygems/package/tar_writer.rb +%%RUBY_LIBDIR%%/rubygems/package.rb +%%RUBY_LIBDIR%%/rubygems/package_task.rb +%%RUBY_LIBDIR%%/rubygems/platform.rb +%%RUBY_LIBDIR%%/rubygems/remote_fetcher.rb +%%RUBY_LIBDIR%%/rubygems/require_paths_builder.rb +%%RUBY_LIBDIR%%/rubygems/requirement.rb +%%RUBY_LIBDIR%%/rubygems/security.rb +%%RUBY_LIBDIR%%/rubygems/server.rb +%%RUBY_LIBDIR%%/rubygems/source_index.rb +%%RUBY_LIBDIR%%/rubygems/source_info_cache.rb +%%RUBY_LIBDIR%%/rubygems/source_info_cache_entry.rb +%%RUBY_LIBDIR%%/rubygems/spec_fetcher.rb +%%RUBY_LIBDIR%%/rubygems/specification.rb +%%RUBY_LIBDIR%%/rubygems/test_utilities.rb +%%RUBY_LIBDIR%%/rubygems/text.rb +%%RUBY_LIBDIR%%/rubygems/uninstaller.rb +%%RUBY_LIBDIR%%/rubygems/user_interaction.rb +%%RUBY_LIBDIR%%/rubygems/validator.rb +%%RUBY_LIBDIR%%/rubygems/version.rb +%%RUBY_LIBDIR%%/rubygems/version_option.rb +%%RUBY_LIBDIR%%/rubygems.rb %%RUBY_LIBDIR%%/rss/slash.rb %%RUBY_LIBDIR%%/rss/syndication.rb %%RUBY_LIBDIR%%/rss/taxonomy.rb @@ -763,6 +855,7 @@ include/ruby-1.9/ruby.h %%RUBY_LIBDIR%%/tmpdir.rb %%RUBY_LIBDIR%%/tracer.rb %%RUBY_LIBDIR%%/tsort.rb +%%RUBY_LIBDIR%%/ubygems.rb %%RUBY_LIBDIR%%/un.rb %%RUBY_LIBDIR%%/uri/common.rb %%RUBY_LIBDIR%%/uri/ftp.rb @@ -833,6 +926,11 @@ include/ruby-1.9/ruby.h @dirrm %%RUBY_LIBDIR%%/test @dirrm %%RUBY_LIBDIR%%/syck @dirrm %%RUBY_LIBDIR%%/shell +@dirrm %%RUBY_LIBDIR%%/rubygems/package/tar_reader +@dirrm %%RUBY_LIBDIR%%/rubygems/package +@dirrm %%RUBY_LIBDIR%%/rubygems/ext +@dirrm %%RUBY_LIBDIR%%/rubygems/commands +@dirrm %%RUBY_LIBDIR%%/rubygems @dirrm %%RUBY_LIBDIR%%/rss/maker @dirrm %%RUBY_LIBDIR%%/rss/dublincore @dirrm %%RUBY_LIBDIR%%/rss/content @@ -891,6 +989,9 @@ include/ruby-1.9/ruby.h @dirrm %%RUBY_LIBDIR%%/%%RUBY_ARCH%%/dl @dirrm %%RUBY_LIBDIR%%/%%RUBY_ARCH%%/digest @dirrm %%RUBY_LIBDIR%%/%%RUBY_ARCH%% +%%GEMS_DIR%%/gems/.keep_me +@dirrm %%GEMS_DIR%%/gems +@dirrm %%GEMS_DIR%% @dirrm %%RUBY_LIBDIR%%/ %%RUBY_SITEARCHLIBDIR%%/.keep_me @dirrm %%RUBY_SITEARCHLIBDIR%% @@ -899,5 +1000,6 @@ include/ruby-1.9/ruby.h %%RUBY_VENDORARCHLIBDIR%%/.keep_me @dirrm %%RUBY_VENDORARCHLIBDIR%% @dirrm %%RUBY_VENDORLIBDIR%% +@dirrmtry lib/ruby/gems @dirrmtry lib/ruby/vendor_ruby @dirrmtry lib/ruby |