def METHOD_NAME(self):
    args = []
    if self.spec.satisfies("@6:") and self.pkg.run_tests:
        args.append("--with-external-gtest")
    if self.spec.satisfies("@7:"):
        if "+tiff" in self.spec:
            args.append("--enable-tiff")
        else:
            args.append("--disable-tiff")
        if "+curl" in self.spec:
            args.append("--with-curl=" + self.spec["curl"].prefix.bin.join("curl-config"))
        else:
            args.append("--without-curl")
    return args