git: 429c4361dff0 - main - devel/ocaml-cppo: Adopt/Update to 1.6.9

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Mon, 20 Jun 2022 15:13:06 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=429c4361dff0e986aeefd1fc90d4dc1cc9007aae

commit 429c4361dff0e986aeefd1fc90d4dc1cc9007aae
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-06-20 14:56:11 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-06-20 15:09:18 +0000

    devel/ocaml-cppo: Adopt/Update to 1.6.9
    
     - take maintainership
     - switch to DISTVERSION
     - add license
     - update COMMENT
     - update WWW URL to github.com (oldest url: '404: File not found')
    
    ChangeLog: https://github.com/ocaml-community/cppo/releases
---
 devel/ocaml-cppo/Makefile  | 13 ++++++++++---
 devel/ocaml-cppo/distinfo  |  6 +++---
 devel/ocaml-cppo/pkg-descr | 18 ++++++++----------
 3 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/devel/ocaml-cppo/Makefile b/devel/ocaml-cppo/Makefile
index e97c49aa4d04..d85caca7fb25 100644
--- a/devel/ocaml-cppo/Makefile
+++ b/devel/ocaml-cppo/Makefile
@@ -1,13 +1,16 @@
 # Created by: Michael Grunewald
 
 PORTNAME=	cppo
-PORTVERSION=	1.6.7
 DISTVERSIONPREFIX=	v
+DISTVERSION=	1.6.9
 CATEGORIES=	devel
 PKGNAMEPREFIX=	ocaml-
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Simple preprocessor for OCaml
+MAINTAINER=	eduardo@FreeBSD.org
+COMMENT=	C-style preprocessor for OCaml
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
 BUILD_DEPENDS=	dune:devel/ocaml-dune \
 		ocamlbuild:devel/ocaml-ocamlbuild
@@ -18,4 +21,8 @@ USE_OCAML=	yes
 
 OPTIONS_DEFINE=	DOCS
 
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cppo
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib:${PREFIX}/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cmxs
+
 .include <bsd.port.mk>
diff --git a/devel/ocaml-cppo/distinfo b/devel/ocaml-cppo/distinfo
index e37e9ba6920c..336be212c2b5 100644
--- a/devel/ocaml-cppo/distinfo
+++ b/devel/ocaml-cppo/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1608568122
-SHA256 (ocaml-community-cppo-v1.6.7_GH0.tar.gz) = 05da2db9b9c923105c26ef303ff9802e819146d0130421ba5656b1a8739ec461
-SIZE (ocaml-community-cppo-v1.6.7_GH0.tar.gz) = 29032
+TIMESTAMP = 1655651962
+SHA256 (ocaml-community-cppo-v1.6.9_GH0.tar.gz) = 16036d85c11d330a7c8b56f4e071d6bbe86d8937c89d3d79f6eef0e38bdda26a
+SIZE (ocaml-community-cppo-v1.6.9_GH0.tar.gz) = 31210
diff --git a/devel/ocaml-cppo/pkg-descr b/devel/ocaml-cppo/pkg-descr
index 2b98ee608c53..06f156b813ba 100644
--- a/devel/ocaml-cppo/pkg-descr
+++ b/devel/ocaml-cppo/pkg-descr
@@ -1,13 +1,11 @@
-Cppo is an equivalent of the C preprocessor targeted at the OCaml language
+Cppo is an equivalent of the C preprocessor for OCaml programs. It
+allows the definition of simple macros and file inclusion.
 
-The main purpose of cppo is to provide a lightweight tool for simple
-macro substitution (#define) and file inclusion (#include) for the
-occasional case when this is useful in OCaml. Processing specific
-sections of files by calling external programs is also possible via
-#ext directives.
+Cppo is:
 
-The implementation of cppo relies on the standard library of OCaml and
-on the standard parsing tools Ocamllex and Ocamlyacc, which contribute
-to the robustness of cppo across OCaml versions.
+- more OCaml-friendly than cpp
+- easy to learn without consulting a manual
+- reasonably fast
+- simple to install and to maintain
 
-WWW: http://martin.jambon.free.fr/cppo.html
+WWW: https://github.com/ocaml-community/cppo