A Gauss–Bonnet Cosmology with an Effective Time-Dependent Scalar Potential