From owner-dev-commits-ports-all@freebsd.org Fri May 14 13:15:44 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 10CC464814D; Fri, 14 May 2021 13:15:44 +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 4FhTYC74rtz3m03; Fri, 14 May 2021 13:15:43 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 E1CF612A6D; Fri, 14 May 2021 13:15:43 +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 14EDFhVt065825; Fri, 14 May 2021 13:15:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14EDFh3u065824; Fri, 14 May 2021 13:15:43 GMT (envelope-from git) Date: Fri, 14 May 2021 13:15:43 GMT Message-Id: <202105141315.14EDFh3u065824@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Eugene Grosbein Subject: git: 0796c5abcb20 - main - lang/yap: improve documentation handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0796c5abcb20711c7ed7fe828cff6db78e41a82c Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 13:15:44 -0000 The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=0796c5abcb20711c7ed7fe828cff6db78e41a82c commit 0796c5abcb20711c7ed7fe828cff6db78e41a82c Author: Eugene Grosbein AuthorDate: 2021-05-14 13:14:30 +0000 Commit: Eugene Grosbein CommitDate: 2021-05-14 13:14:30 +0000 lang/yap: improve documentation handling Install pre-built yap.html and yap.pdf to avoid heavy TeX dependency and still have documentation handy. Make it possible to rebuild these documentation files with new port option BUILDDOCS. Take maintainership. While here, add LICENSE section: dual ART20 LGPL20. --- lang/yap/Makefile | 34 +++++++++++++++++++++++++++++----- lang/yap/distinfo | 3 +++ lang/yap/pkg-plist | 9 +++++++++ 3 files changed, 41 insertions(+), 5 deletions(-) diff --git a/lang/yap/Makefile b/lang/yap/Makefile index 2da682940329..435bc346616a 100644 --- a/lang/yap/Makefile +++ b/lang/yap/Makefile @@ -2,31 +2,55 @@ PORTNAME= yap PORTVERSION= 6.2.2 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= lang MASTER_SITES= https://mirrors.dotsrc.org/mirrors/exherbo/ \ http://ftp.lyx.org/pub/minix/distfiles/backup/ \ http://tenampak.izt.uam.mx/programas/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= eugen@FreeBSD.org COMMENT= High-performance Prolog compiler +LICENSE= ART20 LGPL20 +LICENSE_COMB= dual +LICENSE_FILE_ART20= ${WRKSRC}/Artistic +LICENSE_FILE_LGPL20= ${WRKSRC}/COPYING + BROKEN_riscv64= fails to build: procedure chr_translate/2 is undefined, called from context prolog:once/1 LIB_DEPENDS= libgmp.so:math/gmp +USES= gmake localbase readline PORTSCOUT= limit:^6\.2\. -USES= gmake localbase readline -USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS BUILDDOCS +BUILDDOCS_DESC= Rebuild documentation (requires TeX) +DOCS_DESC= Install documentation + +BUILDDOCS_USE= TEX=formats:build,dvipsk:build +BUILDDOCS_BUILD_DEPENDS=${LOCALBASE}/bin/texi2html:textproc/texi2html \ + ${LOCALBASE}/bin/texi2pdf:print/texinfo + +DOCS_INSTALL_TARGET= install install_docs + GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-max-performance \ --disable-myddas +DOCSDIR= ${PREFIX}/share/doc/Yap DATADIR= ${PREFIX}/share/Yap +DOCS_PACKAGE= yap-doc-${PORTVERSION} -post-configure: +post-build-DOCS-off: # prevent the instalation of three docs files ${REINPLACE_CMD} -e '559,562d' ${WRKSRC}/Makefile +.include + +.if ${PORT_OPTIONS:MDOCS} && !${PORT_OPTIONS:MBUILDDOCS} +MASTER_SITES+= http://www.grosbein.net/freebsd/distfiles/:docs \ + LOCAL/eugen:docs +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DOCS_PACKAGE}${EXTRACT_SUFX}:docs +.endif + .include diff --git a/lang/yap/distinfo b/lang/yap/distinfo index c7019045ef67..34c45f7b809b 100644 --- a/lang/yap/distinfo +++ b/lang/yap/distinfo @@ -1,2 +1,5 @@ +TIMESTAMP = 1620985788 SHA256 (yap-6.2.2.tar.gz) = f15f8382104443319a5883eafce5f52f4143b526c7f1cd88d19c1f63fc06d750 SIZE (yap-6.2.2.tar.gz) = 5499811 +SHA256 (yap-doc-6.2.2.tar.gz) = 1e3ccaad4f90f06ce91dcb0b26e501f48a55b33ded88e88a0e0db8fa31179ae2 +SIZE (yap-doc-6.2.2.tar.gz) = 1270419 diff --git a/lang/yap/pkg-plist b/lang/yap/pkg-plist index f5ef0a9d8880..e43f78085439 100644 --- a/lang/yap/pkg-plist +++ b/lang/yap/pkg-plist @@ -115,6 +115,15 @@ lib/Yap/pl-minisat.so lib/libYap.a lib/web/css/dirindex.css lib/web/css/openid.css +%%PORTDOCS%%%%DOCSDIR%%/Artistic +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/yap.html +%%PORTDOCS%%%%DOCSDIR%%/yap.pdf +%%PORTDOCS%%%%DOCSDIR%%/changes4.3.html +%%PORTDOCS%%%%DOCSDIR%%/changes-5.0.html +%%PORTDOCS%%%%DOCSDIR%%/changes-5.1.html +%%PORTDOCS%%%%DOCSDIR%%/changes-6.0.html %%DATADIR%%/pl/arith.yap %%DATADIR%%/pl/arrays.yap %%DATADIR%%/pl/attributes.yap