You can define a line source within the mesh with the following syntax:
Constant(1.0) * v('+') * dS(subdomain_id=1,
subdomain_data=boundaries)
This should work for a CG function space. The boundary is assumed to be labeled with 1, but this can of course be changed.