Date: Fri, 14 May 2021 03:40:56 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f2366c5c265e - main - New port: textproc/xlnt: C++ xlsx library for reading/writing/manipulating spreadsheets Message-ID: <202105140340.14E3euLs002858@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=f2366c5c265ecc168e25b21524a456945b970495 commit f2366c5c265ecc168e25b21524a456945b970495 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-05-14 03:40:16 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2021-05-14 03:40:53 +0000 New port: textproc/xlnt: C++ xlsx library for reading/writing/manipulating spreadsheets --- textproc/Makefile | 1 + textproc/xlnt/Makefile | 49 +++++++++++++++++++++++++++++++ textproc/xlnt/distinfo | 5 ++++ textproc/xlnt/pkg-descr | 4 +++ textproc/xlnt/pkg-plist | 76 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 135 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index f5676f96be38..db07c3bccb64 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1913,6 +1913,7 @@ SUBDIR += xhtml1-xsd SUBDIR += xincluder SUBDIR += xlhtml + SUBDIR += xlnt SUBDIR += xlreader SUBDIR += xml-commons SUBDIR += xml-format diff --git a/textproc/xlnt/Makefile b/textproc/xlnt/Makefile new file mode 100644 index 000000000000..31b3fd4cf9eb --- /dev/null +++ b/textproc/xlnt/Makefile @@ -0,0 +1,49 @@ +PORTNAME= xlnt +DISTVERSIONPREFIX= v +DISTVERSION= 1.5.0-92 +DISTVERSIONSUFFIX= -g20f3dac2 +CATEGORIES= textproc devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ xlsx library for reading/writing/manipulating spreadsheets + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +FETCH_DEPENDS= git:devel/git + +USES= cmake compiler:c++14-lang + +USE_GITHUB= yes +GH_ACCOUNT= tfussell + +CMAKE_OFF= TESTS + +LIBSTUDXML_NAME= libstudxml +LIBSTUDXML_GIT_URL= https://git.codesynthesis.com/libstudxml/libstudxml.git +LIBSTUDXML_REV= e729667 + +DISTFILES= ${LIBSTUDXML_NAME}-${LIBSTUDXML_REV}${EXTRACT_SUFX} + +pre-fetch: + @if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${LIBSTUDXML_NAME}-${LIBSTUDXML_REV}${EXTRACT_SUFX}" ]; then \ + ${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \ + cd ${DISTDIR}/${DIST_SUBDIR} && \ + git clone -q ${LIBSTUDXML_GIT_URL} ${LIBSTUDXML_NAME}-${LIBSTUDXML_REV} && \ + (cd ${LIBSTUDXML_NAME}-${LIBSTUDXML_REV} && git reset -q --hard ${LIBSTUDXML_REV} && ${RM} -r .git) && \ + ${FIND} ${LIBSTUDXML_NAME}-${LIBSTUDXML_REV} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \ + ${FIND} ${LIBSTUDXML_NAME}-${LIBSTUDXML_REV} -print0 | LC_ALL=C ${SORT} -z | \ + ${TAR} czf ${LIBSTUDXML_NAME}-${LIBSTUDXML_REV}${EXTRACT_SUFX} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T - && \ + ${RM} -r ${LIBSTUDXML_NAME}-${LIBSTUDXML_REV}; \ + fi + +post-extract: + @${RLN} ${WRKDIR}/${LIBSTUDXML_NAME}-${LIBSTUDXML_REV}/libstudxml ${WRKSRC}/third-party/libstudxml/libstudxml + +do-test: + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DTESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test + +.include <bsd.port.mk> diff --git a/textproc/xlnt/distinfo b/textproc/xlnt/distinfo new file mode 100644 index 000000000000..5e107939fdae --- /dev/null +++ b/textproc/xlnt/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1620961880 +SHA256 (libstudxml-e729667.tar.gz) = 323ea20c8d2005026e7ebe679252b7f3e37216958e716cad05a7feb54865ae64 +SIZE (libstudxml-e729667.tar.gz) = 145586 +SHA256 (tfussell-xlnt-v1.5.0-92-g20f3dac2_GH0.tar.gz) = 6105f00200e45ab35f526e8a4f991192c6f5a21570b631da7a60ac4eea659215 +SIZE (tfussell-xlnt-v1.5.0-92-g20f3dac2_GH0.tar.gz) = 3736093 diff --git a/textproc/xlnt/pkg-descr b/textproc/xlnt/pkg-descr new file mode 100644 index 000000000000..1fe425596feb --- /dev/null +++ b/textproc/xlnt/pkg-descr @@ -0,0 +1,4 @@ +xlnt is a modern C++ library for manipulating spreadsheets in memory and +reading/writing them from/to XLSX files as described in ECMA 376 4th edition. + +WWW: https://github.com/tfussell/xlnt diff --git a/textproc/xlnt/pkg-plist b/textproc/xlnt/pkg-plist new file mode 100644 index 000000000000..376c8ec72e1e --- /dev/null +++ b/textproc/xlnt/pkg-plist @@ -0,0 +1,76 @@ +include/xlnt/cell/cell.hpp +include/xlnt/cell/cell_reference.hpp +include/xlnt/cell/cell_type.hpp +include/xlnt/cell/comment.hpp +include/xlnt/cell/hyperlink.hpp +include/xlnt/cell/index_types.hpp +include/xlnt/cell/phonetic_run.hpp +include/xlnt/cell/rich_text.hpp +include/xlnt/cell/rich_text_run.hpp +include/xlnt/drawing/spreadsheet_drawing.hpp +include/xlnt/packaging/ext_list.hpp +include/xlnt/packaging/manifest.hpp +include/xlnt/packaging/relationship.hpp +include/xlnt/packaging/uri.hpp +include/xlnt/styles/alignment.hpp +include/xlnt/styles/border.hpp +include/xlnt/styles/color.hpp +include/xlnt/styles/conditional_format.hpp +include/xlnt/styles/fill.hpp +include/xlnt/styles/font.hpp +include/xlnt/styles/format.hpp +include/xlnt/styles/number_format.hpp +include/xlnt/styles/protection.hpp +include/xlnt/styles/style.hpp +include/xlnt/utils/calendar.hpp +include/xlnt/utils/date.hpp +include/xlnt/utils/datetime.hpp +include/xlnt/utils/exceptions.hpp +include/xlnt/utils/numeric.hpp +include/xlnt/utils/optional.hpp +include/xlnt/utils/path.hpp +include/xlnt/utils/scoped_enum_hash.hpp +include/xlnt/utils/time.hpp +include/xlnt/utils/timedelta.hpp +include/xlnt/utils/variant.hpp +include/xlnt/workbook/calculation_properties.hpp +include/xlnt/workbook/document_security.hpp +include/xlnt/workbook/external_book.hpp +include/xlnt/workbook/metadata_property.hpp +include/xlnt/workbook/named_range.hpp +include/xlnt/workbook/streaming_workbook_reader.hpp +include/xlnt/workbook/streaming_workbook_writer.hpp +include/xlnt/workbook/theme.hpp +include/xlnt/workbook/workbook.hpp +include/xlnt/workbook/workbook_view.hpp +include/xlnt/workbook/worksheet_iterator.hpp +include/xlnt/worksheet/cell_iterator.hpp +include/xlnt/worksheet/cell_vector.hpp +include/xlnt/worksheet/column_properties.hpp +include/xlnt/worksheet/header_footer.hpp +include/xlnt/worksheet/major_order.hpp +include/xlnt/worksheet/page_margins.hpp +include/xlnt/worksheet/page_setup.hpp +include/xlnt/worksheet/pane.hpp +include/xlnt/worksheet/phonetic_pr.hpp +include/xlnt/worksheet/print_options.hpp +include/xlnt/worksheet/range.hpp +include/xlnt/worksheet/range_iterator.hpp +include/xlnt/worksheet/range_reference.hpp +include/xlnt/worksheet/row_properties.hpp +include/xlnt/worksheet/selection.hpp +include/xlnt/worksheet/sheet_format_properties.hpp +include/xlnt/worksheet/sheet_pr.hpp +include/xlnt/worksheet/sheet_protection.hpp +include/xlnt/worksheet/sheet_view.hpp +include/xlnt/worksheet/worksheet.hpp +include/xlnt/xlnt.hpp +include/xlnt/xlnt_config.hpp +lib/cmake/xlnt/XlntConfig.cmake +lib/cmake/xlnt/XlntConfigVersion.cmake +lib/cmake/xlnt/XlntTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/xlnt/XlntTargets.cmake +lib/libxlnt.so +lib/libxlnt.so.1.5.0 +libdata/pkgconfig/xlnt.pc +man/man3/xlnt.3.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105140340.14E3euLs002858>