pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libyang devel/libyang: import libyang-1.0.184



details:   https://anonhg.NetBSD.org/pkgsrc/rev/66cfc3491b5e
branches:  trunk
changeset: 443318:66cfc3491b5e
user:      kardel <kardel%pkgsrc.org@localhost>
date:      Thu Dec 10 16:25:19 2020 +0000

description:
devel/libyang: import libyang-1.0.184

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

diffstat:

 devel/libyang/DESCR                            |   7 ++++
 devel/libyang/Makefile                         |  39 ++++++++++++++++++++++++++
 devel/libyang/PLIST                            |  21 ++++++++++++++
 devel/libyang/buildlink3.mk                    |  16 ++++++++++
 devel/libyang/distinfo                         |   7 ++++
 devel/libyang/patches/patch-compat_compat.h.in |  22 ++++++++++++++
 6 files changed, 112 insertions(+), 0 deletions(-)

diffs (136 lines):

diff -r 910890fd786e -r 66cfc3491b5e devel/libyang/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libyang/DESCR       Thu Dec 10 16:25:19 2020 +0000
@@ -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
diff -r 910890fd786e -r 66cfc3491b5e devel/libyang/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libyang/Makefile    Thu Dec 10 16:25:19 2020 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2020/12/10 16:25:19 kardel Exp $
+
+GITHUB_PROJECT=        libyang
+GITHUB_TAG=    v1.0.184
+DISTNAME=      v1.0.184
+PKGNAME=       ${GITHUB_PROJECT}-${DISTNAME:S,^v,,}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=CESNET/}
+DIST_SUBDIR=   ${GITHUB_PROJECT}
+
+MAINTAINER=    kardel%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/CESNET/libyang/
+COMMENT=       YANG data modeling language library
+LICENSE=       cesnet-libyang
+
+WRKSRC=                ${WRKDIR}/libyang-1.0.184
+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"
+CMAKE_ARGS+=   -DENABLE_LYD_PRIV=ON
+
+.include "../../devel/pcre/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 910890fd786e -r 66cfc3491b5e devel/libyang/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libyang/PLIST       Thu Dec 10 16:25:19 2020 +0000
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/10 16:25:19 kardel Exp $
+bin/yanglint
+bin/yangre
+include/libyang/dict.h
+include/libyang/extensions.h
+include/libyang/libyang.h
+include/libyang/tree_data.h
+include/libyang/tree_schema.h
+include/libyang/user_types.h
+include/libyang/xml.h
+lib/libyang.so
+lib/libyang.so.1
+lib/libyang.so.1.9.2
+lib/libyang1/extensions/metadata.so
+lib/libyang1/extensions/nacm.so
+lib/libyang1/extensions/yangdata.so
+lib/libyang1/user_types/user_inet_types.so
+lib/libyang1/user_types/user_yang_types.so
+lib/pkgconfig/libyang.pc
+man/man1/yanglint.1
+man/man1/yangre.1
diff -r 910890fd786e -r 66cfc3491b5e devel/libyang/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libyang/buildlink3.mk       Thu Dec 10 16:25:19 2020 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/12/10 16:25:19 kardel Exp $
+
+BUILDLINK_TREE+=       libyang
+
+.if !defined(LIBYANG_BUILDLINK3_MK)
+LIBYANG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libyang+=        libyang>=1.0.184
+BUILDLINK_PKGSRCDIR.libyang?=  ../../devel/libyang
+TOOL_DEPENDS+=                 cmocka>=1.1.5:../../devel/cmocka
+
+.include "../../devel/pcre/buildlink3.mk"
+
+.endif # LIBYANG_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libyang
diff -r 910890fd786e -r 66cfc3491b5e devel/libyang/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libyang/distinfo    Thu Dec 10 16:25:19 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/12/10 16:25:19 kardel Exp $
+
+SHA1 (libyang/v1.0.184.tar.gz) = 89842305651e76696a0b79370659763f55be4398
+RMD160 (libyang/v1.0.184.tar.gz) = 58b54cf367692986bab10b95c37fa3909f31e785
+SHA512 (libyang/v1.0.184.tar.gz) = bb1c396b6048d848ea844cc462f1ee9f14b0dad848c7618ec0f9bd239d28db8a94f94550c5439ca07e01824a910a748ec6be699c58150b34072c2f9b76acd95c
+Size (libyang/v1.0.184.tar.gz) = 1659420 bytes
+SHA1 (patch-compat_compat.h.in) = e06eb93d911360dcb2255736911e7dbd926034a3
diff -r 910890fd786e -r 66cfc3491b5e devel/libyang/patches/patch-compat_compat.h.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libyang/patches/patch-compat_compat.h.in    Thu Dec 10 16:25:19 2020 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-compat_compat.h.in,v 1.1 2020/12/10 16:25:19 kardel Exp $
+
+       NetBSD already defines bswap64.
+
+--- compat/compat.h.in.orig    2020-10-10 06:19:45.124141482 +0000
++++ compat/compat.h.in
+@@ -44,6 +44,7 @@
+ #cmakedefine HAVE_GETLINE
+ #cmakedefine HAVE_GET_CURRENT_DIR_NAME
+ 
++#ifndef __NetBSD__
+ #define bswap64(val) \
+     ( (((val) >> 56) & 0x00000000000000FF) | (((val) >> 40) & 0x000000000000FF00) | \
+     (((val) >> 24) & 0x0000000000FF0000) | (((val) >>  8) & 0x00000000FF000000) | \
+@@ -62,6 +63,7 @@
+ # define le64toh(x) (x)
+ # define htole64(x) (x)
+ #endif
++#endif
+ 
+ #ifndef MAP_ANONYMOUS
+ #define MAP_ANONYMOUS MAP_ANON



Home | Main Index | Thread Index | Old Index