pkg_setup() {
if ! built_with_use x11-libs/cairo png; then
if has_version x11-libs/cairo && ! built_with_use x11-libs/cairo png; then
einfo "Please re-emerge x11-libs/cairo with the png USE flag set"
die "cairo needs the png flag set"
fi