if autoconf and scons had a child, it would've been 'waf'.

'nuf said.

ok aja@ landry@
This commit is contained in:
jasper 2014-09-16 14:25:02 +00:00
parent dcae33ed55
commit fe0dbb371a
7 changed files with 0 additions and 326 deletions

View File

@ -1,40 +0,0 @@
# $OpenBSD: Makefile,v 1.12 2013/08/07 21:31:49 naddy Exp $
COMMENT= Python-based build system
DISTNAME= waf-1.5.18
CATEGORIES= devel
REVISION = 2
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= https://waf.googlecode.com/
MASTER_SITES= ${HOMEPAGE}/files/
# BSD
PERMIT_PACKAGE_CDROM= Yes
MODULES= lang/python
NO_TEST= Yes
SUBST_VARS= MODPY_SITEPKG
pre-configure:
${SUBST_CMD} ${WRKSRC}/waf-light ${WRKSRC}/wscript
touch ${WRKSRC}/waf
do-configure:
cd ${WRKSRC} && PYTHON=${MODPY_BIN} ${MODPY_BIN} ./waf-light configure
do-build:
cd ${WRKSRC} && ${MODPY_BIN} ./waf-light
do-install:
cd ${WRKSRC} && ${MODPY_BIN} ./waf-light install --yes --prefix=${PREFIX}
# clean root owned files and overwrite with our patched version
post-install:
rm -fr ${WRKSRC}/build
${INSTALL_SCRIPT} ${WRKSRC}/waf-light ${PREFIX}/bin/waf
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (waf-1.5.18.tar.bz2) = yxFTSRUl7W6mUjkQFcaQ6w==
RMD160 (waf-1.5.18.tar.bz2) = SSYN3QMDfgqcRM+w0FjSU8PUR5g=
SHA1 (waf-1.5.18.tar.bz2) = Ll5LZlvuIsERz4m2AmrPh9s8rwI=
SHA256 (waf-1.5.18.tar.bz2) = LhQDlNNTcuzKA2fBAS1xnZPsyAZG4n1shAZLcFw14xs=
SIZE (waf-1.5.18.tar.bz2) = 904130

View File

@ -1,30 +0,0 @@
$OpenBSD: patch-waf-light,v 1.3 2010/10/03 12:40:55 jasper Exp $
trick waf-light to make it found installed version
--- waf-light.orig Tue Jul 6 19:50:52 2010
+++ waf-light Sun Oct 3 14:40:31 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!${MODPY_BIN}
# encoding: ISO-8859-1
# Thomas Nagy, 2005-2010
@@ -131,16 +131,7 @@ def find_lib():
if w: return w
err("waf-light requires wafadmin -> export WAFDIR=/folder")
- dir = "/lib/%s-%s-%s/" % (WAF, VERSION, REVISION)
- for i in [INSTALL,'/usr','/usr/local','/opt']:
- w = test(i+dir)
- if w: return w
-
- #waf-local
- s = '.%s-%s-%s'
- if sys.platform == 'win32': s = s[1:]
- dir = join(base, s % (WAF, VERSION, REVISION))
- w = test(dir)
+ w = test("${MODPY_SITEPKG}")
if w: return w
#unpack

View File

@ -1,18 +0,0 @@
$OpenBSD: patch-wscript,v 1.4 2010/10/03 12:40:55 jasper Exp $
--- wscript.orig Tue Jul 6 19:50:52 2010
+++ wscript Sun Oct 3 14:40:31 2010
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!${MODPY_BIN}
# encoding: utf-8
# Thomas Nagy, 2005, 2006, 2007, 2008
@@ -340,7 +340,7 @@ def build(bld):
if val != True and val != "y": sys.exit(1)
create_waf()
- dir = os.path.join('lib', 'waf-%s-%s' % (VERSION, REVISION), 'wafadmin')
+ dir = 'lib/python${MODPY_VERSION}/site-packages/wafadmin'
wafadmin = bld(features = 'py')
wafadmin.find_sources_in_dirs('wafadmin', exts=['.py'])

View File

@ -1,3 +0,0 @@
Waf is a Python-based framework for configuring, compiling and
installing applications. It is a replacement for other tools such as
Autotools, Scons, CMake or Ant.

View File

