pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libyang is a YANG data modelling language parser and toolkit written (and providing API) in C. The library is used e.g. in
Module Name: pkgsrc-wip
Committed By: Frank Kardel <kardel%NetBSD.org@localhost>
Pushed By: kardel
Date: Sun Oct 11 13:42:17 2020 +0200
Changeset: 51e7386e4e00e31f82cb7cfbee0debab3258a79b
Added Files:
libyang/DESCR
libyang/Makefile
libyang/PLIST
libyang/buildlink3.mk
libyang/distinfo
libyang/patches/patch-compat_compat.h.in
Log Message:
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 see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=51e7386e4e00e31f82cb7cfbee0debab3258a79b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libyang/DESCR | 7 ++++++
libyang/Makefile | 38 ++++++++++++++++++++++++++++++++
libyang/PLIST | 21 ++++++++++++++++++
libyang/buildlink3.mk | 16 ++++++++++++++
libyang/distinfo | 7 ++++++
libyang/patches/patch-compat_compat.h.in | 22 ++++++++++++++++++
6 files changed, 111 insertions(+)
diffs:
diff --git a/libyang/DESCR b/libyang/DESCR
new file mode 100644
index 0000000000..26b24bff42
--- /dev/null
+++ b/libyang/DESCR
@@ -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 --git a/libyang/Makefile b/libyang/Makefile
new file mode 100644
index 0000000000..533c8e6544
--- /dev/null
+++ b/libyang/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+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++
+
+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 "../../devel/cmocka/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libyang/PLIST b/libyang/PLIST
new file mode 100644
index 0000000000..ae335dcb6c
--- /dev/null
+++ b/libyang/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD$
+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 --git a/libyang/buildlink3.mk b/libyang/buildlink3.mk
new file mode 100644
index 0000000000..6488a982d2
--- /dev/null
+++ b/libyang/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= libyang
+
+.if !defined(LIBYANG_BUILDLINK3_MK)
+LIBYANG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libyang+= libyang>=1.0.184
+BUILDLINK_PKGSRCDIR.libyang?= ../../wip/libyang
+
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../devel/cmocka/buildlink3.mk"
+
+.endif # LIBYANG_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libyang
diff --git a/libyang/distinfo b/libyang/distinfo
new file mode 100644
index 0000000000..aee2fe2001
--- /dev/null
+++ b/libyang/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+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 --git a/libyang/patches/patch-compat_compat.h.in b/libyang/patches/patch-compat_compat.h.in
new file mode 100644
index 0000000000..cb983ef75b
--- /dev/null
+++ b/libyang/patches/patch-compat_compat.h.in
@@ -0,0 +1,22 @@
+$NetBSD$
+
+ 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