From nobody Fri Aug 12 07:33:24 2022 X-Original-To: dev-commits-ports-main@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 4M3wQD5dBSz4YshJ; Fri, 12 Aug 2022 07:33:24 +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 4M3wQD584Cz3nZP; Fri, 12 Aug 2022 07:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660289604; 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=BNKApM0MavjqH4+9WkusXG8ynXLMLV4D7wfmAZjOlNU=; b=BuqCiv6CPuWNv5ZZtdht78SyEO8EbutFRm+gKowGChSrcseZsRgevdA+eUCWf/IJg0i3mi QsLbL/QlBDqwMbD5Ui8m3DN2NiCH1rbmjQ45e/VyUJtf8h4ldf/TTzdmT99XZT8XMzaooX SjRWoFeo5O+2WzcqasBscAX3s4sSedHEGZDCk9+OZNaln4bAgKBENEhxdEeakDad0FEFZA Ztz2ZN3/i5UpMzvhKRTCnkhOcsLkYiS0lPvUhoQZhPc2ubxMCcfQf2ahDxPd80aUSYKFzF U0mOt/lx5/Il4ZFu+oj+boTBLtopSp2sCL+2JJ4MZ06fCyqZdhaP3q3ONHYDnA== 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 4M3wQD49wXzNTg; Fri, 12 Aug 2022 07:33:24 +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 27C7XOW2089739; Fri, 12 Aug 2022 07:33:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27C7XO0E089738; Fri, 12 Aug 2022 07:33:24 GMT (envelope-from git) Date: Fri, 12 Aug 2022 07:33:24 GMT Message-Id: <202208120733.27C7XO0E089738@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 5f3c28572766 - main - textproc/groff: allow to build preconv(1) without encoding autodetection List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5f3c28572766ba100ad975c4515b17ea3605d21f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660289604; 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=BNKApM0MavjqH4+9WkusXG8ynXLMLV4D7wfmAZjOlNU=; b=VpsBVrXDrI7PlQM0I2ANVS1eygylSntwPUs0wPDbIsP6Yi9QpW+lexdEY/DX3Tv+QuYdbK tduCwTh3Qs5okCRBir2LjEJUyBugxjFup7VxSg8CVDEYF8EdplQyDVW2bAVg8lpRlrYzPE VHvJvMwTNGn/ViT7DIKQjDw05lBfFz7E70Cnc2ElUUai3tH9rDBdwr6qarwyU+maWRrZEH G/JJ/ROwlaYAmUYKZU5UQAEC7KFXMbmmBqiSkjiBirGWiNr5ABcx1GNDllcKIend86pvob 3P1GpOUTNAKEy4Qd7LQpCmRjRzFVwycgY6m40krd+anMUW/Pm0MPq52RCer0Kg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660289604; a=rsa-sha256; cv=none; b=lk4fGc+maTnBngoc43z7L0fGYssZC+hnbQDRNwk79v4+tFpn+h4pIQvvo1HxbzlQ99Yghx 8SqOzg0jcuQJu5v6mEB/1yJDb2KakxqD4H+u1eLuOsg5PEz82gDRZVwlRJD2SN4XMej/Us lVho1ClW7QV8dFIG/y3eIX8ZxH8PQoORyUcXeYpge4zCTiTCMDuOuC0oeVjeLqpIRsBkQP 4QpEKWi+KFlKvtdWn6wLyFJXkVEMDczDv3X6gTwbXF5esj8FBGbe5LvB7mlT2b0qapzVoH CFKuXACYW5IuZMH8woo5wVs3rLZeIN6ZUWG7zdm7J23XA6p6FudjRXLuuKRutA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=5f3c28572766ba100ad975c4515b17ea3605d21f commit 5f3c28572766ba100ad975c4515b17ea3605d21f Author: Alexey Dokuchaev AuthorDate: 2022-08-12 07:32:10 +0000 Commit: Alexey Dokuchaev CommitDate: 2022-08-12 07:32:10 +0000 textproc/groff: allow to build preconv(1) without encoding autodetection After commit f515b0e657e7, I've received another complaint that, quote, "the number of dependencies of [this] groff thing is quite unreasonable" and entails installing e.g. Ninja and Meson, which in turn pulls Python, etc. This happens because `textproc/uchardet' which can be used by the preconv(1) utility for automatic encoding detection is built with CMake. As this dependency is optional upstream, allow conservative ports users to disable it and thus avoid pulling CMake and all that stuff. --- textproc/groff/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/textproc/groff/Makefile b/textproc/groff/Makefile index 507647b37d69..e427326a72a0 100644 --- a/textproc/groff/Makefile +++ b/textproc/groff/Makefile @@ -11,7 +11,6 @@ LICENSE= GPLv3 BUILD_DEPENDS= psselect:print/psutils \ gsfonts>=0:print/gsfonts -LIB_DEPENDS= libuchardet.so:textproc/uchardet RUN_DEPENDS:= psselect:print/psutils MAKE_JOBS_UNSAFE= yes @@ -46,6 +45,14 @@ DATADIR= ${PREFIX}/share/${PORTNAME}/${PORTVERSION} DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} EXAMPLESDIR= ${DOCSDIR}/examples +OPTIONS_DEFINE= UCHARDET +OPTIONS_DEFAULT= UCHARDET + +UCHARDET_DESC= Automatic encoding detection in preconv(1) +UCHARDET_LIB_DEPENDS= libuchardet.so:textproc/uchardet +UCHARDET_USES= pkgconfig +UCHARDET_CONFIGURE_OFF= --with-uchardet=no + post-install: ${INSTALL_DATA} ${FILESDIR}/mdoc.local ${STAGEDIR}${PREFIX}/share/groff/site-tmac ${REINPLACE_CMD} -i "" -e "s/missing/gs/" ${STAGEDIR}${DATADIR}/font/devhtml/DESC