freebsd-ports/devel/py-gyp-devel/files/patch-pylib_gyp_generator_make.py
Daichi GOTO 83ac3caa91 Update Mozc (Japanese Input Method Editor)
relative ports to 0.12.434.102 and fix build error on
recent 9-CURRENT.
2010-09-04 02:44:13 +00:00

21 lines
849 B
Python

--- pylib/gyp/generator/make.py.org 2010-09-03 18:36:39.151835296 +0900
+++ pylib/gyp/generator/make.py 2010-09-03 18:55:43.973773838 +0900
@@ -177,14 +177,14 @@
r"""
define fixup_dep
# Fixup path as in (1).
-sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)
+gsed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)
# Add extra rules as in (2).
# We remove slashes and replace spaces with new lines;
# remove blank lines;
# delete the first line and append a colon to the remaining lines.
-sed -e 's|\\||' -e 's| |\n|g' $(depfile).raw |\
- grep -v '^$$' |\
- sed -e 1d -e 's|$$|:|' \
+gsed -e 's|\\||' -e 's| |\n|g' $(depfile).raw |\
+ @@LOCALBASE@@/bin/grep -E -v '^$$' |\
+ gsed -e 1d -e 's|$$|:|' \
>> $(depfile)
rm $(depfile).raw
endef