diff options
-rw-r--r-- | devel/gyp/DESCR | 1 | ||||
-rw-r--r-- | devel/gyp/Makefile | 25 | ||||
-rw-r--r-- | devel/gyp/PLIST | 108 | ||||
-rw-r--r-- | devel/gyp/distinfo | 8 | ||||
-rw-r--r-- | devel/gyp/patches/patch-gyptest.py | 16 | ||||
-rw-r--r-- | devel/gyp/patches/patch-pylib_gyp_common.py | 15 | ||||
-rw-r--r-- | devel/gyp/patches/patch-pylib_gyp_generator_make.py | 13 |
7 files changed, 186 insertions, 0 deletions
diff --git a/devel/gyp/DESCR b/devel/gyp/DESCR new file mode 100644 index 00000000000..9d84e50340f --- /dev/null +++ b/devel/gyp/DESCR @@ -0,0 +1 @@ +GYP can Generate Your Projects. diff --git a/devel/gyp/Makefile b/devel/gyp/Makefile new file mode 100644 index 00000000000..3b997861297 --- /dev/null +++ b/devel/gyp/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2013/01/18 11:32:45 ryoon Exp $ + +SVN_REVISION= 1559 +DIST_VERSION= 0.1 +DISTNAME= gyp-${DIST_VERSION}pre${SVN_REVISION} +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_LOCAL} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://code.google.com/p/gyp/ +COMMENT= GYP can Generate Your Projects +LICENSE= modified-bsd + +EGG_NAME= gyp-${DIST_VERSION} + +# for test +USE_TOOLS+= gmake +USE_LANGUAGES= c c++ +do-test: + ${RUN}cd ${WRKSRC}; LANG=C ${SETENV} ${TEST_ENV} ${PYTHONBIN} gyptest.py -a -f make --passed + +.include "../../lang/python/distutils.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/gyp/PLIST b/devel/gyp/PLIST new file mode 100644 index 00000000000..3b283332b3d --- /dev/null +++ b/devel/gyp/PLIST @@ -0,0 +1,108 @@ +@comment $NetBSD: PLIST,v 1.1 2013/01/18 11:32:45 ryoon Exp $ +bin/gyp +${PYSITELIB}/${EGG_FILE} +${PYSITELIB}/gyp/MSVSNew.py +${PYSITELIB}/gyp/MSVSNew.pyc +${PYSITELIB}/gyp/MSVSNew.pyo +${PYSITELIB}/gyp/MSVSProject.py +${PYSITELIB}/gyp/MSVSProject.pyc +${PYSITELIB}/gyp/MSVSProject.pyo +${PYSITELIB}/gyp/MSVSSettings.py +${PYSITELIB}/gyp/MSVSSettings.pyc +${PYSITELIB}/gyp/MSVSSettings.pyo +${PYSITELIB}/gyp/MSVSSettings_test.py +${PYSITELIB}/gyp/MSVSSettings_test.pyc +${PYSITELIB}/gyp/MSVSSettings_test.pyo +${PYSITELIB}/gyp/MSVSToolFile.py +${PYSITELIB}/gyp/MSVSToolFile.pyc +${PYSITELIB}/gyp/MSVSToolFile.pyo +${PYSITELIB}/gyp/MSVSUserFile.py +${PYSITELIB}/gyp/MSVSUserFile.pyc +${PYSITELIB}/gyp/MSVSUserFile.pyo +${PYSITELIB}/gyp/MSVSVersion.py +${PYSITELIB}/gyp/MSVSVersion.pyc +${PYSITELIB}/gyp/MSVSVersion.pyo +${PYSITELIB}/gyp/SCons.py +${PYSITELIB}/gyp/SCons.pyc +${PYSITELIB}/gyp/SCons.pyo +${PYSITELIB}/gyp/__init__.py +${PYSITELIB}/gyp/__init__.pyc +${PYSITELIB}/gyp/__init__.pyo +${PYSITELIB}/gyp/common.py +${PYSITELIB}/gyp/common.pyc +${PYSITELIB}/gyp/common.pyo +${PYSITELIB}/gyp/common_test.py +${PYSITELIB}/gyp/common_test.pyc +${PYSITELIB}/gyp/common_test.pyo +${PYSITELIB}/gyp/easy_xml.py +${PYSITELIB}/gyp/easy_xml.pyc +${PYSITELIB}/gyp/easy_xml.pyo +${PYSITELIB}/gyp/easy_xml_test.py +${PYSITELIB}/gyp/easy_xml_test.pyc +${PYSITELIB}/gyp/easy_xml_test.pyo +${PYSITELIB}/gyp/generator/__init__.py +${PYSITELIB}/gyp/generator/__init__.pyc +${PYSITELIB}/gyp/generator/__init__.pyo +${PYSITELIB}/gyp/generator/android.py +${PYSITELIB}/gyp/generator/android.pyc +${PYSITELIB}/gyp/generator/android.pyo +${PYSITELIB}/gyp/generator/dump_dependency_json.py +${PYSITELIB}/gyp/generator/dump_dependency_json.pyc +${PYSITELIB}/gyp/generator/dump_dependency_json.pyo +${PYSITELIB}/gyp/generator/eclipse.py +${PYSITELIB}/gyp/generator/eclipse.pyc +${PYSITELIB}/gyp/generator/eclipse.pyo +${PYSITELIB}/gyp/generator/gypd.py +${PYSITELIB}/gyp/generator/gypd.pyc +${PYSITELIB}/gyp/generator/gypd.pyo +${PYSITELIB}/gyp/generator/gypsh.py +${PYSITELIB}/gyp/generator/gypsh.pyc +${PYSITELIB}/gyp/generator/gypsh.pyo +${PYSITELIB}/gyp/generator/make.py +${PYSITELIB}/gyp/generator/make.pyc +${PYSITELIB}/gyp/generator/make.pyo +${PYSITELIB}/gyp/generator/msvs.py +${PYSITELIB}/gyp/generator/msvs.pyc +${PYSITELIB}/gyp/generator/msvs.pyo +${PYSITELIB}/gyp/generator/msvs_test.py +${PYSITELIB}/gyp/generator/msvs_test.pyc +${PYSITELIB}/gyp/generator/msvs_test.pyo +${PYSITELIB}/gyp/generator/ninja.py +${PYSITELIB}/gyp/generator/ninja.pyc +${PYSITELIB}/gyp/generator/ninja.pyo +${PYSITELIB}/gyp/generator/ninja_test.py +${PYSITELIB}/gyp/generator/ninja_test.pyc +${PYSITELIB}/gyp/generator/ninja_test.pyo +${PYSITELIB}/gyp/generator/scons.py +${PYSITELIB}/gyp/generator/scons.pyc +${PYSITELIB}/gyp/generator/scons.pyo +${PYSITELIB}/gyp/generator/xcode.py +${PYSITELIB}/gyp/generator/xcode.pyc +${PYSITELIB}/gyp/generator/xcode.pyo +${PYSITELIB}/gyp/input.py +${PYSITELIB}/gyp/input.pyc +${PYSITELIB}/gyp/input.pyo +${PYSITELIB}/gyp/mac_tool.py +${PYSITELIB}/gyp/mac_tool.pyc +${PYSITELIB}/gyp/mac_tool.pyo +${PYSITELIB}/gyp/msvs_emulation.py +${PYSITELIB}/gyp/msvs_emulation.pyc +${PYSITELIB}/gyp/msvs_emulation.pyo +${PYSITELIB}/gyp/ninja_syntax.py +${PYSITELIB}/gyp/ninja_syntax.pyc +${PYSITELIB}/gyp/ninja_syntax.pyo +${PYSITELIB}/gyp/sun_tool.py +${PYSITELIB}/gyp/sun_tool.pyc +${PYSITELIB}/gyp/sun_tool.pyo +${PYSITELIB}/gyp/win_tool.py +${PYSITELIB}/gyp/win_tool.pyc +${PYSITELIB}/gyp/win_tool.pyo +${PYSITELIB}/gyp/xcode_emulation.py +${PYSITELIB}/gyp/xcode_emulation.pyc +${PYSITELIB}/gyp/xcode_emulation.pyo +${PYSITELIB}/gyp/xcodeproj_file.py +${PYSITELIB}/gyp/xcodeproj_file.pyc +${PYSITELIB}/gyp/xcodeproj_file.pyo +${PYSITELIB}/gyp/xml_fix.py +${PYSITELIB}/gyp/xml_fix.pyc +${PYSITELIB}/gyp/xml_fix.pyo diff --git a/devel/gyp/distinfo b/devel/gyp/distinfo new file mode 100644 index 00000000000..88b95b54e02 --- /dev/null +++ b/devel/gyp/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2013/01/18 11:32:45 ryoon Exp $ + +SHA1 (gyp-0.1pre1559.tar.bz2) = 413cd45d28803140d98c992bb5303b5c376e5389 +RMD160 (gyp-0.1pre1559.tar.bz2) = 3b22bbe2bccda87a7dcda4f5df549db0d6dc4b15 +Size (gyp-0.1pre1559.tar.bz2) = 360489 bytes +SHA1 (patch-gyptest.py) = 96f80de69f5ee492c219340bec45e05c86a2a251 +SHA1 (patch-pylib_gyp_common.py) = 99bd2e1efdafad61c6c9ac685e09363b86e59ecc +SHA1 (patch-pylib_gyp_generator_make.py) = d201298031d7d3d51414a3c1023f0c0efb6c6df7 diff --git a/devel/gyp/patches/patch-gyptest.py b/devel/gyp/patches/patch-gyptest.py new file mode 100644 index 00000000000..db69b73cc5e --- /dev/null +++ b/devel/gyp/patches/patch-gyptest.py @@ -0,0 +1,16 @@ +$NetBSD: patch-gyptest.py,v 1.1 2013/01/18 11:32:45 ryoon Exp $ + +* Add NetBSD 5 and 6 target + +--- gyptest.py.orig 2012-12-15 10:47:22.000000000 +0000 ++++ gyptest.py +@@ -212,6 +212,9 @@ def main(argv=None): + format_list = { + 'freebsd7': ['make'], + 'freebsd8': ['make'], ++ 'freebsd9': ['make'], ++ 'netbsd5': ['make'], ++ 'netbsd6': ['make'], + 'cygwin': ['msvs'], + 'win32': ['msvs', 'ninja'], + 'linux2': ['make', 'ninja'], diff --git a/devel/gyp/patches/patch-pylib_gyp_common.py b/devel/gyp/patches/patch-pylib_gyp_common.py new file mode 100644 index 00000000000..00df0a70f59 --- /dev/null +++ b/devel/gyp/patches/patch-pylib_gyp_common.py @@ -0,0 +1,15 @@ +$NetBSD: patch-pylib_gyp_common.py,v 1.1 2013/01/18 11:32:45 ryoon Exp $ + +* Add NetBSD support + +--- pylib/gyp/common.py.orig 2012-12-15 10:46:11.000000000 +0000 ++++ pylib/gyp/common.py +@@ -380,6 +380,8 @@ def GetFlavor(params): + return 'freebsd' + if sys.platform.startswith('aix'): + return 'aix' ++ if sys.platform.startswith('netbsd'): ++ return 'netbsd' + + return 'linux' + diff --git a/devel/gyp/patches/patch-pylib_gyp_generator_make.py b/devel/gyp/patches/patch-pylib_gyp_generator_make.py new file mode 100644 index 00000000000..2f16539f1d7 --- /dev/null +++ b/devel/gyp/patches/patch-pylib_gyp_generator_make.py @@ -0,0 +1,13 @@ +$NetBSD: patch-pylib_gyp_generator_make.py,v 1.1 2013/01/18 11:32:45 ryoon Exp $ + +--- pylib/gyp/generator/make.py.orig 2012-12-15 10:46:06.000000000 +0000 ++++ pylib/gyp/generator/make.py +@@ -328,7 +328,7 @@ sed -e "s|^$(notdir $@)|$@|" $(depfile). + # 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 'y| |\n|' $(depfile).raw |\ ++env NL=`printf "\n"` sed -e 's|\\||' -e 's| |${NL}|g' $(depfile).raw |\ + grep -v '^$$' |\ + sed -e 1d -e 's|$$|:|' \ + >> $(depfile) |