import CraftCore
import info


class subinfo(info.infoclass):
    def registerOptions(self):
        self.parent.package.categoryInfo.compiler = CraftCore.compiler.Compiler.CL

    def setTargets(self):
        for ver in ["2.8.0", "2.9.1"]:
            ver2 = ver.replace(".", "-")
            self.targets[ver] = "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-" + ver2 + "-release.tar.gz"
            self.targetInstSrc[ver] = "pthreads-w32-" + ver2 + "-release"

        self.patchToApply["2.8.0"] = [("pthreads-w32-2-8-0-release-20110729.diff", 1)]
        self.patchToApply["2.9.1"] = [("pthreads-w32-2-9-1-release-20130901.diff", 1)]
        self.targetDigests["2.8.0"] = "da8371cb20e8e238f96a1d0651212f154d84a9ac"
        self.targetDigests["2.9.1"] = "24d40e89c2e66a765733e8c98d6f94500343da86"

        self.description = "a POSIX thread implementation for windows"
        self.defaultTarget = "2.9.1"

    def setDependencies(self):
        self.runtimeDependencies["virtual/base"] = None


from Package.CMakePackageBase import *
from Package.VirtualPackageBase import *


class Package(CMakePackageBase):
    def __init__(self, **args):
        CMakePackageBase.__init__(self)
        self.subinfo.options.configure.args = " -DBUILD_TESTS=OFF"

65e16cbc788a58987358be46d965780fc20b57f0
<mask token>


class subinfo(info.infoclass):
    <mask token>
    <mask token>
    <mask token>


<mask token>


class Package(CMakePackageBase):

    def __init__(self, **args):
        CMakePackageBase.__init__(self)
        self.subinfo.options.configure.args = ' -DBUILD_TESTS=OFF'

<mask token>


class subinfo(info.infoclass):
    <mask token>

    def setTargets(self):
        for ver in ['2.8.0', '2.9.1']:
            ver2 = ver.replace('.', '-')
            self.targets[ver] = (
                'ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-' +
                ver2 + '-release.tar.gz')
            self.targetInstSrc[ver] = 'pthreads-w32-' + ver2 + '-release'
        self.patchToApply['2.8.0'] = [(
            'pthreads-w32-2-8-0-release-20110729.diff', 1)]
        self.patchToApply['2.9.1'] = [(
            'pthreads-w32-2-9-1-release-20130901.diff', 1)]
        self.targetDigests['2.8.0'
            ] = 'da8371cb20e8e238f96a1d0651212f154d84a9ac'
        self.targetDigests['2.9.1'
            ] = '24d40e89c2e66a765733e8c98d6f94500343da86'
        self.description = 'a POSIX thread implementation for windows'
        self.defaultTarget = '2.9.1'
    <mask token>


<mask token>


class Package(CMakePackageBase):

    def __init__(self, **args):
        CMakePackageBase.__init__(self)
        self.subinfo.options.configure.args = ' -DBUILD_TESTS=OFF'

<mask token>


class subinfo(info.infoclass):

    def registerOptions(self):
        self.parent.package.categoryInfo.compiler = (CraftCore.compiler.
            Compiler.CL)

    def setTargets(self):
        for ver in ['2.8.0', '2.9.1']:
            ver2 = ver.replace('.', '-')
            self.targets[ver] = (
                'ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-' +
                ver2 + '-release.tar.gz')
            self.targetInstSrc[ver] = 'pthreads-w32-' + ver2 + '-release'
        self.patchToApply['2.8.0'] = [(
            'pthreads-w32-2-8-0-release-20110729.diff', 1)]
        self.patchToApply['2.9.1'] = [(
            'pthreads-w32-2-9-1-release-20130901.diff', 1)]
        self.targetDigests['2.8.0'
            ] = 'da8371cb20e8e238f96a1d0651212f154d84a9ac'
        self.targetDigests['2.9.1'
            ] = '24d40e89c2e66a765733e8c98d6f94500343da86'
        self.description = 'a POSIX thread implementation for windows'
        self.defaultTarget = '2.9.1'

    def setDependencies(self):
        self.runtimeDependencies['virtual/base'] = None


<mask token>


class Package(CMakePackageBase):

    def __init__(self, **args):
        CMakePackageBase.__init__(self)
        self.subinfo.options.configure.args = ' -DBUILD_TESTS=OFF'

import CraftCore
import info


class subinfo(info.infoclass):

    def registerOptions(self):
        self.parent.package.categoryInfo.compiler = (CraftCore.compiler.
            Compiler.CL)

    def setTargets(self):
        for ver in ['2.8.0', '2.9.1']:
            ver2 = ver.replace('.', '-')
            self.targets[ver] = (
                'ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-' +
                ver2 + '-release.tar.gz')
            self.targetInstSrc[ver] = 'pthreads-w32-' + ver2 + '-release'
        self.patchToApply['2.8.0'] = [(
            'pthreads-w32-2-8-0-release-20110729.diff', 1)]
        self.patchToApply['2.9.1'] = [(
            'pthreads-w32-2-9-1-release-20130901.diff', 1)]
        self.targetDigests['2.8.0'
            ] = 'da8371cb20e8e238f96a1d0651212f154d84a9ac'
        self.targetDigests['2.9.1'
            ] = '24d40e89c2e66a765733e8c98d6f94500343da86'
        self.description = 'a POSIX thread implementation for windows'
        self.defaultTarget = '2.9.1'

    def setDependencies(self):
        self.runtimeDependencies['virtual/base'] = None


from Package.CMakePackageBase import *
from Package.VirtualPackageBase import *


class Package(CMakePackageBase):

    def __init__(self, **args):
        CMakePackageBase.__init__(self)
        self.subinfo.options.configure.args = ' -DBUILD_TESTS=OFF'

import CraftCore
import info


class subinfo(info.infoclass):
    def registerOptions(self):
        self.parent.package.categoryInfo.compiler = CraftCore.compiler.Compiler.CL

    def setTargets(self):
        for ver in ["2.8.0", "2.9.1"]:
            ver2 = ver.replace(".", "-")
            self.targets[ver] = "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-" + ver2 + "-release.tar.gz"
            self.targetInstSrc[ver] = "pthreads-w32-" + ver2 + "-release"

        self.patchToApply["2.8.0"] = [("pthreads-w32-2-8-0-release-20110729.diff", 1)]
        self.patchToApply["2.9.1"] = [("pthreads-w32-2-9-1-release-20130901.diff", 1)]
        self.targetDigests["2.8.0"] = "da8371cb20e8e238f96a1d0651212f154d84a9ac"
        self.targetDigests["2.9.1"] = "24d40e89c2e66a765733e8c98d6f94500343da86"

        self.description = "a POSIX thread implementation for windows"
        self.defaultTarget = "2.9.1"

    def setDependencies(self):
        self.runtimeDependencies["virtual/base"] = None


from Package.CMakePackageBase import *
from Package.VirtualPackageBase import *


class Package(CMakePackageBase):
    def __init__(self, **args):
        CMakePackageBase.__init__(self)
        self.subinfo.options.configure.args = " -DBUILD_TESTS=OFF"
