LICENSE_FAMILIES = ['AGPL', 'GPL2', 'GPL3', 'LGPL', 'BSD', 'MIT', 'Apache',
                    'PSF', 'Public-Domain', 'Proprietary', 'Other']

FIELDS = {
    'package': {'name', 'version'},
    'source': {'fn', 'url', 'md5', 'sha1', 'sha256',
               'git_url', 'git_tag', 'git_branch',
               'patches', 'hg_url', 'hg_tag', 'path'},
    'build': {'features', 'track_features', 'skip',
              'number', 'entry_points', 'osx_is_app', 'noarch',
              'preserve_egg_dir', 'win_has_prefix', 'no_link',
              'ignore_prefix_files', 'msvc_compiler', 'skip_compile_pyc',
              'detect_binary_files_with_prefix', 'script',
              'always_include_files', 'binary_relocation',
              'binary_has_prefix_files'},
    'requirements': {'build', 'run', 'preferred_env',
                     'preferred_env_executable_paths'},
    'app': {'entry', 'icon', 'summary', 'type', 'cli_opts'},
    'test': {'requires', 'commands', 'files', 'source_files', 'imports'},
    'about': {'license', 'license_url', 'license_family', 'license_file',
              'summary', 'description', 'home', 'doc_url', 'doc_source_url',
              'dev_url'},
    'extra': {'recipe-maintainers'},
}

MAGIC_HEADERS = {
    '\xca\xfe\xba\xbe': 'MachO-universal',
    '\xce\xfa\xed\xfe': 'MachO-i386',
    '\xcf\xfa\xed\xfe': 'MachO-x86_64',
    '\xfe\xed\xfa\xce': 'MachO-ppc',
    '\xfe\xed\xfa\xcf': 'MachO-ppc64',
    'MZ\x90\x00': 'DLL',
    '\x7fELF': 'ELF',
}

DLL_TYPES = {
    0x0: 'UNKNOWN', 0x1d3: 'AM33', 0x8664: 'AMD64', 0x1c0: 'ARM',
    0xebc: 'EBC', 0x14c: 'I386', 0x200: 'IA64', 0x9041: 'M32R',
    0x266: 'MIPS16', 0x366: 'MIPSFPU', 0x466: 'MIPSFPU16', 0x1f0: 'POWERPC',
    0x1f1: 'POWERPCFP', 0x166: 'R4000', 0x1a2: 'SH3', 0x1a3: 'SH3DSP',
    0x1a6: 'SH4', 0x1a8: 'SH5', 0x1c2: 'THUMB', 0x169: 'WCEMIPSV2',
}

@@ -1237,24 +1237,25 @@
 ERS = %7B%0A    
+b
 '%5Cxca%5Cxfe%5Cxb
@@ -1281,24 +1281,25 @@
 ersal',%0A    
+b
 '%5Cxce%5Cxfa%5Cxe
@@ -1324,16 +1324,17 @@
 6',%0A    
+b
 '%5Cxcf%5Cxf
@@ -1361,24 +1361,25 @@
 86_64',%0A    
+b
 '%5Cxfe%5Cxed%5Cxf
@@ -1403,16 +1403,17 @@
 c',%0A    
+b
 '%5Cxfe%5Cxe
@@ -1443,16 +1443,17 @@
 4',%0A    
+b
 'MZ%5Cx90%5C
@@ -1469,16 +1469,17 @@
 L',%0A    
+b
 '%5Cx7fELF

Replace strings in MAGIC_HEADERS with bytes