importing devel/gyp

- allows generating of SCons/Makefiles from platform-independent input

OK jeremy@, sthen@
This commit is contained in:
abieber 2012-10-13 14:53:11 +00:00
parent ad86f1ed77
commit 93a4d727a6
6 changed files with 124 additions and 0 deletions

28
devel/gyp/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/10/13 14:53:11 abieber Exp $
COMMENT= generate SCons/Makefiles from platform-independent input
DISTNAME= gyp-r1282
PKGNAME= ${DISTNAME:S/r/0./g}
CATEGORIES= devel
HOMEPAGE= http://code.google.com/p/gyp/
MAINTAINER= Aaron Bieber <abieber@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://deftly.net/
MODULES= lang/python
NO_CCACHE= Yes
NO_REGRESS= Yes
.include <bsd.port.mk>

2
devel/gyp/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (gyp-r1282.tar.gz) = nxP8MMFLiDBXGS+45iNhZIyEavA4JzHo1yx/COI7Aok=
SIZE (gyp-r1282.tar.gz) = 900115

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-gyptest_py,v 1.1.1.1 2012/10/13 14:53:11 abieber Exp $
--- gyptest.py.orig Tue Oct 9 08:27:29 2012
+++ gyptest.py Tue Oct 9 08:27:39 2012
@@ -208,6 +208,7 @@ def main(argv=None):
format_list = {
'freebsd7': ['make'],
'freebsd8': ['make'],
+ 'openbsd5': ['make'],
'cygwin': ['msvs'],
'win32': ['msvs', 'ninja'],
'linux2': ['make', 'ninja'],

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-pylib_gyp_common_py,v 1.1.1.1 2012/10/13 14:53:11 abieber Exp $
--- pylib/gyp/common.py.orig Tue Oct 9 08:28:21 2012
+++ pylib/gyp/common.py Tue Oct 9 08:28:34 2012
@@ -355,6 +355,7 @@ def GetFlavor(params):
'sunos5': 'solaris',
'freebsd7': 'freebsd',
'freebsd8': 'freebsd',
+ 'openbsd5': 'openbsd',
}
flavor = flavors.get(sys.platform, 'linux')
return params.get('flavor', flavor)

1
devel/gyp/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
gyp is a build system used by v8 and node.js for generating projects.

71
devel/gyp/pkg/PLIST Normal file
View File

@ -0,0 +1,71 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/10/13 14:53:11 abieber Exp $
bin/gyp
lib/python${MODPY_VERSION}/site-packages/gyp/
lib/python${MODPY_VERSION}/site-packages/gyp-0.1-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSNew.py
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSNew.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSProject.py
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSProject.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSSettings.py
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSSettings.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSSettings_test.py
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSSettings_test.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSToolFile.py
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSToolFile.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSUserFile.py
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSUserFile.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSVersion.py
lib/python${MODPY_VERSION}/site-packages/gyp/MSVSVersion.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/SCons.py
lib/python${MODPY_VERSION}/site-packages/gyp/SCons.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/__init__.py
lib/python${MODPY_VERSION}/site-packages/gyp/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/common.py
lib/python${MODPY_VERSION}/site-packages/gyp/common.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/easy_xml.py
lib/python${MODPY_VERSION}/site-packages/gyp/easy_xml.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/easy_xml_test.py
lib/python${MODPY_VERSION}/site-packages/gyp/easy_xml_test.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/
lib/python${MODPY_VERSION}/site-packages/gyp/generator/__init__.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/dump_dependency_json.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/dump_dependency_json.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/gypd.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/gypd.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/gypsh.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/gypsh.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/make.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/make.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/msvs.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/msvs.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/msvs_test.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/msvs_test.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/ninja.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/ninja.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/ninja_test.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/ninja_test.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/scons.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/scons.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/generator/xcode.py
lib/python${MODPY_VERSION}/site-packages/gyp/generator/xcode.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/input.py
lib/python${MODPY_VERSION}/site-packages/gyp/input.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/mac_tool.py
lib/python${MODPY_VERSION}/site-packages/gyp/mac_tool.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/msvs_emulation.py
lib/python${MODPY_VERSION}/site-packages/gyp/msvs_emulation.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/ninja_syntax.py
lib/python${MODPY_VERSION}/site-packages/gyp/ninja_syntax.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/sun_tool.py
lib/python${MODPY_VERSION}/site-packages/gyp/sun_tool.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/system_test.py
lib/python${MODPY_VERSION}/site-packages/gyp/system_test.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/win_tool.py
lib/python${MODPY_VERSION}/site-packages/gyp/win_tool.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/xcode_emulation.py
lib/python${MODPY_VERSION}/site-packages/gyp/xcode_emulation.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/xcodeproj_file.py
lib/python${MODPY_VERSION}/site-packages/gyp/xcodeproj_file.pyc
lib/python${MODPY_VERSION}/site-packages/gyp/xml_fix.py
lib/python${MODPY_VERSION}/site-packages/gyp/xml_fix.pyc