summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2015-04-19 23:10:52 +0000
committerrodent <rodent@pkgsrc.org>2015-04-19 23:10:52 +0000
commit6995bfb7914ac1a2561675a475cacf0a75df6cc9 (patch)
treea7d0b3cb58322153056b4669f90811d6f90454ca /textproc
parentdedc65a2d7b57f11b72bb297917b9081068372db (diff)
downloadpkgsrc-6995bfb7914ac1a2561675a475cacf0a75df6cc9.tar.gz
Import serd-0.20.0 as textproc/serd.
Serd is a lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples. Serd is not intended to be a swiss-army knife of RDF syntax, but rather is suited to resource limited or performance critical applications (e.g. converting many gigabytes of NTriples to Turtle), or situations where a simple reader/writer with minimal dependencies is ideal (e.g. in LV2 implementations or embedded applications).
Diffstat (limited to 'textproc')
-rw-r--r--textproc/serd/DESCR8
-rw-r--r--textproc/serd/Makefile33
-rw-r--r--textproc/serd/PLIST11
-rw-r--r--textproc/serd/buildlink3.mk12
-rw-r--r--textproc/serd/distinfo5
-rw-r--r--textproc/serd/options.mk35
6 files changed, 104 insertions, 0 deletions
diff --git a/textproc/serd/DESCR b/textproc/serd/DESCR
new file mode 100644
index 00000000000..34286d1da75
--- /dev/null
+++ b/textproc/serd/DESCR
@@ -0,0 +1,8 @@
+Serd is a lightweight C library for RDF syntax which supports reading and
+writing Turtle and NTriples.
+
+Serd is not intended to be a swiss-army knife of RDF syntax, but rather is
+suited to resource limited or performance critical applications (e.g. converting
+many gigabytes of NTriples to Turtle), or situations where a simple
+reader/writer with minimal dependencies is ideal (e.g. in LV2 implementations or
+embedded applications).
diff --git a/textproc/serd/Makefile b/textproc/serd/Makefile
new file mode 100644
index 00000000000..0a9621ec2ba
--- /dev/null
+++ b/textproc/serd/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2015/04/19 23:10:52 rodent Exp $
+
+DISTNAME= serd-0.20.0
+CATEGORIES= textproc
+MASTER_SITES= http://download.drobilla.net/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= rodent@NetBSD.org
+HOMEPAGE= http://drobilla.net/software/serd/
+COMMENT= Lightweight C library for RDF syntax
+LICENSE= isc
+
+USE_TOOLS+= gsed pkg-config
+
+PKGCONFIG_OVERRIDE+= serd.pc.in
+
+.include "options.mk"
+
+BUILD_OPTIONS= ${BUILD_DEBUG} ${BUILD_DOC} ${BUILD_TESTS} ${BUILD_VALGRIND}
+
+do-configure:
+ cd ${WRKSRC} && \
+ ${SETENV} ${CONFIGURE_ENV} ${PYTHONBIN} ./waf configure \
+ --destdir=${DESTDIR} --mandir=${PREFIX}/${PKGMANDIR} \
+ ${BUILD_OPTIONS}
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} ./waf build
+
+do-install:
+ cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${PYTHONBIN} ./waf install
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/serd/PLIST b/textproc/serd/PLIST
new file mode 100644
index 00000000000..28afbf2ce94
--- /dev/null
+++ b/textproc/serd/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2015/04/19 23:10:52 rodent Exp $
+bin/serdi
+include/serd-0/serd/serd.h
+lib/libserd-0.so
+lib/libserd-0.so.0
+lib/libserd-0.so.${PKGVERSION}
+lib/pkgconfig/serd-0.pc
+man/man1/serdi.1
+${PLIST.doc}man/man3/serd.3
+${PLIST.doc}share/doc/serd-0/html/index.html
+${PLIST.doc}share/doc/serd-0/html/style.css
diff --git a/textproc/serd/buildlink3.mk b/textproc/serd/buildlink3.mk
new file mode 100644
index 00000000000..48b149ff0ff
--- /dev/null
+++ b/textproc/serd/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/04/19 23:10:52 rodent Exp $
+
+BUILDLINK_TREE+= serd
+
+.if !defined(SERD_BUILDLINK3_MK)
+SERD_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.serd+= serd>=0.20.0
+BUILDLINK_PKGSRCDIR.serd?= ../../textproc/serd
+.endif # SERD_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -serd
diff --git a/textproc/serd/distinfo b/textproc/serd/distinfo
new file mode 100644
index 00000000000..9811631815b
--- /dev/null
+++ b/textproc/serd/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2015/04/19 23:10:52 rodent Exp $
+
+SHA1 (serd-0.20.0.tar.bz2) = 38c0c8600270e38d99bc87b0ceb14b25c4c0cea3
+RMD160 (serd-0.20.0.tar.bz2) = 097ae78907780c79ea96e3c518deecca2d8fd099
+Size (serd-0.20.0.tar.bz2) = 363807 bytes
diff --git a/textproc/serd/options.mk b/textproc/serd/options.mk
new file mode 100644
index 00000000000..36387dc177b
--- /dev/null
+++ b/textproc/serd/options.mk
@@ -0,0 +1,35 @@
+# $NetBSD: options.mk,v 1.1 2015/04/19 23:10:52 rodent Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.serd
+PKG_SUPPORTED_OPTIONS= debug doc tests valgrind
+PKG_SUGGESTED_OPTIONS+= # blank
+PLIST_VARS+= doc
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+BUILD_DEBUG= --debug
+.else
+BUILD_DEBUG= # blank
+.endif
+
+.if !empty(PKG_OPTIONS:Mdoc)
+BUILD_DOC= --docs
+BUILD_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen
+PLIST.doc= yes
+.else
+BUILD_DOC= # blank
+.endif
+
+.if !empty(PKG_OPTIONS:Mtests)
+BUILD_TESTS= --test
+.else
+BUILD_TESTS= # blank
+.endif
+
+.if !empty(PKG_OPTIONS:Mvalgrind)
+BUILD_VALGRIND= --grind
+BUILD_DEPENDS+= valgrind-[0-9]*:../../devel/valgrind
+.else
+BUILD_VALGRIND= # blank
+.endif