def METHOD_NAME(self):
    spec = self.spec
    prefix = self.prefix
    # Copy the config.h file, as some packages might require it
    source_directory = self.stage.source_path
    config_h = join_path(source_directory, "ADOL-C", "src", "config.h")
    install(config_h, join_path(prefix.include, "adolc"))
    # Install documentation to {prefix}/share
    if "+doc" in spec:
        install_tree(join_path("ADOL-C", "doc"), join_path(prefix.share, "doc"))
    # Install examples to {prefix}/share
    if "+examples" in spec:
        install_tree(join_path("ADOL-C", "examples"), join_path(prefix.share, "examples"))
        # Run some examples that don't require user input
        # TODO: Check that bundled examples produce the correct results
        with working_dir(join_path(source_directory, "ADOL-C", "examples")):
            Executable("./tapeless_scalar")()
            Executable("./tapeless_vector")()
        with working_dir(
            join_path(source_directory, "ADOL-C", "examples", "additional_examples")
        ):
            Executable("./checkpointing/checkpointing")()
        if "+openmp" in spec:
            with working_dir(
                join_path(source_directory, "ADOL-C", "examples", "additional_examples")
            ):
                Executable("./checkpointing/checkpointing")()