Homological mirror symmetry for open Riemann surfaces from pair-of-pants decompositions