From nobody Tue May 17 14:08:00 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F08141ADE7B4; Tue, 17 May 2022 14:08:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L2dHh3K18z4bPj; Tue, 17 May 2022 14:08:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652796480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fHTJuVfy162gGjQHTTco/FtXQAR73OmH4Ck4nW3eLHw=; b=Dx+F405EQm2J/P6PcT8rS0sD4/8V0hh/1oHPIsy61av8eo5ayehPldeAjAuUD8b5Xq6wDe kPdcbwwrlvrWW/ngY4bJFvQNFSqPQqlixbVVnVSKXJjcSVj5G8oYKhuyuHN3vXwq7kTAyn DE1wkY1HiRodomhkdJw3hLaMXIXs4eDUtws/z8bEL4+/MEBLcJKlmsmN8izXXdbRteYnp+ 1usWnQDzKTO1EptGYSHbVgvWNblsRY2cDdLj90dQ2iYk4fuy3w+6zBvprLwBbZ8Mxp1gJG 1rvJH4E63mASfpQpxvj5lzeBe1wbtkK/8Y8tVnOsK57DD9WyRfFAgvqG3lQpLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 484011641F; Tue, 17 May 2022 14:08:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24HE80la042865; Tue, 17 May 2022 14:08:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24HE80OF042864; Tue, 17 May 2022 14:08:00 GMT (envelope-from git) Date: Tue, 17 May 2022 14:08:00 GMT Message-Id: <202205171408.24HE80OF042864@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dave Cottlehuber Subject: git: e3bb4afb6c91 - main - lang/zig-devel: use pre-built docs for faster builds List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dch X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e3bb4afb6c91d2a7fb981f14f4880f635665a8bd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652796480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fHTJuVfy162gGjQHTTco/FtXQAR73OmH4Ck4nW3eLHw=; b=qkzy+C4hWOXmfFJ8jmAQyZU6+JxpeOXr4MKzcmtPi8XJ+R4wDzhPsZm/4k+Iyg4JecSZKv WIoaPTOtGu/WRqCSkkAYFToftzr+yJs1J9D+5Gr3gSuxA3Fgsyby+nZDK+Eq1bGrAxHsPX QFCu+ZPXxC+eaf9p75B6ZyrvWpgfG42e505Pes9jnr/LJr8C7O1074R5sC40v6+GA0srrz ///y+COYIjjPBdARsSqluIxCwhv/GA4EAgRrxWRqNayH8obZRwzBZSEWcQrfBq2pgGT3Ew k5VXeAG4f9bZeJpDps/9+CuHOfgJR5Nfr6PtAC9LH/NlHiTTg+S5LFf9Ztra3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652796480; a=rsa-sha256; cv=none; b=gox/NLSihjQ2+KPWu78EL7pAEOHplmZo1ZiXkMtFf2X+Af+7TuPwvnzJeMoyGb4GUBukI+ WTelvVJ3JOzPyqHg72VlvJR+MGXL+5uLzBYONkq3QWJ+aZ0vQLwfHkIsVjC6CKwdCgCm1I D0M5LQzsHvdG3m9nlVqggv4v3VDBCckwDTYuIaA1yQN+6lS0ZgLj20dhJwfaBuJMMYEHF6 9UCuKVKwtB3wvm5bM7HubipkMlubTiZJozzLzlD0QEU8Rbzn9Lr1tKVwP6Q77+t3ZpnH8X OUvz2pRdGUQdxItYeAg1rBxjPQTrDDmGK6HFl4yQGe10C43UM5O6mR27qIe3Tw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=e3bb4afb6c91d2a7fb981f14f4880f635665a8bd commit e3bb4afb6c91d2a7fb981f14f4880f635665a8bd Author: Dave Cottlehuber AuthorDate: 2022-05-17 14:07:51 +0000 Commit: Dave Cottlehuber CommitDate: 2022-05-17 14:07:51 +0000 lang/zig-devel: use pre-built docs for faster builds Switch to pre-built docs, as this more than halves the build time and also enables BUILD_AS_NON_ROOT with poudriere. Sponsored by: SkunkWerks, GmbH --- lang/zig-devel/Makefile | 33 ++++++++++----------------------- lang/zig-devel/distinfo | 4 +++- 2 files changed, 13 insertions(+), 24 deletions(-) diff --git a/lang/zig-devel/Makefile b/lang/zig-devel/Makefile index 8c0d21160c6a..8a1e810907e1 100644 --- a/lang/zig-devel/Makefile +++ b/lang/zig-devel/Makefile @@ -4,6 +4,8 @@ CATEGORIES= lang MASTER_SITES= https://ziglang.org/download/${DISTVERSION}/ \ https://ziglang.org/builds/ PKGNAMESUFFIX= -devel +# fetch prebuilt platform-independent docs +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} zig-freebsd-x86_64-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= dch@FreeBSD.org COMMENT= Language designed for robustness, optimality, and maintainability @@ -20,10 +22,10 @@ CONFLICTS= zig USES= cmake compiler:c++11-lang localbase:ldflags tar:xz -OPTIONS_DEFINE= STATIC -OPTIONS_DEFAULT= STATIC +OPTIONS_DEFINE= STATIC DOCS +OPTIONS_DEFAULT= STATIC DOCS -STATIC_DESC= sets ZIG_STATIC to avoid 800MiB LLVM dependencies +STATIC_DESC= sets ZIG_STATIC to avoid 800MiB LLVM runtime dependency STATIC_RUN_DEPENDS_OFF= llvm${_LLVM_VER}>=0:devel/llvm${_LLVM_VER} STATIC_CMAKE_BOOL= CMAKE_SKIP_INSTALL_RPATH ZIG_STATIC @@ -35,30 +37,15 @@ _ZIG_BIN= ${STAGEDIR}${PREFIX}/bin/zig post-configure-STATIC-on: @${REINPLACE_CMD} 's/-Wl,-Bdynamic//' ${BUILD_WRKSRC}/build.ninja -post-build: -# Produce the experimental std lib documentation. - ${MKDIR} ${WRKDIR}/cache ${WRKDIR}/doc - ${WRKDIR}/.build/zig test ${WRKSRC}/lib/std/std.zig \ - --cache-dir ${WRKDIR}/cache \ - --global-cache-dir ${WRKDIR}/cache \ - --zig-lib-dir ${WRKSRC}/lib \ - -femit-docs=${WRKDIR}/doc \ - -fno-emit-bin - ${RM} ${WRKSRC}/lib/zig/std/zig-cache - -post-install: +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR}/std -# langref cannot be generated until after install target has run - (cd ${WRKSRC} && ${_ZIG_BIN} run \ - ./doc/docgen.zig -- ${_ZIG_BIN} \ - ./doc/langref.html.in ${STAGEDIR}${DOCSDIR}/langref.html \ - && ${RM} ${STAGEDIR}/lib/zig/std/zig-cache) - ${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||' ${STAGEDIR}${DOCSDIR}/langref.html -.for f in data.js main.js index.html - ${INSTALL_MAN} ${WRKDIR}/doc/${f} ${STAGEDIR}${DOCSDIR}/std/ +.for f in langref.html std/data.js std/main.js std/index.html + ${INSTALL_MAN} ${WRKDIR}/zig-freebsd-x86_64-${DISTVERSION}/doc/${f} \ + ${STAGEDIR}${DOCSDIR}/${f} .endfor do-test: + mkdir ${WRKDIR}/cache (cd ${WRKSRC} && ${_ZIG_BIN} build test-behavior \ --cache-dir ${WRKDIR}/cache \ --global-cache-dir ${WRKDIR}/cache \ diff --git a/lang/zig-devel/distinfo b/lang/zig-devel/distinfo index 891c6c5adf9e..abcc5f3df262 100644 --- a/lang/zig-devel/distinfo +++ b/lang/zig-devel/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1645628395 +TIMESTAMP = 1652525714 SHA256 (zig-0.9.1.tar.xz) = 38cf4e84481f5facc766ba72783e7462e08d6d29a5d47e3b75c8ee3142485210 SIZE (zig-0.9.1.tar.xz) = 13940828 +SHA256 (zig-freebsd-x86_64-0.9.1.tar.xz) = 4e06009bd3ede34b72757eec1b5b291b30aa0d5046dadd16ecb6b34a02411254 +SIZE (zig-freebsd-x86_64-0.9.1.tar.xz) = 39028848