diff options
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/ninja/Makefile | 4 | ||||
-rw-r--r-- | devel/ninja/distinfo | 4 | ||||
-rw-r--r-- | devel/ninja/files/patch-configure.py | 11 | ||||
-rw-r--r-- | devel/ninja16/Makefile | 38 | ||||
-rw-r--r-- | devel/ninja16/distinfo | 2 | ||||
-rw-r--r-- | devel/ninja16/files/patch-configure.py | 11 | ||||
-rw-r--r-- | devel/ninja16/pkg-descr | 11 |
8 files changed, 77 insertions, 5 deletions
diff --git a/devel/Makefile b/devel/Makefile index 7bb92bb7852c..dbaacc003237 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1485,6 +1485,7 @@ SUBDIR += nini SUBDIR += ninja SUBDIR += ninja-ide + SUBDIR += ninja16 SUBDIR += node-thrift SUBDIR += notify-sharp SUBDIR += noweb diff --git a/devel/ninja/Makefile b/devel/ninja/Makefile index e290c8ca35f0..1c092572c418 100644 --- a/devel/ninja/Makefile +++ b/devel/ninja/Makefile @@ -2,9 +2,9 @@ # $FreeBSD$ PORTNAME= ninja -PORTVERSION= 1.6.0 +PORTVERSION= 1.5.3 DISTVERSIONPREFIX= v -PORTEPOCH= 1 +PORTEPOCH= 2 CATEGORIES= devel MAINTAINER= gblach@FreeBSD.org diff --git a/devel/ninja/distinfo b/devel/ninja/distinfo index d9186971542d..af3048810c06 100644 --- a/devel/ninja/distinfo +++ b/devel/ninja/distinfo @@ -1,2 +1,2 @@ -SHA256 (martine-ninja-v1.6.0_GH0.tar.gz) = b43e88fb068fe4d92a3dfd9eb4d19755dae5c33415db2e9b7b61b4659009cde7 -SIZE (martine-ninja-v1.6.0_GH0.tar.gz) = 174501 +SHA256 (martine-ninja-v1.5.3_GH0.tar.gz) = 7c953b5a7c26cfcd082882e3f3e2cd08fee8848ad228bb47223b18ea18777ec0 +SIZE (martine-ninja-v1.5.3_GH0.tar.gz) = 168829 diff --git a/devel/ninja/files/patch-configure.py b/devel/ninja/files/patch-configure.py index f6ade809ce3b..61f0af7cc6eb 100644 --- a/devel/ninja/files/patch-configure.py +++ b/devel/ninja/files/patch-configure.py @@ -1,5 +1,14 @@ --- configure.py.orig 2014-11-24 18:37:47.000000000 +0100 -+++ configure.py 2015-01-18 21:26:42.000000000 +0100 ++++ configure.py 2015-01-18 21:26:42.000000000 +0100 +@@ -164,7 +164,7 @@ + """Run a subcommand, quietly. Prints the full command on error.""" + try: + subprocess.check_call(cmdline, shell=True) +- except subprocess.CalledProcessError, e: ++ except subprocess.CalledProcessError: + print('when running: ', cmdline) + raise + @@ -297,7 +297,7 @@ cflags += ['/Ox', '/DNDEBUG', '/GL'] ldflags += ['/LTCG', '/OPT:REF', '/OPT:ICF'] diff --git a/devel/ninja16/Makefile b/devel/ninja16/Makefile new file mode 100644 index 000000000000..063e845347cd --- /dev/null +++ b/devel/ninja16/Makefile @@ -0,0 +1,38 @@ +# Created by: Grzegorz Blach <gblach@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= ninja16 +PORTVERSION= 1.6.0 +DISTVERSIONPREFIX= v +PORTEPOCH= 1 +CATEGORIES= devel + +MAINTAINER= gblach@FreeBSD.org +COMMENT= Ninja is a small build system closest in spirit to Make + +LICENSE= APACHE20 + +USE_GITHUB= yes +GH_ACCOUNT= martine +GH_PROJECT= ninja + +CONFLICTS= irc/ninja-[0-9]* +USES= python:build + +PLIST_FILES= bin/ninja16 +PORTDOCS= COPYING HACKING.md README manual.asciidoc + +OPTIONS_DEFINE= DOCS + +do-build: + @(cd ${WRKSRC} && \ + CXX="${CXX}" CFLAGS="${CXXFLAGS}" ${PYTHON_CMD} configure.py --bootstrap) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/ninja ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && \ + ${INSTALL_DATA} COPYING HACKING.md README doc/manual.asciidoc \ + ${STAGEDIR}${DOCSDIR}) + +.include <bsd.port.mk> diff --git a/devel/ninja16/distinfo b/devel/ninja16/distinfo new file mode 100644 index 000000000000..d9186971542d --- /dev/null +++ b/devel/ninja16/distinfo @@ -0,0 +1,2 @@ +SHA256 (martine-ninja-v1.6.0_GH0.tar.gz) = b43e88fb068fe4d92a3dfd9eb4d19755dae5c33415db2e9b7b61b4659009cde7 +SIZE (martine-ninja-v1.6.0_GH0.tar.gz) = 174501 diff --git a/devel/ninja16/files/patch-configure.py b/devel/ninja16/files/patch-configure.py new file mode 100644 index 000000000000..f6ade809ce3b --- /dev/null +++ b/devel/ninja16/files/patch-configure.py @@ -0,0 +1,11 @@ +--- configure.py.orig 2014-11-24 18:37:47.000000000 +0100 ++++ configure.py 2015-01-18 21:26:42.000000000 +0100 +@@ -297,7 +297,7 @@ + cflags += ['/Ox', '/DNDEBUG', '/GL'] + ldflags += ['/LTCG', '/OPT:REF', '/OPT:ICF'] + else: +- cflags = ['-g', '-Wall', '-Wextra', ++ cflags = ['-Wall', '-Wextra', + '-Wno-deprecated', + '-Wno-unused-parameter', + '-fno-rtti', diff --git a/devel/ninja16/pkg-descr b/devel/ninja16/pkg-descr new file mode 100644 index 000000000000..63724b70b8ae --- /dev/null +++ b/devel/ninja16/pkg-descr @@ -0,0 +1,11 @@ +Ninja is yet another build system. It takes as input the interdependencies +of files (typically source code and output executables) and orchestrates +building them, quickly. + +Ninja joins a sea of other build systems. Its distinguishing goal is to be +fast. It is born from my work on the Chromium browser project, which has +over 30,000 source files and whose other build systems (including one built +from custom non-recursive Makefiles) can take ten seconds to start building +after changing one file. Ninja is under a second. + +WWW: https://github.com/martine/ninja |