@ -1,196 +0,0 @@
@comment $OpenBSD: PLIST,v 1.4 2010/09/30 12:13:07 jasper Exp $
bin/waf
lib/python${MODPY_VERSION}/site-packages/wafadmin/
lib/python${MODPY_VERSION}/site-packages/wafadmin/Build.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Build.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Build.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Configure.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Configure.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Configure.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Constants.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Constants.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Constants.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Environment.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Environment.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Environment.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Logs.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Logs.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Logs.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Node.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Node.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Node.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Options.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Options.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Options.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Runner.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Runner.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Runner.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Scripting.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Scripting.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Scripting.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Task.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Task.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Task.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/TaskGen.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/TaskGen.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/TaskGen.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/__init__.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/__init__.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ar.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ar.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ar.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/bison.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/bison.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/bison.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ccroot.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ccroot.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ccroot.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_cc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_cc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_cc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_cxx.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_cxx.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_cxx.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_d.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_d.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/compiler_d.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/config_c.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/config_c.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/config_c.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cs.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cs.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cs.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cxx.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cxx.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/cxx.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/d.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/d.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/d.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/dbus.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/dbus.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/dbus.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/dmd.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/dmd.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/dmd.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/flex.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/flex.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/flex.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gas.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gas.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gas.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gcc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gcc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gcc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gdc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gdc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gdc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/glib2.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/glib2.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/glib2.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gnome.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gnome.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gnome.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gnu_dirs.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gnu_dirs.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gnu_dirs.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gob2.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gob2.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gob2.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gxx.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gxx.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/gxx.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/icc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/icc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/icc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/icpc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/icpc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/icpc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/intltool.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/intltool.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/intltool.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/javaw.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/javaw.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/javaw.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/kde4.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/kde4.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/kde4.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/libtool.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/libtool.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/libtool.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/lua.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/lua.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/lua.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/misc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/misc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/misc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/msvc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/msvc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/msvc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/nasm.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/nasm.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/nasm.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ocaml.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ocaml.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ocaml.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/osx.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/osx.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/osx.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/perl.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/perl.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/perl.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/preproc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/preproc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/preproc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/python.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/python.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/python.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/qt4.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/qt4.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/qt4.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ruby.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ruby.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/ruby.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/suncc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/suncc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/suncc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/suncxx.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/suncxx.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/suncxx.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/tex.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/tex.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/tex.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/unittestw.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/unittestw.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/unittestw.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/vala.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/vala.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/vala.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/winres.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/winres.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/winres.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/xlc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/xlc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/xlc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/xlcxx.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/xlcxx.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Tools/xlcxx.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/Utils.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/Utils.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/Utils.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/__init__.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/__init__.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/ansiterm.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/ansiterm.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/ansiterm.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/pproc.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/pproc.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/pproc.pyo
lib/python${MODPY_VERSION}/site-packages/wafadmin/py3kfixes.py
lib/python${MODPY_VERSION}/site-packages/wafadmin/py3kfixes.pyc
lib/python${MODPY_VERSION}/site-packages/wafadmin/py3kfixes.pyo

View File

@ -1,34 +0,0 @@
# $OpenBSD: waf.port.mk,v 1.5 2013/07/02 08:36:16 espie Exp $
MODULES += lang/python
MODPY_RUNDEP = no
BUILD_DEPENDS += devel/waf
MODWAF_BIN = ${LOCALBASE}/bin/waf
MAKE_ENV += PYTHON=${MODPY_BIN} PYTHON_VERSION=${MODPY_VERSION}
_MODWAF_CMD = cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MODWAF_BIN}
_MODWAF_CONFIGURE_CMD = cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CONFIGURE_ENV} ${MODWAF_BIN}
MODWAF_VERBOSE ?= Yes
.if ${MODWAF_VERBOSE:L} == "yes"
_MODWAF_VERBOSE_FLAG = -v
.endif
.if empty(CONFIGURE_STYLE)
CONFIGURE_STYLE = waf
.endif
MODWAF_configure = ${_MODWAF_CONFIGURE_CMD} configure ${_MODWAF_VERBOSE_FLAG} ${CONFIGURE_ARGS}
MODWAF_BUILD_TARGET = ${_MODWAF_CMD} build ${_MODWAF_VERBOSE_FLAG}
MODWAF_INSTALL_TARGET = ${_MODWAF_CMD} install ${_MODWAF_VERBOSE_FLAG} --destdir=${WRKINST}
.if !target(do-build)
do-build:
@${MODWAF_BUILD_TARGET}
.endif
.if !target(do-install)
do-install:
@${MODWAF_INSTALL_TARGET}
.endif
MODWAF-post-install = rm -Rf ${WRKSRC}/_build_