"Truly, friend; and methinks it must gladden your heart, after your troubles and sojourn in the wilderness," said the townsman, "to find yourself at length in a land where iniquity is searched out and punished in the sight of rulers and people, as here in our godly New England. Yonder woman, Sir, you must know, was the wife of a certain learned man, English by birth, but who had long ago dwelt in Amsterdam, whence, some good time agone, he was minded to cross over and cast in his lot with us of the Massachusetts.
(Nathaniel Hawthorne, The Scarlet Letter)
The highlighted part doesn’t make any sense to me. Would you parse the sentence?