git: 8bf1f947e2f1 - main - devel/hhdate: Build and install the shared library
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Jun 2023 18:51:18 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8bf1f947e2f1a38bc1ff5a9fd97a907c01ad64c3 commit 8bf1f947e2f1a38bc1ff5a9fd97a907c01ad64c3 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-06-05 18:38:22 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-06-05 18:46:53 +0000 devel/hhdate: Build and install the shared library - Bump PORTREVISION for package change --- devel/hhdate/Makefile | 32 +++++++++----------------------- devel/hhdate/pkg-plist | 9 +++++++++ 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/devel/hhdate/Makefile b/devel/hhdate/Makefile index 76a7236915b3..0b8cbf36677a 100644 --- a/devel/hhdate/Makefile +++ b/devel/hhdate/Makefile @@ -1,6 +1,7 @@ PORTNAME= hhdate PORTVERSION= 3.0.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= sunpoet@FreeBSD.org @@ -10,31 +11,16 @@ WWW= https://github.com/HowardHinnant/date LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USE_GITHUB= yes -GH_ACCOUNT= HowardHinnant -GH_PROJECT= date - -NO_ARCH= yes -NO_BUILD= yes - -PLIST_FILES= include/hhdate/date.h \ - include/hhdate/tz.h +LIB_DEPENDS= libcurl.so:ftp/curl -OPTIONS_DEFINE= TEST -TEST_DESC= Build with minimal tests -TEST_ENV= ${MAKE_ENV} WRKDIR=${WRKDIR} -TEST_USES= compiler:c++11-lib -TEST_TEST_TARGET= test -USE_CXXSTD= c++11 +USES= cmake compiler:c++17-lang -post-extract-TEST-on: - ${INSTALL_DATA} ${FILESDIR}/test-minimal.cpp ${WRKSRC}/test/test-minimal.cpp +CMAKE_OFF= COMPILE_WITH_C_LOCALE DISABLE_STRING_VIEW ENABLE_DATE_TESTING MANUAL_TZ_DB USE_SYSTEM_TZ_DB USE_TZ_DB_IN_DOT +CMAKE_ON= BUILD_SHARED_LIBS BUILD_TZ_LIB +USE_LDCONFIG= yes -do-install: - @${MKDIR} ${STAGEDIR}${PREFIX}/include/hhdate - ${INSTALL_DATA} ${WRKSRC}/include/date/date.h ${WRKSRC}/include/date/tz.h ${STAGEDIR}${PREFIX}/include/hhdate/ - -do-test: - cd ${WRKSRC}/test && ${CXX} ${CXXFLAGS} test-minimal.cpp -o test-minimal && ./test-minimal > /dev/null +USE_GITHUB= yes +GH_ACCOUNT= HowardHinnant +GH_PROJECT= date .include <bsd.port.mk> diff --git a/devel/hhdate/pkg-plist b/devel/hhdate/pkg-plist new file mode 100644 index 000000000000..9940c3eb0ca1 --- /dev/null +++ b/devel/hhdate/pkg-plist @@ -0,0 +1,9 @@ +include/date/date.h +include/date/tz.h +lib/cmake/date/dateConfig.cmake +lib/cmake/date/dateConfigVersion.cmake +lib/cmake/date/dateTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/date/dateTargets.cmake +lib/libdate-tz.so +lib/libdate-tz.so.3 +lib/libdate-tz.so.3.0.0