svn commit: r410025 - in head/devel: . libconcurrent
Raphael Kubo da Costa
rakuco at FreeBSD.org
Thu Mar 3 10:21:32 UTC 2016
Author: rakuco
Date: Thu Mar 3 10:21:30 2016
New Revision: 410025
URL: https://svnweb.freebsd.org/changeset/ports/410025
Log:
New port: devel/libconcurrent.
Tiny asymmetric-coroutine library:
- generator bidirectional communication with yield_value/resume_value
- native context switch
- C11
WWW: https://github.com/sharow/libconcurrent/
PR: 207669
Submitted by: Tobias Kortkamp <t at tobik.me>
Added:
head/devel/libconcurrent/
head/devel/libconcurrent/Makefile (contents, props changed)
head/devel/libconcurrent/distinfo (contents, props changed)
head/devel/libconcurrent/pkg-descr (contents, props changed)
head/devel/libconcurrent/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Thu Mar 3 10:17:48 2016 (r410024)
+++ head/devel/Makefile Thu Mar 3 10:21:30 2016 (r410025)
@@ -1142,6 +1142,7 @@
SUBDIR += libclaw
SUBDIR += libclc
SUBDIR += libcli
+ SUBDIR += libconcurrent
SUBDIR += libconfig
SUBDIR += libconfuse
SUBDIR += libcutl
Added: head/devel/libconcurrent/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libconcurrent/Makefile Thu Mar 3 10:21:30 2016 (r410025)
@@ -0,0 +1,49 @@
+# Created by: Tobias Kortkamp <t at tobik.me>
+# $FreeBSD$
+
+PORTNAME= libconcurrent
+PORTVERSION= 0.0.20160303
+CATEGORIES= devel
+
+MAINTAINER= t at tobik.me
+COMMENT= Tiny asymmetric-coroutine library
+
+LICENSE= ZLIB
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
+
+USE_GITHUB= yes
+GH_ACCOUNT= sharow
+# Rolling release
+GH_TAGNAME= f55d33a789a4b2c6267268ec2d44a245f766f500
+
+ONLY_FOR_ARCHS= i386 amd64
+
+OPTIONS_DEFINE= EXAMPLES
+OPTIONS_DEFAULT= EXAMPLES
+
+MAKEFILE= makefile
+MAKE_ARGS= LIBCONCURRENT_DESTDIR=${STAGEDIR}${PREFIX}
+USES= gmake
+
+post-patch:
+# libconcurrent's makefile resets ${ARCH} internally and the ports
+# system interferes with that for some reason, so replace it with a
+# more neutral variant.
+ @${REINPLACE_CMD} 's/ARCH/LIBCONCURRENT_ARCH/g' ${WRKSRC}/makefile
+# Same with ${DESTDIR}
+ @${REINPLACE_CMD} 's/DESTDIR/LIBCONCURRENT_DESTDIR/g' ${WRKSRC}/makefile
+
+post-patch-EXAMPLES-on:
+# Fix examples makefile to work out-of-tree
+ @${REINPLACE_CMD} 's|INCDIR+=-I../include|INCDIR+=-I${PREFIX}/include|g' \
+ ${WRKSRC}/examples/makefile
+ @${REINPLACE_CMD} 's|-L../|-L${PREFIX}/lib|g' \
+ ${WRKSRC}/examples/makefile
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>
Added: head/devel/libconcurrent/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libconcurrent/distinfo Thu Mar 3 10:21:30 2016 (r410025)
@@ -0,0 +1,2 @@
+SHA256 (sharow-libconcurrent-0.0.20160303-f55d33a789a4b2c6267268ec2d44a245f766f500_GH0.tar.gz) = 418adeab02ce005756fc9c33165cf121ec4950f7e8f96b842fe22838a23953f4
+SIZE (sharow-libconcurrent-0.0.20160303-f55d33a789a4b2c6267268ec2d44a245f766f500_GH0.tar.gz) = 9550
Added: head/devel/libconcurrent/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libconcurrent/pkg-descr Thu Mar 3 10:21:30 2016 (r410025)
@@ -0,0 +1,6 @@
+Tiny asymmetric-coroutine library:
+- generator bidirectional communication with yield_value/resume_value
+- native context switch
+- C11
+
+WWW: https://github.com/sharow/libconcurrent/
Added: head/devel/libconcurrent/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libconcurrent/pkg-plist Thu Mar 3 10:21:30 2016 (r410025)
@@ -0,0 +1,12 @@
+include/concurrent/concurrent.h
+include/concurrent/shortname.h
+lib/libconcurrent.a
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/accumulator.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/concurrent_sort1.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coroutine1.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coroutine2.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/float1.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/float2.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/makefile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/many_context1.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/time_slice1.c
More information about the svn-ports-head
mailing list