Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2020 13:28:53 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r552335 - in head/lang/chibi-scheme: . files
Message-ID:  <202010141328.09EDSrM6060481@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Wed Oct 14 13:28:53 2020
New Revision: 552335
URL: https://svnweb.freebsd.org/changeset/ports/552335

Log:
  lang/chibi-scheme: take maintainership, install docs, fix parallel build

Added:
  head/lang/chibi-scheme/files/patch-Makefile   (contents, props changed)
Modified:
  head/lang/chibi-scheme/Makefile

Modified: head/lang/chibi-scheme/Makefile
==============================================================================
--- head/lang/chibi-scheme/Makefile	Wed Oct 14 13:27:51 2020	(r552334)
+++ head/lang/chibi-scheme/Makefile	Wed Oct 14 13:28:53 2020	(r552335)
@@ -5,7 +5,7 @@ PORTNAME=	chibi-scheme
 DISTVERSION=	0.9.1
 CATEGORIES=	lang
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	gahr@FreeBSD.org
 COMMENT=	Minimal Scheme implementation for use as a C extension language
 
 LICENSE=	BSD3CLAUSE
@@ -16,14 +16,18 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	ashinn
 USE_LDCONFIG=	yes
 
+OPTIONS_DEFINE=	DOCS
+
 MAKE_ARGS=	IMAGE_FILES="" \
 		LDCONFIG=${TRUE}
-ALL_TARGET=	all libchibi-scheme.a
+ALL_TARGET=	all doc libchibi-scheme.a
 TEST_TARGET=	test
 
 PORTSCOUT=	skipv:stable
 PLIST_SUB=	SOVERSION=${DISTVERSION}
 
+PORTDOCS=	*
+
 post-patch:
 	@${REINPLACE_CMD} -e 's@ -g -g3 -O3 @ @' \
 		-e '/$$(SO)/ s@$$(INSTALL_EXE) -m0755 @$$(BSD_INSTALL_LIB) @' \
@@ -32,5 +36,10 @@ post-patch:
 		-e '/$$(MANDIR)/ s@$$(INSTALL) -m0644 @$$(BSD_INSTALL_MAN) @' \
 		-e 's@$$(INSTALL) -m0644 @$$(BSD_INSTALL_DATA) @' \
 		${WRKSRC}/Makefile
+
+post-install:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/lib
+	${INSTALL_DATA} ${WRKSRC}/doc/chibi.html ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/doc/lib && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/lib
 
 .include <bsd.port.mk>

Added: head/lang/chibi-scheme/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/chibi-scheme/files/patch-Makefile	Wed Oct 14 13:28:53 2020	(r552335)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2020-10-14 09:49:18.314212000 +0000
++++ Makefile	2020-10-14 09:51:06.922727000 +0000
+@@ -11,7 +11,7 @@
+ CHIBI_FFI_DEPENDENCIES ?= $(CHIBI_DEPENDENCIES) tools/chibi-ffi
+ 
+ CHIBI_DOC ?= $(CHIBI) tools/chibi-doc
+-CHIBI_DOC_DEPENDENCIES ?= $(CHIBI_DEPENDENCIES) tools/chibi-doc
++CHIBI_DOC_DEPENDENCIES ?= $(CHIBI_DEPENDENCIES) tools/chibi-doc $(COMPILED_LIBS)
+ 
+ GENSTATIC ?= ./tools/chibi-genstatic
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010141328.09EDSrM6060481>