Ex-Rangers champion signs deal with Pirates