pkgsrc/devel/ruby-rake/DEINSTALL
taca c69c0370c9 Update ruby-rake to 10.0.4.
No release note is available for 10.0.4, please refer for full changes:
https://github.com/jimweirich/rake/commits/master.

pkgsrc change: fix save/restore of command files.
2013-06-16 15:23:39 +00:00

19 lines
528 B
Text

# $NetBSD: DEINSTALL,v 1.2 2013/06/16 15:23:39 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
DEINSTALL)
if [ "${RAKE_HACK}" -a -f ${GEMSPEC}.orig ]; then
${MV} ${GEMSPEC} ${GEMSPEC}${RAKE_HACK}
${MV} ${GEMSPEC}.orig ${GEMSPEC}
fi
if [ "${RAKE_BIN}" != "${RAKE_BIN_HACK}" ]; then
${MV} ${RAKE_BIN} ${RAKE_BIN_HACK}
${MV} ${RAKE_BIN_HACK}.save ${RAKE_BIN}
fi
;;
esac