Commit graph

42 commits

Author SHA1 Message Date
taca
80a5e388cc lang/ruby/gem.mk: introduce GEM_KEEPBUILD
Introduce GEM_KEEPBUILD which specifies file should not be removed by
GEM_CLEANBUILD.
2020-05-02 17:03:11 +00:00
rillig
8c6aee8563 lang: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-03 19:03:56 +00:00
taca
66d821fff7 lang/ruby: change for --no-document option
Replace RUBY_BUILD_RDOC and RUBY_BUILD_RI with RUBY_BUILD_DOCUMENT since
rdoc's --no-rdoc and --no-ri options are deprecated almost 8 years ago
and these options are replaced with -no-document option.

No package should be changed.
2019-10-24 14:39:37 +00:00
taca
67c7118dad lang/ruby/gem.mk: improve message
OVERRIDE_GEMSPEC would not only update rubygem's dependency but also
its meta data.
2019-02-09 15:22:46 +00:00
taca
1a1f132c5f Remove use of USE_RAKE. 2017-05-30 16:02:25 +00:00
taca
b579ff3cf7 Extract _RUBYGEMS_MINORS more strictly. 2016-11-19 15:35:03 +00:00
dbj
dde82c09aa update PKG_{FAIL,SKIP}_REASON with += 2016-04-11 04:22:33 +00:00
taca
69529038c9 * Split gem-vars.mk and gem-extract.mk from gem.mk.
* Make GEM_EXTSDIR from output of gem command instead of derived from
  RUBY_ARCH related variables.
2015-03-08 14:41:12 +00:00
taca
3256e3303b Drop RUBYGEMS_REQD. Since all ruby*-base package contains enough version
of rubygems except ruby18-base.
2015-01-25 16:09:16 +00:00
taca
830c875fdf Fix typo, s/GEM_CLEANBUOLD_EXTENSIONS/GEM_CLEANBUILD_EXTENSIONS/. 2015-01-16 09:18:47 +00:00
taca
f61b10d2a8 Pass CONFIGURE_ARGS to _RUBYGEM_OPTIONS with "--build-args". 2014-08-19 15:26:44 +00:00
taca
02428f4819 Fix broken print-PLIST with gem based packages. 2014-05-01 12:45:09 +00:00
taca
6cba5cd6c4 Move definition of GEM_EXTSDIR and PRINT_PLIST_AWK definition block to
appropriate place.  Noted by obache@.
2014-03-15 12:30:26 +00:00
asau
803939e1cc Do not preserve owner of installed files.
This causes multiple failures of Ruby gems in FreeBSD bulk builds.
(Besides, it is unclear whether it is actually needed or wanted.)
2014-03-14 22:31:31 +00:00
taca
bb5463697c Use GEM_EXTSDIR only if it isn't empty. 2014-03-14 13:21:34 +00:00
taca
2f7b096bf4 Add GEM_CLEANBUOLD_EXTENSIONS and GEM_EXTSDIR macro and related rules
to support rubygems bundled with Ruby 2.1.1 (Rubygems 2.2 and later?).
2014-03-13 17:21:01 +00:00
taca
f125724616 Use versions in rubyversion.mk. 2014-02-09 05:15:21 +00:00
taca
eab7274cb8 Revert accidently commit files which not yet ready. 2014-02-02 07:48:35 +00:00
taca
70a91cc08a Utilize PKGNAME_REQD to determine required Ruby version.
Address to PR pkg/48509.
2014-02-02 07:46:16 +00:00
taca
22386cf168 Update rubygems' versions information in comment. 2013-09-11 13:22:15 +00:00
jperkin
1388aa05b2 Fix shell syntax error which has been breaking all gem builds on SunOS for
the past week as per the reports on pkgsrc-bulk.  Not sure why it wasn't
showing up on other platforms, but I am assuming this is the correct fix.
2013-07-14 21:08:17 +00:00
taca
ca13549f43 Fix gem handling.
o Don't assume _DISTDIR end with '/' (by DESTDIR).
o A small clean up to GEM_CLEANBUILD handling.

A few clean up.
2013-07-07 15:16:38 +00:00
rodent
b65af7be2b Remove "Trailing empty lines." and/or "Trailing white-space." 2013-04-08 11:17:08 +00:00
taca
d6a81b31d6 Make GEM_PATH environment settable with MAKE_ENV. 2013-04-02 15:22:39 +00:00
obache
39ffff7d30 Move definition of rubygems sites so that it is usable with packages
not using gem as installation but as archive.
2013-03-14 12:57:42 +00:00
taca
e79e6ac62a gem.mk:
* Add Rubygem 2.0.0 and Ruby 2.0.0 support which wouldn't enabled yet.
* Use Ruby code format for gemspec to build/install instead of YAML.
* Add --backtrace option to "gem install".

