pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[.joined/pkgsrc/trunk]: .joined/pkgsrc/devel/cxxopts Add cxxopts-3.0.0



details:   https://anonhg.NetBSD.org/.joined/pkgsrc/rev/6ab1bbdeb092
branches:  trunk
changeset: 370848:6ab1bbdeb092
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Fri Dec 31 17:23:19 2021 +0000

description:
Add cxxopts-3.0.0

This is a lightweight C++ option parser library, supporting the
standard GNU style syntax for options.

Options can be given as:

  --long
  --long=argument
  --long argument
  -a
  -ab
  -abc argument

where c takes an argument, but a and b do not.

Additionally, anything after -- will be parsed as a positional
argument.

diffstat:

 devel/cxxopts/DESCR         |  16 ++++++++++++++++
 devel/cxxopts/Makefile      |  20 ++++++++++++++++++++
 devel/cxxopts/PLIST         |   6 ++++++
 devel/cxxopts/buildlink3.mk |  12 ++++++++++++
 devel/cxxopts/distinfo      |   5 +++++
 5 files changed, 59 insertions(+), 0 deletions(-)

diffs (79 lines):

diff -r 8bfaefd84919 -r 6ab1bbdeb092 devel/cxxopts/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cxxopts/DESCR       Fri Dec 31 17:23:19 2021 +0000
@@ -0,0 +1,16 @@
+This is a lightweight C++ option parser library, supporting the
+standard GNU style syntax for options.
+
+Options can be given as:
+
+  --long
+  --long=argument
+  --long argument
+  -a
+  -ab
+  -abc argument
+
+where c takes an argument, but a and b do not.
+
+Additionally, anything after -- will be parsed as a positional
+argument.
diff -r 8bfaefd84919 -r 6ab1bbdeb092 devel/cxxopts/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cxxopts/Makefile    Fri Dec 31 17:23:19 2021 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2021/12/31 17:23:19 plunky Exp $
+#
+
+DISTNAME=      cxxopts-3.0.0
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=jarro2783/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/jarro2783/cxxopts
+COMMENT=       Lightweight C++ option parser library
+LICENSE=       mit
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+=   -DCXXOPTS_BUILD_EXAMPLES=OFF
+CMAKE_ARGS+=   -DCXXOPTS_BUILD_TESTS=OFF
+
+.include "../../mk/bsd.pkg.mk"
diff -r 8bfaefd84919 -r 6ab1bbdeb092 devel/cxxopts/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cxxopts/PLIST       Fri Dec 31 17:23:19 2021 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2021/12/31 17:23:19 plunky Exp $
+include/cxxopts.hpp
+lib/cmake/cxxopts/cxxopts-config-version.cmake
+lib/cmake/cxxopts/cxxopts-config.cmake
+lib/cmake/cxxopts/cxxopts-targets.cmake
+lib/pkgconfig/cxxopts.pc
diff -r 8bfaefd84919 -r 6ab1bbdeb092 devel/cxxopts/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cxxopts/buildlink3.mk       Fri Dec 31 17:23:19 2021 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/12/31 17:23:19 plunky Exp $
+
+BUILDLINK_TREE+=       cxxopts
+
+.if !defined(CXXOPTS_BUILDLINK3_MK)
+CXXOPTS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.cxxopts+=        cxxopts>=3.0.0
+BUILDLINK_PKGSRCDIR.cxxopts?=  ../../devel/cxxopts
+.endif
+
+BUILDLINK_TREE+=       -cxxopts
diff -r 8bfaefd84919 -r 6ab1bbdeb092 devel/cxxopts/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cxxopts/distinfo    Fri Dec 31 17:23:19 2021 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2021/12/31 17:23:19 plunky Exp $
+
+BLAKE2s (cxxopts-3.0.0.tar.gz) = ba40d90e78624b8e781c5cbd0a35dc3cdc0530b87113a6fb009aa1e5687b6d7d
+SHA512 (cxxopts-3.0.0.tar.gz) = 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c
+Size (cxxopts-3.0.0.tar.gz) = 97020 bytes



Home | Main Index | Thread Index | Old Index