aboutsummaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2019-09-05 16:07:00 +0000
committerKai Knoblich <kai@FreeBSD.org>2019-09-05 16:07:00 +0000
commit2f7722ce9c5a5232a713a89a53ed13c487ccc5ae (patch)
tree441aea08913189bc57426246cdbcaf602d1cc9ac /converters
parent8675fe333a10f63c3e8aba38430fc997210a0f0c (diff)
downloadports-2f7722ce9c5a5232a713a89a53ed13c487ccc5ae.tar.gz
ports-2f7722ce9c5a5232a713a89a53ed13c487ccc5ae.zip
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) MFH: 2019Q3
Notes
Notes: svn path=/head/; revision=511192
Diffstat (limited to 'converters')
-rw-r--r--converters/bibtexconv/Makefile25
-rw-r--r--converters/bibtexconv/distinfo6
-rw-r--r--converters/bibtexconv/pkg-plist21
3 files changed, 32 insertions, 20 deletions
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 <bsd.port.mk>
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