Variable metric inexact line-search based methods for nonsmooth optimization