diff options
author | nia <nia@pkgsrc.org> | 2021-02-03 10:28:41 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-02-03 10:28:41 +0000 |
commit | d6046fd295e741f4bf3bcaf9e5c090323c147538 (patch) | |
tree | 445a031f42ef42a403b9b07ebdb6500ca226aa08 /textproc | |
parent | b4934cfde93b14f3d489ba75fb4a3f3c665e3730 (diff) | |
download | pkgsrc-d6046fd295e741f4bf3bcaf9e5c090323c147538.tar.gz |
add textproc/inih.
inih (INI Not Invented Here) is a simple .INI file parser written in C. It's
only a couple of pages of code, and it was designed to be small and simple,
so it's good for embedded systems. It's also more or less compatible with
Python's ConfigParser style of .INI files, including RFC 822-style multi-line
syntax and name: value entries.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 3 | ||||
-rw-r--r-- | textproc/inih/DESCR | 5 | ||||
-rw-r--r-- | textproc/inih/Makefile | 28 | ||||
-rw-r--r-- | textproc/inih/PLIST | 9 | ||||
-rw-r--r-- | textproc/inih/buildlink3.mk | 12 | ||||
-rw-r--r-- | textproc/inih/distinfo | 6 |
6 files changed, 62 insertions, 1 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 5e49874aaa4..3699efcec1d 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1191 2021/01/31 15:57:58 pin Exp $ +# $NetBSD: Makefile,v 1.1192 2021/02/03 10:28:41 nia Exp $ # COMMENT= Text processing utilities (does not include desktop publishing) @@ -386,6 +386,7 @@ SUBDIR+= hyphen SUBDIR+= icu SUBDIR+= igor SUBDIR+= iksemel +SUBDIR+= inih SUBDIR+= intltool SUBDIR+= ipadic SUBDIR+= isearch diff --git a/textproc/inih/DESCR b/textproc/inih/DESCR new file mode 100644 index 00000000000..bd8c54782db --- /dev/null +++ b/textproc/inih/DESCR @@ -0,0 +1,5 @@ +inih (INI Not Invented Here) is a simple .INI file parser written in C. It's +only a couple of pages of code, and it was designed to be small and simple, +so it's good for embedded systems. It's also more or less compatible with +Python's ConfigParser style of .INI files, including RFC 822-style multi-line +syntax and name: value entries. diff --git a/textproc/inih/Makefile b/textproc/inih/Makefile new file mode 100644 index 00000000000..86365cd9474 --- /dev/null +++ b/textproc/inih/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2021/02/03 10:28:41 nia Exp $ + +DISTNAME= inih-r52 +PKGNAME= ${DISTNAME:S/-r/-/1} +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_GITHUB:=benhoyt/} +GITHUB_PROJECT= inih +GITHUB_TAG= r${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/benhoyt/inih +COMMENT= Simple .INI file parser in C +LICENSE= modified-bsd + +USE_LANGUAGES= c c++ + +MESON_ARGS+= -Ddefault_library=shared +MESON_ARGS+= -Ddistro_install=true +MESON_ARGS+= -Dwith_INIReader=true + +PYTHON_FOR_BUILD_ONLY= tool + +PKGCONFIG_OVERRIDE_STAGE= pre-install +PKGCONFIG_OVERRIDE+= output/meson-private/inih.pc +PKGCONFIG_OVERRIDE+= output/meson-private/INIReader.pc + +.include "../../devel/meson/build.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/inih/PLIST b/textproc/inih/PLIST new file mode 100644 index 00000000000..4f1667257a5 --- /dev/null +++ b/textproc/inih/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2021/02/03 10:28:41 nia Exp $ +include/INIReader.h +include/ini.h +lib/libINIReader.so +lib/libINIReader.so.0 +lib/libinih.so +lib/libinih.so.0 +lib/pkgconfig/INIReader.pc +lib/pkgconfig/inih.pc diff --git a/textproc/inih/buildlink3.mk b/textproc/inih/buildlink3.mk new file mode 100644 index 00000000000..61cd1583ec4 --- /dev/null +++ b/textproc/inih/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2021/02/03 10:28:41 nia Exp $ + +BUILDLINK_TREE+= inih + +.if !defined(INIH_BUILDLINK3_MK) +INIH_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.inih+= inih>=52 +BUILDLINK_PKGSRCDIR.inih?= ../../textproc/inih +.endif # INIH_BUILDLINK3_MK + +BUILDLINK_TREE+= -inih diff --git a/textproc/inih/distinfo b/textproc/inih/distinfo new file mode 100644 index 00000000000..f007fd3a74e --- /dev/null +++ b/textproc/inih/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2021/02/03 10:28:41 nia Exp $ + +SHA1 (inih-r52.tar.gz) = 98bd05451d50bf7ec17022bf684262bf18249b78 +RMD160 (inih-r52.tar.gz) = d042a5a483d2c68deff560cd7ae869675429594f +SHA512 (inih-r52.tar.gz) = 14c0d0dbd78efc99bec8df12067107d130eef8b124e0616f7d83dc4e14530b57f0c8fcf0b8862d425b5a0b84d6c6a6bff7b3c852c9b2e2364ef56c8f64a1f339 +Size (inih-r52.tar.gz) = 16808 bytes |