summaryrefslogtreecommitdiff
path: root/recipes-toolchain/mpc.recipe
blob: f47b2e033d0b296af748fa56f45860b08ae05d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

class Recipe(recipe.Recipe):
    name = 'mpc'
    version = '1.1.0'
    url = 'https://ftp.gnu.org/gnu/mpc/mpc-%(version)s.tar.gz'
    tarball_checksum = '6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e'
    stype = SourceType.TARBALL
    licenses = [License.LGPLv2_1Plus]
    configure_options = "--disable-shared --enable-static"
    deps = ['mpfr']

    async def configure(self):
        shell.new_call(['chmod', '+w', 'config.guess'], self.build_dir)
        shell.new_call(['chmod', '+w', 'config.sub'], self.build_dir)
        shell.new_call(['chmod', '+w', 'ltmain.sh'], self.build_dir)
        await super(Recipe, self).configure()