One central belief of libertarianism seems to be that consenting adults have a "right" to do whatever they want to do. Clearly, God doesn't give anyone a right to do something that is evil.
Whether or not specific immoral acts should be illegal is a matter or prudential judgement. Aquinas' principle in outlawing vice was pretty simple. Is the amount of vice reduced by criminalization greater than the amount of vice caused by criminalization (corruption)?