FreeBSD Bugzilla – Attachment 181087 Details for
Bug 218030
[New port] devel/hhdate: A date and time library based on the C++11 (and beyond) <chrono> header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Port skeleton
hhdate.shar (text/plain), 3.85 KB, created by
Andreas Sommer
on 2017-03-23 09:20:41 UTC
(
hide
)
Description:
Port skeleton
Filename:
MIME Type:
Creator:
Andreas Sommer
Created:
2017-03-23 09:20:41 UTC
Size:
3.85 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># hhdate/ ># hhdate/distinfo ># hhdate/Makefile ># hhdate/pkg-descr ># hhdate/files ># hhdate/files/test-minimal.cpp ># hhdate/configure ># >echo c - hhdate/ >mkdir -p hhdate/ > /dev/null 2>&1 >echo x - hhdate/distinfo >sed 's/^X//' >hhdate/distinfo << '1cb41fc7f1d11f2448a7b94a6cafdc6c' >XTIMESTAMP = 1490260118 >XSHA256 (HowardHinnant-date-2.1.0-3ab6510cab764c1a20926b1e8442af4c9e8a16b2_GH0.tar.gz) = 3b0e98ec702a2e53dda919b3fb77fa094c262829c2cda99813fe8cea43c79126 >XSIZE (HowardHinnant-date-2.1.0-3ab6510cab764c1a20926b1e8442af4c9e8a16b2_GH0.tar.gz) = 776175 >1cb41fc7f1d11f2448a7b94a6cafdc6c >echo x - hhdate/Makefile >sed 's/^X//' >hhdate/Makefile << 'ffb71781428c15a43ab1e51ef52734db' >X# Created by: Andreas Sommer <andreas.sommer87@googlemail.com> >X# $FreeBSD$ >X >XPORTNAME= hhdate >XCATEGORIES= devel >XPORTVERSION= 2.1.0 >X# New versions aren't released often, so using the number of commits since >X# last release as PORTREVISION (see `git describe --tags ${GH_TAGNAME}`). >X# 35 = commit a little after 2.1.0 to have LICENSE file and fixed unit tests. >XPORTREVISION= 35 >XGH_TAGNAME= 3ab6510cab764c1a20926b1e8442af4c9e8a16b2 >X >XMAINTAINER= andreas.sommer87@googlemail.com >XCOMMENT= A date and time library based on the C++11 (and beyond) <chrono> header >X >XLICENSE= MIT >XLICENSE_FILE= ${WRKSRC}/LICENSE.txt >X >XUSE_GITHUB= yes >XGH_ACCOUNT= HowardHinnant >XGH_PROJECT= date >X >XNO_ARCH= yes >XNO_BUILD= yes >X >XPLIST_FILES= include/hhdate/date.h >X >X# TODO add timezone support when interest grows >XOPTIONS_DEFINE= TEST >XTEST_DESC= Build with tests >XTEST_USES= compiler:c++14-lang >XTEST_BUILD_DEPENDS= ${LOCALBASE}/bin/clang39:devel/llvm39 >X >Xdo-install: >X @${MKDIR} ${STAGEDIR}${PREFIX}/include/hhdate >X ${INSTALL_DATA} ${WRKSRC}/date.h ${STAGEDIR}${PREFIX}/include/hhdate/ >X >Xdo-test: >X @echo "C++14 compiler (chosen: ${CXX}) should compile minimal example" >X ${CXX} -std=c++14 -stdlib=libc++ ${CXXFLAGS} ${FILESDIR}/test-minimal.cpp \ >X -I${STAGEDIR}${PREFIX}/include -o ${WRKDIR}/test-minimal && \ >X ${WRKDIR}/test-minimal >/dev/null >X >X @echo "System compiler in C++11 mode should compile minimal example" >X clang++ -std=c++11 -stdlib=libc++ ${FILESDIR}/test-minimal.cpp \ >X -I${STAGEDIR}${PREFIX}/include -o ${WRKDIR}/test-minimal && \ >X ${WRKDIR}/test-minimal >/dev/null >X >X @echo "Run unit tests with modern compiler (not maintained for older ones)" >X @cd ${WRKSRC}/test && ${SETENV} CXX="${LOCALBASE}/bin/clang++39" \ >X CXXFLAGS="${CXXFLAGS}" CXX_LANG=c++14 ./testit >X >X.include <bsd.port.mk> >ffb71781428c15a43ab1e51ef52734db >echo x - hhdate/pkg-descr >sed 's/^X//' >hhdate/pkg-descr << 'ea75fa5d97a8c23fc214a20960e04360' >XA date and time library based on the C++11 (and beyond) <chrono> header >X >XWWW: https://github.com/HowardHinnant/date >ea75fa5d97a8c23fc214a20960e04360 >echo c - hhdate/files >mkdir -p hhdate/files > /dev/null 2>&1 >echo x - hhdate/files/test-minimal.cpp >sed 's/^X//' >hhdate/files/test-minimal.cpp << '8bb10a909ddba033cee6827907b0b3c7' >X// Small example taken from https://howardhinnant.github.io/date/date.html. >X// Only for testing installed header shortly. >X#include <iostream> >X#include <hhdate/date.h> >X >Xint main() >X{ >X using namespace std; >X using namespace date; >X for (auto m = 1; m <= 12; ++m) >X { >X auto meet = year_month_day{m/fri[1]/2015}; >X cout << meet << '\n'; >X meet = meet.year()/meet.month()/(meet.day()+weeks{2}); >X cout << meet << '\n'; >X meet = meet.year()/meet.month()/(meet.day()+weeks{2}); >X if (meet.ok()) >X cout << meet << '\n'; >X } >X} >8bb10a909ddba033cee6827907b0b3c7 >echo c - hhdate/configure >mkdir -p hhdate/configure > /dev/null 2>&1 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 218030
:
181087
|
181088
|
181089
|
181243
|
181244
|
181247
|
181248