pkgsrc/devel/gyp/Makefile.replace-python
he 8e392f54d0 Fix gyp so that all but one of the self-tests pass.
The one test remaining I've not been able to figure out what goes
wrong (it tries overriding the compiler to use, but ends up passing
the source to cc anyway, which wasn't supposed to happen).

Updated DESCR to be a little more verbose.  It now starts with

   GYP is a tool for the Chromium project that generates native
   Visual Studio, Xcode and SCons and/or make build files from a
   platform-independent input format.

Other changes:
 * Substitute /usr/bin/python and a bare "python" in a couple of files
 * Replace python in the interpreter line in all *.py files,
   done in a separate Makefile.replalce-python due to its size
 * Add a tool.mk make fragment for pkgsrc, for users of "gyp" within
   pkgsrc.  It makes a "python" available, via the python package's
   own tool.mk.  The GYP language spec says it's kosher to invoke
   Python from a gyp file by just saying "python".
 * Fix the bash interpreter in the "gyp" script
 * Add config for "netbsd7" as well
 * For some reason "thin" ar archives sometimes fail to produce an archive
   which "ar t" recognizes as valid, so avoid using them on NetBSD
 * Fix up some of the tests; our GNU make says "nothing to be done"
   with different quotes, add NetBSD platform support in some tests,
   and regenerate a couple of output files (should have been done
   upstream).

PKGREVISION bumped.
2014-08-21 14:49:43 +00:00

141 lines
7.2 KiB
Text

# $NetBSD: Makefile.replace-python,v 1.1 2014/08/21 14:49:43 he Exp $
REPLACE_PYTHON+= *.py
REPLACE_PYTHON+= buildbot/buildbot_run.py
REPLACE_PYTHON+= pylib/gyp/*.py
REPLACE_PYTHON+= pylib/gyp/generator/*.py
REPLACE_PYTHON+= samples/samples
REPLACE_PYTHON+= test/actions-bare/gyptest-bare.py
REPLACE_PYTHON+= test/actions-bare/src/bare.py
REPLACE_PYTHON+= test/actions-multiple/gyptest-all.py
REPLACE_PYTHON+= test/actions-multiple/src/*.py
REPLACE_PYTHON+= test/actions-none/gyptest-none.py
REPLACE_PYTHON+= test/actions-none/src/fake_cross.py
REPLACE_PYTHON+= test/actions-subdir/gyptest-action.py
REPLACE_PYTHON+= test/actions-subdir/src/make-file.py
REPLACE_PYTHON+= test/actions-subdir/src/subdir/make-subdir-file.py
REPLACE_PYTHON+= test/actions/*.py
REPLACE_PYTHON+= test/actions/generated-header/action.py
REPLACE_PYTHON+= test/actions/src/confirm-dep-files.py
REPLACE_PYTHON+= test/actions/src/subdir1/*.py
REPLACE_PYTHON+= test/actions/src/subdir2/make-file.py
REPLACE_PYTHON+= test/actions/src/subdir3/generate_main.py
REPLACE_PYTHON+= test/additional-targets/gyptest-additional.py
REPLACE_PYTHON+= test/additional-targets/src/dir1/emit.py
REPLACE_PYTHON+= test/analyzer/gyptest-analyzer.py
REPLACE_PYTHON+= test/android/*.py
REPLACE_PYTHON+= test/assembly/*.py
REPLACE_PYTHON+= test/build-option/gyptest-build.py
REPLACE_PYTHON+= test/builddir/*.py
REPLACE_PYTHON+= test/cflags/gyptest-cflags.py
REPLACE_PYTHON+= test/compilable/gyptest-headers.py
REPLACE_PYTHON+= test/compiler-override/*.py
REPLACE_PYTHON+= test/configurations/basics/gyptest-configurations.py
REPLACE_PYTHON+= test/configurations/inheritance/*.py
REPLACE_PYTHON+= test/configurations/invalid/gyptest-configurations.py
REPLACE_PYTHON+= test/configurations/target_platform/gyptest-target_platform.py
REPLACE_PYTHON+= test/configurations/x64/gyptest-x86.py
REPLACE_PYTHON+= test/copies/*.py
REPLACE_PYTHON+= test/custom-generator/gyptest-custom-generator.py
REPLACE_PYTHON+= test/cxxflags/gyptest-cxxflags.py
REPLACE_PYTHON+= test/defines-escaping/gyptest-defines-escaping.py
REPLACE_PYTHON+= test/defines/*.py
REPLACE_PYTHON+= test/dependencies/*.py
REPLACE_PYTHON+= test/dependency-copy/gyptest-copy.py
REPLACE_PYTHON+= test/errors/gyptest-errors.py
REPLACE_PYTHON+= test/escaping/gyptest-colon.py
REPLACE_PYTHON+= test/exclusion/gyptest-exclusion.py
REPLACE_PYTHON+= test/external-cross-compile/gyptest-cross.py
REPLACE_PYTHON+= test/external-cross-compile/src/fake_cross.py
REPLACE_PYTHON+= test/external-cross-compile/src/tochar.py
REPLACE_PYTHON+= test/generator-output/*.py
REPLACE_PYTHON+= test/generator-output/actions/subdir1/*.py
REPLACE_PYTHON+= test/generator-output/actions/subdir2/make-file.py
REPLACE_PYTHON+= test/generator-output/rules/copy-file.py
REPLACE_PYTHON+= test/gyp-defines/*.py
REPLACE_PYTHON+= test/hard_dependency/*.py
REPLACE_PYTHON+= test/hard_dependency/src/emit.py
REPLACE_PYTHON+= test/hello/*.py
REPLACE_PYTHON+= test/home_dot_gyp/*.py
REPLACE_PYTHON+= test/include_dirs/*.py
REPLACE_PYTHON+= test/intermediate_dir/gyptest-intermediate-dir.py
REPLACE_PYTHON+= test/intermediate_dir/src/script.py
REPLACE_PYTHON+= test/ios/*.py
REPLACE_PYTHON+= test/ios/app-bundle/TestApp/check_no_signature.py
REPLACE_PYTHON+= test/library/*.py
REPLACE_PYTHON+= test/library_dirs/gyptest-library-dirs.py
REPLACE_PYTHON+= test/link-dependency/gyptest-link-dependency.py
REPLACE_PYTHON+= test/link-objects/gyptest-all.py
REPLACE_PYTHON+= test/linux/gyptest-implicit-rpath.py
REPLACE_PYTHON+= test/mac/*.py
REPLACE_PYTHON+= test/make/*.py
REPLACE_PYTHON+= test/make_global_settings/ar/*.py
REPLACE_PYTHON+= test/make_global_settings/basics/*.py
REPLACE_PYTHON+= test/make_global_settings/env-wrapper/*.py
REPLACE_PYTHON+= test/make_global_settings/ld/*.py
REPLACE_PYTHON+= test/make_global_settings/wrapper/*.py
REPLACE_PYTHON+= test/many-actions/*.py
REPLACE_PYTHON+= test/module/gyptest-default.py
REPLACE_PYTHON+= test/msvs/buildevents/*.py
REPLACE_PYTHON+= test/msvs/config_attrs/gyptest-config_attrs.py
REPLACE_PYTHON+= test/msvs/express/gyptest-express.py
REPLACE_PYTHON+= test/msvs/external_builder/gyptest-all.py
REPLACE_PYTHON+= test/msvs/filters/*.py
REPLACE_PYTHON+= test/msvs/list_excluded/gyptest-all.py
REPLACE_PYTHON+= test/msvs/missing_sources/gyptest-missing.py
REPLACE_PYTHON+= test/msvs/multiple_actions_error_handling/gyptest.py
REPLACE_PYTHON+= test/msvs/props/gyptest-props.py
REPLACE_PYTHON+= test/msvs/shared_output/gyptest-shared_output.py
REPLACE_PYTHON+= test/msvs/uldi2010/gyptest-all.py
REPLACE_PYTHON+= test/multiple-targets/*.py
REPLACE_PYTHON+= test/ninja/action_dependencies/gyptest-action-dependencies.py
REPLACE_PYTHON+= test/ninja/action_dependencies/src/emit.py
REPLACE_PYTHON+= test/ninja/chained-dependency/gyptest-chained-dependency.py
REPLACE_PYTHON+= test/ninja/normalize-paths-win/gyptest-normalize-paths.py
REPLACE_PYTHON+= test/ninja/s-needs-no-depfiles/gyptest-s-needs-no-depfiles.py
REPLACE_PYTHON+= test/ninja/solibs_avoid_relinking/*.py
REPLACE_PYTHON+= test/ninja/use-custom-environment-files/*.py
REPLACE_PYTHON+= test/no-cpp/gyptest-no-cpp.py
REPLACE_PYTHON+= test/no-output/gyptest-no-output.py
REPLACE_PYTHON+= test/product/gyptest-product.py
REPLACE_PYTHON+= test/prune_targets/gyptest-prune-targets.py
REPLACE_PYTHON+= test/relative/gyptest-default.py
REPLACE_PYTHON+= test/rename/gyptest-filecase.py
REPLACE_PYTHON+= test/restat/gyptest-restat.py
REPLACE_PYTHON+= test/restat/src/create_intermediate.py
REPLACE_PYTHON+= test/restat/src/touch.py
REPLACE_PYTHON+= test/rules-dirname/gyptest-dirname.py
REPLACE_PYTHON+= test/rules-dirname/src/copy-file.py
REPLACE_PYTHON+= test/rules-dirname/src/subdir/printvars.py
REPLACE_PYTHON+= test/rules-rebuild/gyptest-all.py
REPLACE_PYTHON+= test/rules-rebuild/gyptest-default.py
REPLACE_PYTHON+= test/rules-rebuild/src/make-sources.py
REPLACE_PYTHON+= test/rules-use-built-dependencies/*.py
REPLACE_PYTHON+= test/rules-variables/gyptest-rules-variables.py
REPLACE_PYTHON+= test/rules/*.py
REPLACE_PYTHON+= test/rules/src/*.py
REPLACE_PYTHON+= test/same-gyp-name/*.py
REPLACE_PYTHON+= test/same-rule-output-file-name/gyptest-all.py
REPLACE_PYTHON+= test/same-rule-output-file-name/src/touch.py
REPLACE_PYTHON+= test/same-source-file-name/*.py
REPLACE_PYTHON+= test/same-target-name-different-directory/gyptest-all.py
REPLACE_PYTHON+= test/same-target-name-different-directory/src/touch.py
REPLACE_PYTHON+= test/same-target-name/gyptest-same-target-name.py
REPLACE_PYTHON+= test/sanitize-rule-names/*.py
REPLACE_PYTHON+= test/self-dependency/gyptest-self-dependency.py
REPLACE_PYTHON+= test/sibling/*.py
REPLACE_PYTHON+= test/small/gyptest-small.py
REPLACE_PYTHON+= test/standalone-static-library/*.py
REPLACE_PYTHON+= test/standalone/gyptest-standalone.py
REPLACE_PYTHON+= test/subdirectory/*.py
REPLACE_PYTHON+= test/target/gyptest-target.py
REPLACE_PYTHON+= test/toolsets/gyptest-toolsets.py
REPLACE_PYTHON+= test/toplevel-dir/gyptest-toplevel-dir.py
REPLACE_PYTHON+= test/variables/commands/*.py
REPLACE_PYTHON+= test/variables/filelist/*.py
REPLACE_PYTHON+= test/variables/filelist/src/dummy.py
REPLACE_PYTHON+= test/variables/latelate/gyptest-latelate.py
REPLACE_PYTHON+= test/variables/variable-in-path/gyptest-variable-in-path.py
REPLACE_PYTHON+= test/win/*.py
REPLACE_PYTHON+= test/win/generator-output-different-drive/*.py
REPLACE_PYTHON+= tools/*.py