The invention provides novel pyrimidine derivatives of formula I, to methods of preparing such compounds, to pharmaceutical compositions containing such compounds, and to methods for using such compounds in treatment of diseases including cancer wherein R1, R2, R3, R4, R5, L, A, D, E, Z, and Y are as defined in the specification.