Date: Wed, 9 Feb 2011 00:03:40 GMT From: Grzegorz Blach <magik@roorback.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/154603: new port: devel/ninja - a small build system similar to make Message-ID: <201102090003.p1903eOs070618@red.freebsd.org> Resent-Message-ID: <201102090010.p190AB5h042824@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154603 >Category: ports >Synopsis: new port: devel/ninja - a small build system similar to make >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 09 00:10:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Grzegorz Blach >Release: 8.2-RC2 >Organization: >Environment: FreeBSD silver.nine 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #6 r218099: Sun Jan 30 18:56:31 CET 2011 magik@silver.nine:/usr/obj/usr/src/sys/SILVER amd64 >Description: Ninja is a small build system closest in spirit to Make. Details on https://github.com/martine/ninja >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # devel/ninja # devel/ninja/pkg-descr # devel/ninja/Makefile # devel/ninja/distinfo # echo c - devel/ninja mkdir -p devel/ninja > /dev/null 2>&1 echo x - devel/ninja/pkg-descr sed 's/^X//' >devel/ninja/pkg-descr << '510a61658044b6a64cd5b5553e11f0ad' XNinja is yet another build system. It takes as input the interdependencies Xof files (typically source code and output executables) and orchestrates Xbuilding them, quickly. X XNinja joins a sea of other build systems. Its distinguishing goal is to be Xfast. It is born from my work on the Chromium browser project, which has Xover 30,000 source files and whose other build systems (including one built Xfrom custom non-recursive Makefiles) can take ten seconds to start building Xafter changing one file. Ninja is under a second. X XWWW: https://github.com/martine/ninja 510a61658044b6a64cd5b5553e11f0ad echo x - devel/ninja/Makefile sed 's/^X//' >devel/ninja/Makefile << 'a4d06ad0c75a4dd311db1c69e561998c' X# New ports collection makefile for: ninja X# Date created: 08 February 2011 X# Whom: Grzegorz Blach <magik@roorback.net> X# X# $FreeBSD$ X# X XPORTNAME= ninja XPORTVERSION= 20110208 XCATEGORIES= devel XMASTER_SITES= http://files.roorback.net/src/ X XMAINTAINER= magik@roorback.net XCOMMENT= Ninja is a small build system closest in spirit to Make X XLIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo X XLICENSE= ASL XCONFLICTS= irc/ninja-[0-9]* X XPLIST_FILES= bin/ninja X XDOCSDIR= ${PREFIX}/share/doc/ninja XPORTDOCS= COPYING HACKING README manual.asciidoc todo X Xpost-patch: X @${REINPLACE_CMD} \ X -e 's|/bin/bash|/bin/sh|' \ X -e 's|conf_cflags = -O2|conf_cflags = ${CFLAGS} -I${LOCALBASE}/include|' \ X -e 's|conf_ldflags = -s|conf_ldflags = -s -L${LOCALBASE}/lib -lexecinfo|' \ X -e 's|g++|g++ -I${LOCALBASE}/include -L${LOCALBASE}/lib -lexecinfo|' \ X ${WRKSRC}/bootstrap.sh X Xdo-build: X @(cd ${WRKSRC}; ./bootstrap.sh) X Xdo-install: X @${INSTALL} -m 755 ${WRKSRC}/ninja ${PREFIX}/bin X @${MKDIR} ${DOCSDIR} X @(cd ${WRKSRC}; ${INSTALL} -m 644 ${PORTDOCS} ${DOCSDIR}) X X.include <bsd.port.mk> a4d06ad0c75a4dd311db1c69e561998c echo x - devel/ninja/distinfo sed 's/^X//' >devel/ninja/distinfo << '301aa92f68e218809c48ef64b6b4b3ea' XSHA256 (ninja-20110208.tar.gz) = 0b4ce3a9b9755479b7e34e7da6a7dfbf6e49df0a38e0553bda1e2565cbba8b99 XSIZE (ninja-20110208.tar.gz) = 46644 301aa92f68e218809c48ef64b6b4b3ea exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102090003.p1903eOs070618>