pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libyang2



Module Name:    pkgsrc
Committed By:   kardel
Date:           Wed Aug 11 09:49:43 UTC 2021

Added Files:
        pkgsrc/devel/libyang2: DESCR Makefile PLIST buildlink3.mk distinfo

Log Message:
devel/libyang2: import libyang2-2.0.7

libyang is a YANG data modelling language parser and toolkit written (and
providing API) in C. The library is used e.g. in

* Parsing (and validating) schemas in YANG format.
* Parsing (and validating) schemas in YIN format.
* Parsing, validating and printing instance data in XML format.
* Parsing, validating and printing instance data in JSON format


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libyang2/DESCR \
    pkgsrc/devel/libyang2/Makefile pkgsrc/devel/libyang2/PLIST \
    pkgsrc/devel/libyang2/buildlink3.mk pkgsrc/devel/libyang2/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/libyang2/DESCR
diff -u /dev/null pkgsrc/devel/libyang2/DESCR:1.1
--- /dev/null   Wed Aug 11 09:49:43 2021
+++ pkgsrc/devel/libyang2/DESCR Wed Aug 11 09:49:42 2021
@@ -0,0 +1,7 @@
+libyang is a YANG data modelling language parser and toolkit written (and
+providing API) in C. The library is used e.g. in
+
+* Parsing (and validating) schemas in YANG format.
+* Parsing (and validating) schemas in YIN format.
+* Parsing, validating and printing instance data in XML format.
+* Parsing, validating and printing instance data in JSON format
Index: pkgsrc/devel/libyang2/Makefile
diff -u /dev/null pkgsrc/devel/libyang2/Makefile:1.1
--- /dev/null   Wed Aug 11 09:49:43 2021
+++ pkgsrc/devel/libyang2/Makefile      Wed Aug 11 09:49:42 2021
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2021/08/11 09:49:42 kardel Exp $
+
+GITHUB_PROJECT=        libyang
+GITHUB_TAG=    v2.0.7
+DISTNAME=      v2.0.7
+PKGNAME=       ${GITHUB_PROJECT}2-${DISTNAME:S,^v,,}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=CESNET/}
+DIST_SUBDIR=   ${GITHUB_PROJECT}
+CONFLICTS=     libyang-[0-9]*
+
+MAINTAINER=    kardel%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/CESNET/libyang/
+COMMENT=       YANG data modeling language library
+LICENSE=       modified-bsd
+
+WRKSRC=                ${WRKDIR}/libyang-2.0.7
+USE_CMAKE=     yes
+USE_TOOLS+=    pkg-config
+USE_LANGUAGES= c c++
+
+TOOL_DEPENDS+= cmocka>=1.1.5:../../devel/cmocka
+
+PKGCONFIG_OVERRIDE+=   libyang.pc.in
+PKGCONFIG_OVERRIDE+=   swig/libyang-cpp.pc.in
+
+CMAKE_ARG_PATH=        ..
+CONFIGURE_DIRS=        _build
+
+.include "../../mk/bsd.prefs.mk"
+
+pre-configure:
+       ${MKDIR} ${WRKSRC}/_build
+
+CMAKE_ARGS?=   -DCMAKE_BUILD_TYPE:String="Release"
+
+.include "../../devel/pcre2/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/libyang2/PLIST
diff -u /dev/null pkgsrc/devel/libyang2/PLIST:1.1
--- /dev/null   Wed Aug 11 09:49:43 2021
+++ pkgsrc/devel/libyang2/PLIST Wed Aug 11 09:49:42 2021
@@ -0,0 +1,30 @@
+@comment $NetBSD: PLIST,v 1.1 2021/08/11 09:49:42 kardel Exp $
+bin/yanglint
+bin/yangre
+include/libyang/config.h
+include/libyang/context.h
+include/libyang/dict.h
+include/libyang/in.h
+include/libyang/libyang.h
+include/libyang/log.h
+include/libyang/out.h
+include/libyang/parser_data.h
+include/libyang/parser_schema.h
+include/libyang/plugins.h
+include/libyang/plugins_exts.h
+include/libyang/plugins_exts_compile.h
+include/libyang/plugins_exts_print.h
+include/libyang/plugins_types.h
+include/libyang/printer_data.h
+include/libyang/printer_schema.h
+include/libyang/set.h
+include/libyang/tree.h
+include/libyang/tree_data.h
+include/libyang/tree_edit.h
+include/libyang/tree_schema.h
+include/libyang/version.h
+lib/libyang.so
+lib/libyang.so.2
+lib/libyang.so.2.1.4
+lib/pkgconfig/libyang.pc
+man/man1/yanglint.1
Index: pkgsrc/devel/libyang2/buildlink3.mk
diff -u /dev/null pkgsrc/devel/libyang2/buildlink3.mk:1.1
--- /dev/null   Wed Aug 11 09:49:43 2021
+++ pkgsrc/devel/libyang2/buildlink3.mk Wed Aug 11 09:49:42 2021
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/08/11 09:49:42 kardel Exp $
+
+BUILDLINK_TREE+=       libyang2
+
+.if !defined(LIBYANG2_BUILDLINK3_MK)
+LIBYANG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libyang2+=       libyang2>=2.0.7
+BUILDLINK_PKGSRCDIR.libyang2?= ../../devel/libyang2
+TOOL_DEPENDS+=                 cmocka>=1.1.5:../../devel/cmocka
+
+.include "../../devel/pcre2/buildlink3.mk"
+
+.endif # LIBYANG_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libyang2
Index: pkgsrc/devel/libyang2/distinfo
diff -u /dev/null pkgsrc/devel/libyang2/distinfo:1.1
--- /dev/null   Wed Aug 11 09:49:43 2021
+++ pkgsrc/devel/libyang2/distinfo      Wed Aug 11 09:49:42 2021
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/08/11 09:49:42 kardel Exp $
+
+SHA1 (libyang/v2.0.7.tar.gz) = 3882fb9a6e40f1a6bdfbce21546ff8aec3f6144c
+RMD160 (libyang/v2.0.7.tar.gz) = 2298fe0aa9915c0360737c52d166aa5ff545e513
+SHA512 (libyang/v2.0.7.tar.gz) = edb1d8d372b25ed820fa312e0dc96d4af7c8cd5ddeb785964de73f64774062ea7a5586bb27e2039ad24189d4a2ba04268921ca86e82423fc48647d1d10a2a0a7
+Size (libyang/v2.0.7.tar.gz) = 1031818 bytes



Home | Main Index | Thread Index | Old Index