From e96d90466efdf643072de968d1f5858794e9ee2e Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Sun, 6 Jan 2019 09:16:32 +0000 Subject: [PATCH] textproc/bibutils: Update to 6.6 PR: 230352 Submitted by: ndowens@yahoo.com (based on) --- textproc/bibutils/Makefile | 23 +++++++++---------- textproc/bibutils/distinfo | 5 ++-- .../bibutils/files/patch-test_intlist__test.c | 11 +++++++++ 3 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 textproc/bibutils/files/patch-test_intlist__test.c diff --git a/textproc/bibutils/Makefile b/textproc/bibutils/Makefile index b55ca2f9ecbc..4a167e336028 100644 --- a/textproc/bibutils/Makefile +++ b/textproc/bibutils/Makefile @@ -1,29 +1,28 @@ # $FreeBSD$ PORTNAME= bibutils -PORTVERSION= 5.0 +PORTVERSION= 6.6 CATEGORIES= textproc MASTER_SITES= SF/${PORTNAME}/ -DISTNAME= ${PORTNAME}_${PORTVERSION}_src +DISTNAME= ${PORTNAME}_${PORTVERSION} +EXTRACT_SUFX= _src.tgz MAINTAINER= ports@FreeBSD.org COMMENT= Program set interconverts between various bibliography formats LICENSE= GPLv2 -USES= gmake tar:tgz - -WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION} +USES= gmake HAS_CONFIGURE= yes +TEST_TARGET= test -test: all - cd ${WRKSRC}/test && ${MAKE_CMD} all test - -BINARIES= bib2xml biblatex2xml copac2xml ebi2xml end2xml endx2xml \ - isi2xml med2xml modsclean ris2xml wordbib2xml xml2ads \ - xml2bib xml2end xml2isi xml2ris xml2wordbib - +BINARIES= bib2xml bibdiff biblatex2xml copac2xml ebi2xml end2xml endx2xml \ + isi2xml med2xml modsclean nbib2xml ris2xml wordbib2xml xml2ads \ + xml2bib xml2end xml2isi xml2nbib xml2ris xml2wordbib PLIST_FILES= ${BINARIES:S,^,bin/,} +post-install: + cd ${STAGEDIR}${PREFIX}/bin && ${STRIP_CMD} ${BINARIES} + .include diff --git a/textproc/bibutils/distinfo b/textproc/bibutils/distinfo index e4ee4a233c59..4d70c1480467 100644 --- a/textproc/bibutils/distinfo +++ b/textproc/bibutils/distinfo @@ -1,2 +1,3 @@ -SHA256 (bibutils_5.0_src.tgz) = 0a3f1dfc8f3ee98c2f6507e68358678fe355c5a3b3d0157dcab5d4fa2e6c662b -SIZE (bibutils_5.0_src.tgz) = 458532 +TIMESTAMP = 1533394345 +SHA256 (bibutils_6.6_src.tgz) = fa9ef12e6ecf756183a7ee0442552d58ceba973067342b6efbd4d967b5841cff +SIZE (bibutils_6.6_src.tgz) = 579564 diff --git a/textproc/bibutils/files/patch-test_intlist__test.c b/textproc/bibutils/files/patch-test_intlist__test.c new file mode 100644 index 000000000000..ba5fbe6d4807 --- /dev/null +++ b/textproc/bibutils/files/patch-test_intlist__test.c @@ -0,0 +1,11 @@ +--- test/intlist_test.c.orig 2019-01-06 09:13:07 UTC ++++ test/intlist_test.c +@@ -275,7 +275,7 @@ test_randomize( void ) + check_len( &a, 100 ); + for ( i=0; i<99; ++i ) { + m = intlist_find( &a, i ); +- check( (m>=0&&m<99), "intlist_randomize() shouldn't remove values" ); ++ check( (m>=0&&m<=99), "intlist_randomize() shouldn't remove values" ); + } + + intlist_free( &a );