# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python import shutil class Recipe(recipe.Recipe): name = 'bison' version = '3.0.4' licenses = [License.GPLv2Plus] stype = SourceType.TARBALL url = 'gnu://' tarball_checksum = 'a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1' patches = ['bison/0001-Fix-build-invalid-instruction-on-macOS-10.3.patch'] files_bins = ['bison'] def extract(self): if os.path.exists(self.build_dir): shutil.rmtree(self.build_dir) super(recipe.Recipe, self).extract()