Omnicare Inc. turned a profit in the second quarter, according to a statement from the nursing home pharmacy giant. Omnicare earned $18.7 million, or 17 cents per share, for the three months ended June 30. That compares with a loss of $1.5 million, or 1 cent per share, a year earlier. Interim Chief Executive John Workman, the company’s president and chief financial officer, said the latest results reflect positive trends its generic-drugs segment and continued growth at its specialty-care business.