Portions from (X project) version x.x. by [somebody] used under a [MIT, BSD or whatever] license
The whole point is that, if possible, you identify which portions of the code you took from whom and based on which license, or at least tell the world that you took some parts from someone based on some license.