Compounds of the formula
and pharmaceutically acceptable salts thereof, wherein X1, X2, X3, X4, X5, X5, X7, R1, and Q1 are defined herein, inhibit kinase enzymes and are useful for the treatment and/or prevention of hyperproliferative diseases such as cancer. The compounds are also useful in the treatment of inflammation, allergy, asthma, disease and conditions of the immune system, disease and conditions of the nervous system, cardiovascular diseases, disease and conditions of the eye, dermatological diseases, osteoporosis, diabetes, multiple sclerosis, and infections.