That's easy. If one of the partners is a biologial parent, that person gets custody and has all parental rights/responsibilities.
Homosexual couples shouldn't be allowed to adopt. If adoption is 'desired,' then one of the members of that 'couple' should adopt the child. A break up would not affect the rights and responsibilities of the single adoptive parent.