From nobody Fri Oct 20 21:04:47 2023 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 4SBxt7728dz4yDYs; Fri, 20 Oct 2023 21:04:47 +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 4SBxt757WXz4Xpy; Fri, 20 Oct 2023 21:04:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697835887; 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=mru2el3sn58TMGUZGL/SWfhfML94xAM0sIkGePVYBO8=; b=IYrAUWaqA19Jvzh7uNuqICOG8c+B6RxyH3bR7B0IX23r6SSvyjsd+PEY2v/Z2GO8NeLShs i959GFrwsxHpmhAS+bZaEzVKbnTf5LySwkLbNRv8KTVKGvOK/Cx0E0lhGtE4PwLnAk6brB rezX6GtnuQcckAmV/YMnxl9bnPkc1+f43lGlLjeIxA3bJGqlVPlvbOvfnYLjEpze0nmdJr 5wJzrvJCLPo3lfw4TVgqV6YJ97NPUpgwe5An8IRKC0GjbJK1eXmCUmhwEa1PbWUo/Edc72 xRxC03hG1iFuuYlDM41mxEHzBcFxmh+jf6lc1c2c2TV7W1PElWEMR7ctc4OTwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697835887; a=rsa-sha256; cv=none; b=j+/UjMev87KODjOG1Th6FtW3uMNOQGrOSBeHrqyeAKS7rB9j2PNHwJZgr5BJkAn3l+A4Q8 96v/NyT/DBwwdm+odJG9wsQKJsq+YGipg9X3dZfhH4ny+JIkhBZT9emRF7mmbnDtvWQIu6 ODQftdjernFmNwqccBBKu/quWW15avkpCx/5AmOWof4Vt1vxuKnYyLlvbSEGmxf5kI8hWT s6yAGCORUn48se3BTi4aEQAfLUqC9k59/HTnno1UAL27W0CgTMHm2HKCtNKAe8pVnjKLsy KSCfHtDjBFvNgxNh0ay8JT3BhR/hIrHEITFL2AHhZWNkrQ9QVySdx6evtT/lsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697835887; 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=mru2el3sn58TMGUZGL/SWfhfML94xAM0sIkGePVYBO8=; b=iCaaSqjcaZ54D3wgCzVNGiVoCIgVabcgIps9eq6wRcQCtRg8xN3HzkfB2jscHU+gMpklm/ XYoxHTx5D1XJ+1os1xfZql8HGfVL4UUjgujfGBnxgRnloE5Yj/7TozJa4rNmclFbJSKjJ7 w+Sr2z263Vlgh1Gpq47ObjV+DOG8dgNrjGATeGswT2iCUGp/Uun0Wg2U4rltSv/h9bLXPl QD8h6DKLA2/6YJYJLMGo13SsfpgVbmDSdyUmLKZPv/SGbXxON8i+78gs940zbhQtwgPIto +fFvw5ibYZMpHQO4fs5Fy+EEqlDM2QWPHiGHkhffnSSLLuLyXP0Jqys/AC2ASg== 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 4SBxt74Dwyzp4p; Fri, 20 Oct 2023 21:04:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39KL4lk6038707; Fri, 20 Oct 2023 21:04:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39KL4l0K038704; Fri, 20 Oct 2023 21:04:47 GMT (envelope-from git) Date: Fri, 20 Oct 2023 21:04:47 GMT Message-Id: <202310202104.39KL4l0K038704@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: bddac0b8ed12 - main - textproc/chpp: Optional USES=makeinfo 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: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bddac0b8ed12cfbfff61091854c7f47c28ec5b30 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=bddac0b8ed12cfbfff61091854c7f47c28ec5b30 commit bddac0b8ed12cfbfff61091854c7f47c28ec5b30 Author: Muhammad Moinur Rahman AuthorDate: 2023-10-20 16:24:39 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-10-20 21:04:38 +0000 textproc/chpp: Optional USES=makeinfo - Utilize USES=makeinfo only when used specially for DOCS only in this case. - Utilize USES=localbase - Pet portclippy --- textproc/chpp/Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/textproc/chpp/Makefile b/textproc/chpp/Makefile index 3213bb83d7ee..e7fddac0355b 100644 --- a/textproc/chpp/Makefile +++ b/textproc/chpp/Makefile @@ -15,17 +15,16 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libgc.so:devel/boehm-gc \ libgnuregex.so.6:devel/libgnuregex -USES= autoreconf gmake makeinfo +USES= autoreconf gmake localbase:ldflags + GNU_CONFIGURE= yes CONFIGURE_ARGS= --libdir=${PREFIX}/share -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - -INFO= chpp - OPTIONS_DEFINE= DOCS EXAMPLES +DOCS_USES= makeinfo +DOCS_INFO= chpp + .include post-extract: @@ -39,11 +38,15 @@ post-patch: s| regex.c regex.h | | ; \ /LDADD/s| gc/gc.a | -lgc -lgnuregex | ; \ s|^YFLAGS|AM_YFLAGS|' ${WRKSRC}/Makefile.am -.for i in arrayops.c builtins.c stringops.c +.for i in arrayops.c stringops.c @${REINPLACE_CMD} -e \ 's|"../regex.h"||' ${WRKSRC}/builtins/${i} .endfor +post-patch-DOCS-off: + @${REINPLACE_CMD} -e \ + '/SUBDIRS/s|doc||' ${WRKSRC}/Makefile.am + post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for filename in AUTHORS NEWS README