# ruby-webmock/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. The source tarball used by this package was created  based on "git"
upstream sources. The sources were obtained as follows:

      ocgitfetch --run ruby-webmock \
https://github.com/bblimke/webmock.git

#---------------------------------------------------------------------

[buildtimes]

00.00 hours (or 000.20 minutes) - ThinkPad E540 i7 4x2 16GB RAM

#---------------------------------------------------------------------

[settings]
configure = none
license   = See "license*.txt" in installed tree
licfile   = LICENSE
licprefix = $PRODTREE/ruby30
proddir   = none
tmpsize   = 5M
unpack    = relaxed

#---------------------------------------------------------------------

[depends]
midgems:strict
ruby30:strict
ruby-chronic
ruby-excon

#---------------------------------------------------------------------

[build]
PATH=$PRODTREE/ruby30/bin:$PATH

#---------------------------------------------------------------------
# Relax dependencies.

# This stanza  skips  optional dependencies that may not be built yet.
# It also tries to  make  the build  process accept  newer releases of
# dependencies than it may be looking for.

# Finally,  this  stanza  tries to fix FTBFS related to  "rdoc" and/or
# certain other gems being in the Ruby core.

ADDEXTRAS=$ADDEXTRAS
if [ "@$ADDEXTRAS" == "@" ]; then
    sed -e "/add_development_dependency/d" -i *.gemspec
fi
sed -e 's/~>/>=/g' -i *.gemspec

#---------------------------------------------------------------------

cat > Gemfile << END
gemspec
gem 'rake'
END

rm -fr Gemfile.lock
rm -fr Gemfile.lock ; bundle package
gem build *.gemspec || true; gem build *.gemspec
gem-install-local *.gem
gem-cache-index

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = tbd
url_home    = tbd
url_lfs     = tbd
url_tarball = git           # See "technotes" in "cfg" file

#---------------------------------------------------------------------

[history]
180520 Added package. Started with 180520 ("git" date).
180616 Updated to 180616
181014 Updated to 181014
210217 Updated to 3c5593bf4 ("git" hash)
220821 Updated to 833291d4c