git: c286656cea03 - main - devel/influx-pkg-config: New port

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Wed, 26 Jan 2022 17:28:30 UTC
The branch main has been updated by driesm:

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

commit c286656cea03a2753cdf1a40ba40f6e8c2502d62
Author:     Dries Michiels <driesm@FreeBSD.org>
AuthorDate: 2021-09-16 07:24:15 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2022-01-26 17:26:58 +0000

    devel/influx-pkg-config: New port
    
    A pkg-config drop-in for compiling C libraries for InfluxData.
    
    Reviewed by:            0mp
    Differential Revision:  https://reviews.freebsd.org/D33584
---
 devel/Makefile                    |  1 +
 devel/influx-pkg-config/Makefile  | 20 ++++++++++++++++++++
 devel/influx-pkg-config/distinfo  |  5 +++++
 devel/influx-pkg-config/pkg-descr |  9 +++++++++
 4 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 2566844bc5c2..6626d7336ee6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1021,6 +1021,7 @@
     SUBDIR += include-what-you-use
     SUBDIR += indi
     SUBDIR += indicators
+    SUBDIR += influx-pkg-config
     SUBDIR += inifiled
     SUBDIR += inih
     SUBDIR += inilib
diff --git a/devel/influx-pkg-config/Makefile b/devel/influx-pkg-config/Makefile
new file mode 100644
index 000000000000..5053c4ead8e0
--- /dev/null
+++ b/devel/influx-pkg-config/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	pkg-config
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.2.11
+CATEGORIES=	devel
+PKGNAMEPREFIX=	influx
+
+MAINTAINER=	driesm@FreeBSD.org
+COMMENT=	Drop-in pkg-config replacement for compiling C libraries for InfluxData
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules pkgconfig:run
+
+GO_MODULE=	github.com/influxdata/pkg-config
+GO_TARGET=	./:${PREFIX}/bin/influx-pkg-config
+
+PLIST_FILES=	bin/influx-pkg-config
+
+.include <bsd.port.mk>
diff --git a/devel/influx-pkg-config/distinfo b/devel/influx-pkg-config/distinfo
new file mode 100644
index 000000000000..2ca0bb4ebee5
--- /dev/null
+++ b/devel/influx-pkg-config/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1643140363
+SHA256 (go/devel_influx-pkg-config/pkg-config-v0.2.11/v0.2.11.mod) = cb101f1b8f52a9d96c246dd29d91110d4fe712b2ad9e15bcbe127af5ba64c63f
+SIZE (go/devel_influx-pkg-config/pkg-config-v0.2.11/v0.2.11.mod) = 277
+SHA256 (go/devel_influx-pkg-config/pkg-config-v0.2.11/v0.2.11.zip) = e744271589b353552719f93fe61b28390925ea3ed4602236264af7305071e9dd
+SIZE (go/devel_influx-pkg-config/pkg-config-v0.2.11/v0.2.11.zip) = 51287
diff --git a/devel/influx-pkg-config/pkg-descr b/devel/influx-pkg-config/pkg-descr
new file mode 100644
index 000000000000..e7688170151c
--- /dev/null
+++ b/devel/influx-pkg-config/pkg-descr
@@ -0,0 +1,9 @@
+This binary is intended as an easier way to include C code in your Go program.
+
+This binary can be installed and Go can be told to use this binary when it
+invokes pkg-config. If it finds a library that is known by the program,
+it will compile and output the location for that binary. If it doesn't know
+what the program is, it will default to invoking the system pkg-config to
+obtain the compilation flags.
+
+WWW: https://github.com/influxdata/pkg-config