pkgsrc/devel/ruby-rake/INSTALL
taca 8a3ce79dba * Preserve modified time of saveing rake command file.
* Improve handling of gemspec file when the version of bundlerd dosen't
  match with ruby-rake's version.  Should be fix PR pkg/48485.
2014-02-09 05:21:19 +00:00

19 lines
530 B
Text

# $NetBSD: INSTALL,v 1.3 2014/02/09 05:21:19 taca Exp $
GEMSPEC="@PREFIX@/@GEM_HOME@/specifications/@GEM_NAME@.gemspec"
RAKE_HACK="@RAKE_HACK@"
RAKE_BIN="@PREFIX@/bin/rake@RUBY_VER@"
RAKE_BIN_HACK="@PREFIX@/bin/@RAKEBIN@"
case ${STAGE} in
POST-INSTALL)
if [ "${RAKE_HACK}" -a -f ${GEMSPEC} ]; then
${MV} ${GEMSPEC} ${GEMSPEC}.orig
${MV} ${GEMSPEC}${RAKE_HACK} ${GEMSPEC}
fi
if [ "${RAKE_BIN}" != "${RAKE_BIN_HACK}" ]; then
${CP} -p ${RAKE_BIN} ${RAKE_BIN_HACK}.save
${CP} -p ${RAKE_BIN_HACK} ${RAKE_BIN}
fi
;;
esac