From ca699f0065dea96b12814de356b84513f8c1a728 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 15 Feb 2019 05:02:44 +0000 Subject: [PATCH] New port: textproc/libcyaml: C library for reading and writing YAML --- textproc/Makefile | 1 + textproc/libcyaml/Makefile | 28 ++++++++++++++++++++++++++ textproc/libcyaml/distinfo | 3 +++ textproc/libcyaml/files/patch-Makefile | 27 +++++++++++++++++++++++++ textproc/libcyaml/pkg-descr | 4 ++++ 5 files changed, 63 insertions(+) create mode 100644 textproc/libcyaml/Makefile create mode 100644 textproc/libcyaml/distinfo create mode 100644 textproc/libcyaml/files/patch-Makefile create mode 100644 textproc/libcyaml/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index e690b7499555..f14737caae48 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -417,6 +417,7 @@ SUBDIR += libcss SUBDIR += libcsv SUBDIR += libcue + SUBDIR += libcyaml SUBDIR += libdiff SUBDIR += libe-book SUBDIR += libebml diff --git a/textproc/libcyaml/Makefile b/textproc/libcyaml/Makefile new file mode 100644 index 000000000000..16d402f33f3e --- /dev/null +++ b/textproc/libcyaml/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= libcyaml +DISTVERSION= 0.1.0 +CATEGORIES= textproc + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C library for reading and writing YAML + +LICENSE= ISCL + +LIB_DEPENDS= libyaml.so:textproc/libyaml + +USES= gmake localbase:ldflags +USE_GITLAB= yes +GL_SITE= https://git.zrythm.org +GL_ACCOUNT= zrythm +GL_COMMIT= 3b568c9df39b5a95f1d652db43414fada3b1cc61 +USE_LDCONFIG= yes + +PLIST_FILES= include/cyaml/cyaml.h \ + lib/libcyaml.a \ + lib/libcyaml.so \ + lib/libcyaml.so.0 \ + lib/libcyaml.so.0.1.0 \ + libdata/pkgconfig/libcyaml.pc + +.include diff --git a/textproc/libcyaml/distinfo b/textproc/libcyaml/distinfo new file mode 100644 index 000000000000..9eeb43df2529 --- /dev/null +++ b/textproc/libcyaml/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1550204598 +SHA256 (zrythm-libcyaml-3b568c9df39b5a95f1d652db43414fada3b1cc61_GL0.tar.gz) = 8a574dab6205f94eb2c2a55ecb9d84f328d8fca069b0e8373e17a7e5fd5d7325 +SIZE (zrythm-libcyaml-3b568c9df39b5a95f1d652db43414fada3b1cc61_GL0.tar.gz) = 69120 diff --git a/textproc/libcyaml/files/patch-Makefile b/textproc/libcyaml/files/patch-Makefile new file mode 100644 index 000000000000..7cf2de6ba35f --- /dev/null +++ b/textproc/libcyaml/files/patch-Makefile @@ -0,0 +1,27 @@ +--- Makefile.orig 2019-02-04 13:46:44 UTC ++++ Makefile +@@ -37,7 +37,7 @@ INCLUDEDIR ?= include + CC ?= gcc + AR ?= ar + MKDIR = mkdir -p +-INSTALL ?= install -c -D ++INSTALL ?= install -c + VALGRIND = valgrind --leak-check=full --track-origins=yes + + VERSION_FLAGS = -DVERSION_MAJOR=$(VERSION_MAJOR) \ +@@ -154,13 +154,14 @@ clean: + rm -rf build/ + + install: $(BUILDDIR)/$(LIB_SH_MAJ) $(BUILDDIR)/$(LIB_STATIC) $(BUILDDIR)/$(LIB_PKGCON) +- $(INSTALL) $(BUILDDIR)/$(LIB_SH_MAJ) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(LIB_SH_VER) ++ $(INSTALL) -s $(BUILDDIR)/$(LIB_SH_MAJ) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(LIB_SH_VER) + (cd $(DESTDIR)$(PREFIX)/$(LIBDIR) && { ln -s -f $(LIB_SH_VER) $(LIB_SH_MAJ) || { rm -f $(LIB_SH_MAJ) && ln -s $(LIB_SH_VER) $(LIB_SH_MAJ); }; }) + (cd $(DESTDIR)$(PREFIX)/$(LIBDIR) && { ln -s -f $(LIB_SH_VER) $(LIB_SHARED) || { rm -f $(LIB_SHARED) && ln -s $(LIB_SH_VER) $(LIB_SHARED); }; }) + $(INSTALL) $(BUILDDIR)/$(LIB_STATIC) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(LIB_STATIC) + chmod 644 $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(LIB_STATIC) + $(INSTALL) -d $(DESTDIR)$(PREFIX)/$(INCLUDEDIR)/cyaml + $(INSTALL) -m 644 include/cyaml/* $(DESTDIR)$(PREFIX)/$(INCLUDEDIR)/cyaml ++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig + $(INSTALL) -m 644 $(BUILDDIR)/$(LIB_PKGCON) $(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig/$(LIB_PKGCON) + + examples: $(BUILDDIR)/planner $(BUILDDIR)/numerical diff --git a/textproc/libcyaml/pkg-descr b/textproc/libcyaml/pkg-descr new file mode 100644 index 000000000000..b7ea8e7dfcf4 --- /dev/null +++ b/textproc/libcyaml/pkg-descr @@ -0,0 +1,4 @@ +LibCYAML is a C library for reading and writing structured YAML documents. It +is written in ISO C11 and licensed under the ISC licence. + +WWW: https://git.zrythm.org/zrythm/libcyaml