pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libyang



Module Name:    pkgsrc
Committed By:   kardel
Date:           Thu Dec 10 16:25:19 UTC 2020

Added Files:
        pkgsrc/devel/libyang: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/devel/libyang/patches: patch-compat_compat.h.in

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libyang/DESCR \
    pkgsrc/devel/libyang/Makefile pkgsrc/devel/libyang/PLIST \
    pkgsrc/devel/libyang/buildlink3.mk pkgsrc/devel/libyang/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libyang/patches/patch-compat_compat.h.in

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

Added files:

Index: pkgsrc/devel/libyang/DESCR
diff -u /dev/null pkgsrc/devel/libyang/DESCR:1.1
--- /dev/null   Thu Dec 10 16:25:19 2020
+++ pkgsrc/devel/libyang/DESCR  Thu Dec 10 16:25:19 2020
@@ -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/libyang/Makefile
diff -u /dev/null pkgsrc/devel/libyang/Makefile:1.1
--- /dev/null   Thu Dec 10 16:25:19 2020
+++ pkgsrc/devel/libyang/Makefile       Thu Dec 10 16:25:19 2020
@@ -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"
Index: pkgsrc/devel/libyang/PLIST
diff -u /dev/null pkgsrc/devel/libyang/PLIST:1.1
--- /dev/null   Thu Dec 10 16:25:19 2020
+++ pkgsrc/devel/libyang/PLIST  Thu Dec 10 16:25:19 2020
@@ -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
Index: pkgsrc/devel/libyang/buildlink3.mk
diff -u /dev/null pkgsrc/devel/libyang/buildlink3.mk:1.1
--- /dev/null   Thu Dec 10 16:25:19 2020
+++ pkgsrc/devel/libyang/buildlink3.mk  Thu Dec 10 16:25:19 2020
@@ -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
Index: pkgsrc/devel/libyang/distinfo
diff -u /dev/null pkgsrc/devel/libyang/distinfo:1.1
--- /dev/null   Thu Dec 10 16:25:19 2020
+++ pkgsrc/devel/libyang/distinfo       Thu Dec 10 16:25:19 2020
@@ -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

Index: pkgsrc/devel/libyang/patches/patch-compat_compat.h.in
diff -u /dev/null pkgsrc/devel/libyang/patches/patch-compat_compat.h.in:1.1
--- /dev/null   Thu Dec 10 16:25:19 2020
+++ pkgsrc/devel/libyang/patches/patch-compat_compat.h.in       Thu Dec 10 16:25:19 2020
@@ -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