# ruby-rexical/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package was created based on "git" upstream sources. The following command was used: ocgitfetch --run ruby-rexical \ http://github.com/tenderlove/rexical.git #--------------------------------------------------------------------- 2. This is a Ruby gem package that doesn't come with "Gemfile" or "gemspec" files. This "cfg" file goes through extra steps so that it can be built using the usual "gem"-build procedure subsequently re- gardless. #--------------------------------------------------------------------- 3. The "1.0.7" used in this file and in "special/*.gemspec" should be replaced with the correct version number if the gem is updated. #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] configure = none license = tbd licprefix = $PRODTREE/ruby30 proddir = none tmpsize = 1M #--------------------------------------------------------------------- [depends] rake rake-compiler ruby30:strict #--------------------------------------------------------------------- [build] # WARNING: The directory specified by GEMTEMPDIR will be deleted. GEMNAME=rexical GEMTEMPDIR=/ram/foobar GITREPODIR=gitrepo #--------------------------------------------------------------------- rm -fr $GEMTEMPDIR mkdir -p $GEMTEMPDIR/$GITREPODIR cp -a `pwd` $GEMTEMPDIR/$GITREPODIR/$GEMNAME cd $GEMTEMPDIR cat > Gemfile << END gem '$GEMNAME', '1.0.7', git: '$GEMTEMPDIR/$GITREPODIR/$GEMNAME' END rm -fr Gemfile.lock ; bundle package bundle gem $GEMNAME cd $GEMNAME echo gemspec > Gemfile cp -p $PKGDIR_SPECIAL/*.gemspec . #--------------------------------------------------------------------- for gem in not-needed do sed -e "/add_dependency.*['\"<]$gem['\">]/d" \ -e "/add_development_dependency.*['\"<]$gem['\">]/d" \ -e "/add_runtime_dependency.*['\"<]$gem['\">]/d" \ -i *.gemspec done #--------------------------------------------------------------------- sed -e 's/~>/>=/g' -i *.gemspec #--------------------------------------------------------------------- echo gemspec > Gemfile 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] 191009 Added package. Started with 2c1cd1850 ("git" hash). 220821 Updated to 2c1cd1850