files/update-gemspec.rb:
* Allow rename name attribute in gemspec.
* Handle Ruby code format of gemspec.
2013-03-07 16:42:53 +00:00
asau
49d542f06c Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-03 12:55:08 +00:00
taca
4626b0d32b Remove support of ruby19 (Ruby 1.9.2). 2012-09-16 15:23:12 +00:00
taca
296af3f9d8 * Move some rails related part from gem.mk to module.mk.
* Require rdoc 2.5.0 and later with Ruby on Rails version 3.1 and later.
2012-03-20 06:14:30 +00:00
taca
6b6d4285a8 Don't override unconditionally set USE_RAKE. 2012-03-18 02:24:13 +00:00
taca
c553a7fa2c o Now OVERRIDE_GEMSPEC can modify files in gemspec.
o Protect multiple inclusion.

Nothing should affect current packages.
2012-03-02 03:46:09 +00:00
obache
bae81709f6 Move PRINT_PLIST_AWK stuff for Gems before other ruby related PRINT_PLIST_AWK
will be added, or not works as expected.
2012-01-12 08:43:22 +00:00
taca
488f4abcd4 * Add RUBY_RAILS_SUPPORTED. Each Ruby on Rails related pacakge tells
version(s) of acceptable Ruby on Rails.

  It almost replace previous RUBY_RAILS.

* Add some definitions for Ruby on Rails 3.1.
2011-12-13 15:47:06 +00:00
taca
39c6c87b49 * Document rubygem's version contained in each Ruby release.
* Add RUBYGEM_LANG and use it as LANG and LC_CTYPE for proper rdoc
  processing.
* Add Ruby 1.9.3 support.
2011-11-08 15:19:22 +00:00
taca
8aa8b36061 Now OVERRIDE_GEMSPEC can delete dependency in a gemspec file.
And a little documentation clean up.
2011-09-13 03:23:04 +00:00
taca
abadc9c50f Introduce OVERRIDE_GEMSPEC.
If it specified, it modify gemspec's dependency using update-gemspec.rb
Ruby script.

The goal is avoid to use patch for modifying depending version or gem's
name since gemspec files' content differ using rubygem's version.
2011-08-12 14:35:34 +00:00
taca
b3f4c9671b Correct RUBYGEMS_REQD's default in comment. 2011-05-10 13:31:49 +00:00
taca
41ef7225e9 * Introduce RUBYGEMS_REQD as a package-settable variable.
Specify minimum required rubygems version.
* Omit use of _RUBYGEM_UNPACK_OPTION.
2011-03-27 13:05:16 +00:00
taca
8cf4e1d79a Add code fragment to select version of Ruby on Rails.
User settable variable is RUBY_RAILS_DEFAULT: 2 or 3.  (default 2)
2011-03-23 14:22:49 +00:00
obache
5a78bc4634 rubygems.org returns invalid Location header (no scheme and hostname) for
redirect, then speficy the redirected one here instead.
2011-01-13 12:09:04 +00:00
obache
2135d8f971 Exactly set TZ=UTC, or not worked as expected on Solaris (time-zone difference = 0).
Fixes PR#44037.
2010-11-10 10:57:41 +00:00
taca
ba409ed2f3 Move misc/rubygems/rubygem.mk as lang/ruby/gem.mk.
* Many directory macro, such as GEM_DOCDIR and GEM_LIBDIR are changed
  to relative path against PREFIX.
* RUBYGEM_OPTIONS could be set from pkgsrc's Makefile.
* RUBY_BUILD_RDOC and RUBY_BUILD_RI controls build of rdoc/ri.  But,
  currently ruby18-base and ruby19-base according to PKG_OPTION.
* Assume name of commands gem18/rake18 or gem19/rake19.
* GEM_BUILD's default has changed from rake to gemspec.  Most of rubygem
  based pacakges would be installed via gem command.
* USE_RAKE controls the needs of the rake command.
* MASTER_SITES now use http://rubygems.org/downloads/ first.
* Check existence of GEM_DOCDIR before execute find(1).
* Deprecate RUBYGEM_PKGPREFIX which was defined the same as RUBY_PKGPREFIX
  in long term.
* PRIVILEGED_STAGES isn't set "clean" any more.

misc/rubygems/rubygem.mk will be removed later.
2010-09-10 03:12:02 +00:00