Index: devel/libepoll-shim/Makefile =================================================================== --- devel/libepoll-shim/Makefile (revision 525806) +++ devel/libepoll-shim/Makefile (working copy) @@ -2,34 +2,32 @@ # $FreeBSD$ PORTNAME= libepoll-shim -PORTVERSION= 0.0.20190311 +PORTVERSION= 0.0.20200211 CATEGORIES= devel MAINTAINER= x11@FreeBSD.org -COMMENT= epoll shim implemented using kevent +COMMENT= Small epoll implementation using kqueue LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE +USES= cmake compiler:c11 +USE_LDCONFIG= yes USE_GITHUB= yes -GH_ACCOUNT= FreeBSDDesktop +GH_ACCOUNT= jiixyj GH_PROJECT= epoll-shim -GH_TAGNAME= 1d1135384395dbf38eea00680ca28ead04f8dce2 +GH_TAGNAME= d8cb83a -USE_LDCONFIG= yes +do-test: + # Exclude certain tests in resource restricted environments + @(if [ `ulimit -n` -lt 20100 ]; then \ + SKIP_TESTS="-E ^(perf-many-fds.perf_many_fds__perf"; \ + if [ `ulimit -n` -lt 1100 ]; then \ + SKIP_TESTS=$$SKIP_TESTS"|timerfd-test.timerfd__many_timers"; \ + fi; \ + SKIP_TESTS=$$SKIP_TESTS")$$"; \ + fi; \ + cd ${TEST_WRKSRC} && \ + ${SETENV} ${TEST_ENV} ctest -C ${CMAKE_BUILD_TYPE} $$SKIP_TESTS) -USES= compiler uidfix -MAKE_ARGS= WITHOUT_PROFILE=yes - -.include - -post-patch: - @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' ${WRKSRC}/Makefile -.if "${CHOSEN_COMPILER_TYPE}" == "gcc" - @${REINPLACE_CMD} -e 's|Wno-missing-variable-declarations|Wno-missing-declarations|' \ - -e 's|-Wno-thread-safety-analysis||' ${WRKSRC}/Makefile -.endif - -pre-install: - @${MKDIR} ${STAGEDIR}/${PREFIX}/include/libepoll-shim/sys - -.include +.include Index: devel/libepoll-shim/distinfo =================================================================== --- devel/libepoll-shim/distinfo (revision 525806) +++ devel/libepoll-shim/distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1554794906 -SHA256 (FreeBSDDesktop-epoll-shim-0.0.20190311-1d1135384395dbf38eea00680ca28ead04f8dce2_GH0.tar.gz) = 689aaf4a6f8f14a715986f03c283cbabf404a2ac5370ad6430f28cc8e101b554 -SIZE (FreeBSDDesktop-epoll-shim-0.0.20190311-1d1135384395dbf38eea00680ca28ead04f8dce2_GH0.tar.gz) = 16341 +TIMESTAMP = 1581421021 +SHA256 (jiixyj-epoll-shim-0.0.20200211-d8cb83a_GH0.tar.gz) = d77f774d824e60a0a5be5a0aadfbadcd9b8be10c26c14598792efdafa05fc59c +SIZE (jiixyj-epoll-shim-0.0.20200211-d8cb83a_GH0.tar.gz) = 39485 Index: devel/libepoll-shim/pkg-descr =================================================================== --- devel/libepoll-shim/pkg-descr (revision 525806) +++ devel/libepoll-shim/pkg-descr (working copy) @@ -1 +1,5 @@ -epoll shim implemented using kevent. +epoll-shim is a small library that implements epoll on top of kqueue. It +has been successfully used to port libinput, libevdev, Wayland and more +software to FreeBSD. + +WWW: https://github.com/jiixyj/epoll-shim Index: devel/libepoll-shim/pkg-plist =================================================================== --- devel/libepoll-shim/pkg-plist (revision 525806) +++ devel/libepoll-shim/pkg-plist (working copy) @@ -1,7 +1,10 @@ include/libepoll-shim/sys/epoll.h +include/libepoll-shim/sys/eventfd.h include/libepoll-shim/sys/signalfd.h include/libepoll-shim/sys/timerfd.h -lib/libepoll-shim.a +lib/cmake/epoll-shim/epoll-shim-config.cmake +lib/cmake/epoll-shim/epoll-shim-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/epoll-shim/epoll-shim-targets.cmake lib/libepoll-shim.so lib/libepoll-shim.so.0 libdata/pkgconfig/epoll-shim.pc