FreeBSD Bugzilla – Attachment 181247 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.78 KB, created by
Andreas Sommer
on 2017-03-27 22:19:48 UTC
(
hide
)
Description:
Port skeleton
Filename:
MIME Type:
Creator:
Andreas Sommer
Created:
2017-03-27 22:19:48 UTC
Size:
3.78 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/Makefile.in ># 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 = 1490643114 >XSHA256 (HowardHinnant-date-2.1.0.35-3ab6510cab764c1a20926b1e8442af4c9e8a16b2_GH0.tar.gz) = 3b0e98ec702a2e53dda919b3fb77fa094c262829c2cda99813fe8cea43c79126 >XSIZE (HowardHinnant-date-2.1.0.35-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 >X# New versions aren't released often, so using the number of commits since >X# last release as a.b.c.NUMCOMMITS (see `git describe --tags ${GH_TAGNAME}`). >X# 35 = commit a little after 2.1.0 to have LICENSE file and fixed unit tests. >XPORTVERSION= 2.1.0.35 >XCATEGORIES= devel >X >XMAINTAINER= andreas.sommer87@googlemail.com >XCOMMENT= 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 >XGH_TAGNAME= 3ab6510cab764c1a20926b1e8442af4c9e8a16b2 >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 minimal tests >XTEST_ENV= ${MAKE_ENV} WRKDIR=${WRKDIR} >XTEST_USES= compiler:c++11-lib >XTEST_TEST_TARGET= test >XUSE_CXXSTD= c++11 >X >X.include <bsd.port.options.mk> >X >X.if ${PORT_OPTIONS:MTEST} >Xpost-extract: >X ${INSTALL_DATA} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile >X ${INSTALL_DATA} ${FILESDIR}/test-minimal.cpp ${WRKSRC}/test/test-minimal.cpp >X.endif >X >Xdo-install: >X @${MKDIR} ${STAGEDIR}${PREFIX}/include/hhdate >X ${INSTALL_DATA} ${WRKSRC}/date.h ${STAGEDIR}${PREFIX}/include/hhdate/ >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/Makefile.in >sed 's/^X//' >hhdate/files/Makefile.in << '383a5907242b5c63c61649e0d8cf1bed' >X# $FreeBSD$ >Xtest: >X @echo "Compiler in C++11 mode should compile minimal example" >X ${CXX} ${CXXFLAGS} test/test-minimal.cpp \ >X -o ${WRKDIR}/test-minimal && \ >X ${WRKDIR}/test-minimal >/dev/null >X >X.PHONY: test >383a5907242b5c63c61649e0d8cf1bed >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 >X#include "../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