def METHOD_NAME(self):
    # see https://github.com/Homebrew/homebrew-core/blob/master/Formula/gnuplot.rb
    # and https://github.com/macports/macports-ports/blob/master/math/gnuplot/Portfile
    spec = self.spec
    options = [
        "--disable-dependency-tracking",
        "--disable-silent-rules",
        # Per upstream: "--with-tutorial is horribly out of date."
        "--without-tutorial",
    ]
    options += self.with_or_without("readline", "prefix")
    if "+pbm" in spec:
        options.append("--with-bitmap-terminals")
    else:
        options.append("--without-bitmap-terminals")
    if "+X" in spec:
        # It seems there's an open bug for wxWidgets support
        # See : http://sourceforge.net/p/gnuplot/bugs/1694/
        os.environ["TERMLIBS"] = "-lX11"
        options.append("--with-x")
    else:
        options.append("--without-x")
    if "+qt" in spec:
        options.append("--with-qt=qt5")
        # QT needs C++11 compiler:
        os.environ["CXXFLAGS"] = "{0}".format(self.compiler.cxx11_flag)
        if spec.satisfies("platform=darwin"):
            qt_path = spec["qt"].prefix
            # see
            # http://gnuplot.10905.n7.nabble.com/Building-with-Qt-depends-on-pkg-config-Qt-5-term-doesn-t-work-on-OS-X-td18063.html
            os.environ["QT_LIBS"] = (
                "-F{0}/lib "
                + "-framework QtCore "
                + "-framework QtGui "
                + "-framework QtWidgets "
                + "-framework QtNetwork "
                + "-framework QtSvg "
                + "-framework QtPrintSupport"
            ).format(qt_path)
            os.environ["QT_CFLAGS"] = (
                "-F{0}/lib "
                + "-I{0}/lib/QtCore.framework/Headers "
                + "-I{0}/lib/QtGui.framework/Headers "
                + "-I{0}/lib/QtWidgets.framework/Headers "
                + "-I{0}/lib/QtNetwork.framework/Headers "
                + "-I{0}/lib/QtSvg.framework/Headers"
            ).format(qt_path)
    else:
        options.append("--with-qt=no")
    if "+wx" in spec:
        options.append("--with-wx=%s" % spec["wxwidgets"].prefix)
    else:
        options.append("--disable-wxwidgets")
    if "+gd" in spec:
        options.append("--with-gd=%s" % spec["libgd"].prefix)
    else:
        options.append("--without-gd")
    if "+cairo" in spec:
        options.append("--with-cairo")
    else:
        options.append("--without-cairo")
    if "+libcerf" in spec:
        options.append("--with-libcerf")
    else:
        options.append("--without-libcerf")
    # TODO: Enable pdflib-based pdf terminal
    # '--with-pdf=%s' % spec['pdflib-lite'].prefix  (or pdflib)
    options.append("--without-pdf")
    # TODO: Enable lua-based terminals
    options.append("--without-lua")
    # TODO: --with-latex
    options.append("--without-latex")
    # TODO: --with-aquaterm  depends_on('aquaterm')
    options.append("--without-aquaterm")
    if spec.satisfies("%gcc@11:"):
        os.environ["LDFLAGS"] = "-Wl,--copy-dt-needed-entries"
    return options