Line leaks are fairly simple repairs, and so are master cylinders as they replace quite easily. Wheel calipers are only more difficult because the wheel must come off to do the repair.
For flex line leaks i always replace the line. They are cheap enough to replace.
The metal tube ends can easily have a new fitting flared on with a tool available at most auto stores.
Good luck!