From e9bba481171ad4cf6bf4443e73a40af0ba9a13da Mon Sep 17 00:00:00 2001 From: Kai Knoblich Date: Thu, 5 Sep 2019 17:38:22 +0000 Subject: [PATCH] MFH: r511192 converters/bibtexconv: Update to 1.1.17 * Place PLIST_FILES/PORTEXAMPLES entries into pkg-plist to make maintaining somewhat easier if new examples are added/removed in the future. [1] * Let the ports framework take care for the shebang fixes while I'm here. Notable changes since 1.1.11: * Switched to CMake for build * Various bugfixes and improvements * Addition of further examples [1] PR: 239840 Submitted by: dreibh@iem.uni-due.de (maintainer) Approved by: ports-secteam (joneum) --- converters/bibtexconv/Makefile | 25 ++++++++----------------- converters/bibtexconv/distinfo | 6 +++--- converters/bibtexconv/pkg-plist | 21 +++++++++++++++++++++ 3 files changed, 32 insertions(+), 20 deletions(-) create mode 100644 converters/bibtexconv/pkg-plist diff --git a/converters/bibtexconv/Makefile b/converters/bibtexconv/Makefile index 3c832e80bf2f..52c552eff12f 100644 --- a/converters/bibtexconv/Makefile +++ b/converters/bibtexconv/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= bibtexconv -PORTVERSION= 1.1.11 +PORTVERSION= 1.1.17 CATEGORIES= converters MASTER_SITES= https://www.uni-due.de/~be0001/bibtexconv/download/ @@ -10,29 +10,20 @@ MAINTAINER= dreibh@iem.uni-due.de COMMENT= BibTeX Converter LICENSE= GPLv3+ -LICENSE_FILE= ${WRKSRC}/COPYING.GPL +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcurl.so:ftp/curl -GNU_CONFIGURE= yes -USES= gmake ssl python:3.4+ +USES= bison cmake ssl python:3.4+ shebangfix tar:xz -PLIST_FILES= bin/bibtexconv bin/bibtexconv-odt bin/ietf2bibtex \ - man/man1/bibtexconv.1.gz man/man1/bibtexconv-odt.1.gz \ - man/man1/ietf2bibtex.1.gz +SHEBANG_FILES= src/ietf2bibtex -PORTEXAMPLES= ExampleReferences.bib ODT-Template.odt odt-example.export \ - web-example.export text-example.export +CMAKE_ARGS= -DCMAKE_INSTALL_DOCDIR=${EXAMPLESDIR} -DCMAKE_INSTALL_MANDIR=${MANPREFIX}/man OPTIONS_DEFINE= EXAMPLES -pre-configure: - @${REINPLACE_CMD} -e 's|install-data-am: install-dist_examplesDATA|install-data-am:|' \ - ${WRKSRC}/src/Makefile.in - @${REINPLACE_CMD} -e 's|/usr/bin/python3|${PYTHON_CMD}|' ${WRKSRC}/src/ietf2bibtex - -post-install-EXAMPLES-on: - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/src/,} ${STAGEDIR}${EXAMPLESDIR} +# Remove trailing subdir from CMAKE_INSTALL_DOCDIR +post-patch: + @${REINPLACE_CMD} -e 's|/examples||' ${WRKSRC}/src/CMakeLists.txt ${WRKSRC}/src/Images/CMakeLists.txt .include diff --git a/converters/bibtexconv/distinfo b/converters/bibtexconv/distinfo index 2117d95b274c..7d7ec7161bba 100644 --- a/converters/bibtexconv/distinfo +++ b/converters/bibtexconv/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1509634898 -SHA256 (bibtexconv-1.1.11.tar.gz) = 1240c3011718d9ba95c165dbf908eab871153530b70bca0ef74dc2b9664e83f1 -SIZE (bibtexconv-1.1.11.tar.gz) = 344966 +TIMESTAMP = 1566570616 +SHA256 (bibtexconv-1.1.17.tar.xz) = d48961aa40134b7497012edfae87d75d9139f29acb7d2f06552d384e8b730921 +SIZE (bibtexconv-1.1.17.tar.xz) = 175096 diff --git a/converters/bibtexconv/pkg-plist b/converters/bibtexconv/pkg-plist new file mode 100644 index 000000000000..9cc88b742ee8 --- /dev/null +++ b/converters/bibtexconv/pkg-plist @@ -0,0 +1,21 @@ +bin/bibtexconv +bin/bibtexconv-odt +bin/ietf2bibtex +man/man1/bibtexconv-odt.1.gz +man/man1/bibtexconv.1.gz +man/man1/ietf2bibtex.1.gz +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/authors-fix.list +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/authors.list +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ExampleReferences.bib +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/get-author-url +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Images/ListItem-Collapsed.dia +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Images/ListItem-Collapsed.svg +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Images/ListItem-Expanded.dia +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Images/ListItem-Expanded.svg +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Images/make-images +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/odt-example.export +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ODT-Template.odt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/publication-list-treeview.js +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text-example.export +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/web-example.export +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/yaml-example.export