Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2019 14:35:45 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497961 - in head/misc/libpostal: . files
Message-ID:  <201904051435.x35EZjb6032622@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Fri Apr  5 14:35:45 2019
New Revision: 497961
URL: https://svnweb.freebsd.org/changeset/ports/497961

Log:
  misc/libpostal: Update to 1.1-alpha
  
  PR:		237026
  Submitted by:	Dmitri Goutnik <dg@syrec.org> (maintainer)

Modified:
  head/misc/libpostal/Makefile   (contents, props changed)
  head/misc/libpostal/distinfo   (contents, props changed)
  head/misc/libpostal/files/patch-src_Makefile.am   (contents, props changed)
  head/misc/libpostal/files/patch-src_libpostal__data   (contents, props changed)
  head/misc/libpostal/files/patch-test_Makefile.am   (contents, props changed)
  head/misc/libpostal/pkg-plist   (contents, props changed)

Modified: head/misc/libpostal/Makefile
==============================================================================
--- head/misc/libpostal/Makefile	Fri Apr  5 14:15:03 2019	(r497960)
+++ head/misc/libpostal/Makefile	Fri Apr  5 14:35:45 2019	(r497961)
@@ -2,7 +2,8 @@
 
 PORTNAME=	libpostal
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.0.0
+DISTVERSION=	1.1
+DISTVERSIONSUFFIX=	-alpha
 CATEGORIES=	misc geography
 
 MAINTAINER=	dg@syrec.org
@@ -18,10 +19,12 @@ BROKEN_powerpc64=	fails to compile: unrecognized comma
 RUN_DEPENDS=	curl:ftp/curl
 
 USES=		autoreconf libtool localbase
+
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--datadir=${LIBPOSTAL_DATADIR} \
-		--disable-data-download
+		--disable-data-download \
+		--disable-static
 USE_GITHUB=	yes
 GH_ACCOUNT=	openvenues
 TEST_TARGET=	check
@@ -34,7 +37,7 @@ SUB_LIST=	PORTNAME=${PORTNAME} \
 
 PORTDOCS=	README.md
 
-OPTIONS_DEFINE=	CBLAS DOCS SSE2 STATIC
+OPTIONS_DEFINE=	CBLAS DOCS SSE2
 CBLAS_DESC=	Build with CBLAS/OPENBLAS
 SSE2_DESC=	Enable SSE2 optimization
 OPTIONS_SUB=	yes
@@ -45,14 +48,12 @@ CBLAS_CONFIGURE_WITH=	cblas=${LOCALBASE}/lib/libopenbl
 
 SSE2_CONFIGURE_ENABLE=	sse2
 
-STATIC_CONFIGURE_ENABLE=	static
-
 pre-configure:
 	@cd ${WRKSRC} && ${SH} bootstrap.sh
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpostal.so
-	${INSTALL_PROGRAM} ${WRKSRC}/src/address_parser ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/src/address_parser ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKSRC}/src/libpostal ${STAGEDIR}${PREFIX}/bin
 
 post-install-DOCS-on:

Modified: head/misc/libpostal/distinfo
==============================================================================
--- head/misc/libpostal/distinfo	Fri Apr  5 14:15:03 2019	(r497960)
+++ head/misc/libpostal/distinfo	Fri Apr  5 14:35:45 2019	(r497961)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1513006366
-SHA256 (openvenues-libpostal-v1.0.0_GH0.tar.gz) = 3035af7e15b2894069753975d953fa15a86d968103913dbf8ce4b8aa26231644
-SIZE (openvenues-libpostal-v1.0.0_GH0.tar.gz) = 5537587
+TIMESTAMP = 1554382755
+SHA256 (openvenues-libpostal-v1.1-alpha_GH0.tar.gz) = c8a88eed70d8c09f68e1e69bcad35cb397e6ef11b3314e18a87b314c0a5b4e3a
+SIZE (openvenues-libpostal-v1.1-alpha_GH0.tar.gz) = 5602195

Modified: head/misc/libpostal/files/patch-src_Makefile.am
==============================================================================
--- head/misc/libpostal/files/patch-src_Makefile.am	Fri Apr  5 14:15:03 2019	(r497960)
+++ head/misc/libpostal/files/patch-src_Makefile.am	Fri Apr  5 14:35:45 2019	(r497961)
@@ -1,4 +1,4 @@
---- src/Makefile.am.orig	2017-04-07 21:40:27 UTC
+--- src/Makefile.am.orig	2018-03-11 07:55:53 UTC
 +++ src/Makefile.am
 @@ -1,11 +1,11 @@
  # Inherited from autoconf / user-specified
@@ -16,16 +16,16 @@
  # as it takes an unreasonably long time to compile with the optimizer on.
 @@ -14,7 +14,7 @@ CFLAGS =
  lib_LTLIBRARIES = libpostal.la
- libpostal_la_SOURCES = libpostal.c address_dictionary.c transliterate.c tokens.c trie.c trie_search.c trie_utils.c string_utils.c file_utils.c numex.c utf8proc/utf8proc.c cmp/cmp.c normalize.c features.c unicode_scripts.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c averaged_perceptron_tagger.c graph.c graph_builder.c language_classifier.c language_features.c logistic_regression.c logistic.c minibatch.c float_utils.c ngrams.c
+ libpostal_la_SOURCES = strndup.c libpostal.c expand.c address_dictionary.c transliterate.c tokens.c trie.c trie_search.c trie_utils.c string_utils.c file_utils.c utf8proc/utf8proc.c normalize.c numex.c features.c unicode_scripts.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c averaged_perceptron_tagger.c graph.c graph_builder.c language_classifier.c language_features.c logistic_regression.c logistic.c minibatch.c float_utils.c ngrams.c place.c near_dupe.c double_metaphone.c geohash/geohash.c dedupe.c string_similarity.c acronyms.c soft_tfidf.c jaccard.c
  libpostal_la_LIBADD = libscanner.la $(CBLAS_LIBS)
--libpostal_la_CFLAGS = $(CFLAGS_O2)
-+libpostal_la_CFLAGS = $(CFLAGS_BASE)
- libpostal_la_LDFLAGS = -version-info @LIBPOSTAL_SO_VERSION@
+-libpostal_la_CFLAGS = $(CFLAGS_O2) -D LIBPOSTAL_EXPORTS
++libpostal_la_CFLAGS = $(CFLAGS_BASE) -D LIBPOSTAL_EXPORTS
+ libpostal_la_LDFLAGS = -version-info @LIBPOSTAL_SO_VERSION@ -no-undefined
  
  dist_bin_SCRIPTS = libpostal_data
-@@ -30,37 +30,37 @@ noinst_PROGRAMS = libpostal bench addres
+@@ -30,42 +30,42 @@ noinst_PROGRAMS = libpostal bench addres
  
- libpostal_SOURCES = main.c json_encode.c
+ libpostal_SOURCES = strndup.c main.c json_encode.c file_utils.c string_utils.c utf8proc/utf8proc.c
  libpostal_LDADD = libpostal.la
 -libpostal_CFLAGS = $(CFLAGS_O3)
 +libpostal_CFLAGS = $(CFLAGS_BASE)
@@ -33,39 +33,45 @@
  bench_LDADD = libpostal.la libscanner.la $(CBLAS_LIBS)
 -bench_CFLAGS = $(CFLAGS_O3)
 +bench_CFLAGS = $(CFLAGS_BASE)
- address_parser_SOURCES = address_parser_cli.c json_encode.c linenoise/linenoise.c libpostal.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c graph.c graph_builder.c float_utils.c averaged_perceptron_tagger.c address_dictionary.c normalize.c features.c unicode_scripts.c transliterate.c trie.c trie_search.c trie_utils.c string_utils.c tokens.c file_utils.c utf8proc/utf8proc.c ngrams.c numex.c language_classifier.c language_features.c logistic_regression.c logistic.c minibatch.c
- address_parser_LDADD = libscanner.la $(CBLAS_LIBS)
+ address_parser_SOURCES = strndup.c address_parser_cli.c json_encode.c linenoise/linenoise.c string_utils.c utf8proc/utf8proc.c
+ address_parser_LDADD = libpostal.la $(CBLAS_LIBS)
 -address_parser_CFLAGS = $(CFLAGS_O3)
 +address_parser_CFLAGS = $(CFLAGS_BASE)
  
- build_address_dictionary_SOURCES = address_dictionary_builder.c address_dictionary.c file_utils.c string_utils.c trie.c trie_search.c utf8proc/utf8proc.c
+ near_dupe_test_SOURCES = strndup.c near_dupe_test.c string_utils.c utf8proc/utf8proc.c
+ near_dupe_test_LDADD = libpostal.la
+-near_dupe_test_CFLAGS = $(CFLAGS_O3)
++near_dupe_test_CFLAGS = $(CFLAGS_BASE)
+ 
+ 
+ build_address_dictionary_SOURCES = strndup.c address_dictionary_builder.c address_dictionary.c file_utils.c string_utils.c trie.c trie_search.c utf8proc/utf8proc.c
 -build_address_dictionary_CFLAGS = $(CFLAGS_O3)
 +build_address_dictionary_CFLAGS = $(CFLAGS_BASE)
- build_numex_table_SOURCES = numex_table_builder.c numex.c file_utils.c string_utils.c tokens.c trie.c trie_search.c utf8proc/utf8proc.c
+ build_numex_table_SOURCES = strndup.c numex_table_builder.c numex.c file_utils.c string_utils.c tokens.c trie.c trie_search.c utf8proc/utf8proc.c
 -build_numex_table_CFLAGS = $(CFLAGS_O3)
 +build_numex_table_CFLAGS = $(CFLAGS_BASE)
- build_trans_table_SOURCES = transliteration_table_builder.c transliterate.c trie.c trie_search.c file_utils.c string_utils.c utf8proc/utf8proc.c
+ build_trans_table_SOURCES = strndup.c transliteration_table_builder.c transliterate.c trie.c trie_search.c file_utils.c string_utils.c utf8proc/utf8proc.c
 -build_trans_table_CFLAGS = $(CFLAGS_O3)
 +build_trans_table_CFLAGS = $(CFLAGS_BASE)
- address_parser_train_SOURCES = address_parser_train.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c graph.c graph_builder.c float_utils.c averaged_perceptron_trainer.c crf_trainer.c crf_trainer_averaged_perceptron.c averaged_perceptron_tagger.c address_dictionary.c normalize.c features.c unicode_scripts.c transliterate.c trie.c trie_search.c trie_utils.c string_utils.c tokens.c file_utils.c shuffle.c utf8proc/utf8proc.c ngrams.c
+ address_parser_train_SOURCES = strndup.c address_parser_train.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c graph.c graph_builder.c float_utils.c averaged_perceptron_trainer.c crf_trainer.c crf_trainer_averaged_perceptron.c averaged_perceptron_tagger.c address_dictionary.c normalize.c numex.c features.c unicode_scripts.c transliterate.c trie.c trie_search.c trie_utils.c string_utils.c tokens.c file_utils.c shuffle.c utf8proc/utf8proc.c ngrams.c
  address_parser_train_LDADD = libscanner.la $(CBLAS_LIBS)
 -address_parser_train_CFLAGS = $(CFLAGS_O3)
 +address_parser_train_CFLAGS = $(CFLAGS_BASE)
  
- address_parser_test_SOURCES = address_parser_test.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c graph.c graph_builder.c float_utils.c averaged_perceptron_tagger.c address_dictionary.c normalize.c features.c unicode_scripts.c transliterate.c trie.c trie_search.c trie_utils.c string_utils.c tokens.c file_utils.c utf8proc/utf8proc.c ngrams.c
- address_parser_test_LDADD = libscanner.la  $(CBLAS_LIBS)
+ address_parser_test_SOURCES = strndup.c address_parser_test.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c graph.c graph_builder.c float_utils.c averaged_perceptron_tagger.c address_dictionary.c normalize.c numex.c features.c unicode_scripts.c transliterate.c trie.c trie_search.c trie_utils.c string_utils.c tokens.c file_utils.c utf8proc/utf8proc.c ngrams.c
+ address_parser_test_LDADD = libscanner.la $(CBLAS_LIBS)
 -address_parser_test_CFLAGS = $(CFLAGS_O3)
 +address_parser_test_CFLAGS = $(CFLAGS_BASE)
  
- language_classifier_train_SOURCES = language_classifier_train.c language_classifier.c language_features.c language_classifier_io.c logistic_regression_trainer.c logistic_regression.c logistic.c sparse_matrix.c sparse_matrix_utils.c features.c minibatch.c float_utils.c stochastic_gradient_descent.c ftrl.c regularization.c cartesian_product.c normalize.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c shuffle.c
+ language_classifier_train_SOURCES = strndup.c language_classifier_train.c language_classifier.c language_features.c language_classifier_io.c logistic_regression_trainer.c logistic_regression.c logistic.c sparse_matrix.c sparse_matrix_utils.c features.c minibatch.c float_utils.c stochastic_gradient_descent.c ftrl.c regularization.c cartesian_product.c normalize.c numex.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c shuffle.c
  language_classifier_train_LDADD = libscanner.la $(CBLAS_LIBS)
 -language_classifier_train_CFLAGS = $(CFLAGS_O3)
 +language_classifier_train_CFLAGS = $(CFLAGS_BASE)
- language_classifier_SOURCES = language_classifier_cli.c language_classifier.c language_features.c logistic_regression.c logistic.c sparse_matrix.c features.c minibatch.c float_utils.c normalize.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c
+ language_classifier_SOURCES = strndup.c language_classifier_cli.c language_classifier.c language_features.c logistic_regression.c logistic.c sparse_matrix.c features.c minibatch.c float_utils.c normalize.c numex.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c
  language_classifier_LDADD = libscanner.la $(CBLAS_LIBS)
 -language_classifier_CFLAGS = $(CFLAGS_O3)
 +language_classifier_CFLAGS = $(CFLAGS_BASE)
- language_classifier_test_SOURCES = language_classifier_test.c language_classifier.c language_classifier_io.c language_features.c logistic_regression.c logistic.c sparse_matrix.c features.c minibatch.c float_utils.c normalize.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c
+ language_classifier_test_SOURCES = strndup.c language_classifier_test.c language_classifier.c language_classifier_io.c language_features.c logistic_regression.c logistic.c sparse_matrix.c features.c minibatch.c float_utils.c normalize.c numex.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c
  language_classifier_test_LDADD = libscanner.la $(CBLAS_LIBS)
 -language_classifier_test_CFLAGS = $(CFLAGS_O3)
 +language_classifier_test_CFLAGS = $(CFLAGS_BASE)

Modified: head/misc/libpostal/files/patch-src_libpostal__data
==============================================================================
--- head/misc/libpostal/files/patch-src_libpostal__data	Fri Apr  5 14:15:03 2019	(r497960)
+++ head/misc/libpostal/files/patch-src_libpostal__data	Fri Apr  5 14:35:45 2019	(r497961)
@@ -1,6 +1,6 @@
---- src/libpostal_data.orig	2017-04-07 21:40:27 UTC
+--- src/libpostal_data.orig	2018-03-11 07:55:53 UTC
 +++ src/libpostal_data
-@@ -78,9 +78,9 @@ download_multipart() {
+@@ -83,9 +83,9 @@ download_multipart() {
          else
              max=$size;
          fi;
@@ -11,13 +11,3 @@
 +    done | xargs -0 -n 6 -P $NUM_WORKERS sh -c "$DOWNLOAD_PART" --
  
      > $local_path
- 
-@@ -176,6 +176,8 @@ if [ $COMMAND = "download" ]; then
-         download_file $LIBPOSTAL_LANG_CLASS_UPDATED_PATH $LIBPOSTAL_DATA_DIR $lang_class_s3_prefix $LIBPOSTAL_LANG_CLASS_FILE "language classifier data file" $LANGUAGE_CLASSIFIER_MODULE_DIR
-     fi
- 
-+    chown -R root:wheel $LIBPOSTAL_DATA_DIR
-+
-     if [ "$LIBPOSTAL_DATA_DIR_VERSION" != "$LIBPOSTAL_VERSION_STRING" ]; then
-         echo $LIBPOSTAL_VERSION_STRING > $LIBPOSTAL_DATA_VERSION_FILE;
-     fi

Modified: head/misc/libpostal/files/patch-test_Makefile.am
==============================================================================
--- head/misc/libpostal/files/patch-test_Makefile.am	Fri Apr  5 14:15:03 2019	(r497960)
+++ head/misc/libpostal/files/patch-test_Makefile.am	Fri Apr  5 14:35:45 2019	(r497961)
@@ -1,4 +1,4 @@
---- test/Makefile.am.orig	2017-04-07 21:40:27 UTC
+--- test/Makefile.am.orig	2018-03-11 07:55:53 UTC
 +++ test/Makefile.am
 @@ -1,9 +1,9 @@
 -CFLAGS_BASE = -Wfloat-equal -Wpointer-arith -std=gnu99 -DLIBPOSTAL_DATA_DIR='"$(datadir)/libpostal"' -g
@@ -14,7 +14,7 @@
  
 @@ -11,4 +11,4 @@ TESTS = test_libpostal
  noinst_PROGRAMS = test_libpostal
- test_libpostal_SOURCES = test.c test_expand.c test_parser.c test_transliterate.c test_numex.c test_trie.c test_string_utils.c test_crf_context.c
- test_libpostal_LDADD = ../src/libpostal.la $(CBLAS_LIBS)
+ test_libpostal_SOURCES = test.c test_expand.c test_parser.c test_transliterate.c test_numex.c test_trie.c test_string_utils.c test_crf_context.c ../src/strndup.c ../src/file_utils.c ../src/string_utils.c ../src/utf8proc/utf8proc.c ../src/trie.c ../src/trie_search.c ../src/transliterate.c ../src/numex.c ../src/features.c
+ test_libpostal_LDADD = ../src/libpostal.la ../src/libscanner.la $(CBLAS_LIBS)
 -test_libpostal_CFLAGS = $(CFLAGS_O3)
 +test_libpostal_CFLAGS = $(CFLAGS_BASE)

Modified: head/misc/libpostal/pkg-plist
==============================================================================
--- head/misc/libpostal/pkg-plist	Fri Apr  5 14:15:03 2019	(r497960)
+++ head/misc/libpostal/pkg-plist	Fri Apr  5 14:35:45 2019	(r497961)
@@ -2,7 +2,6 @@ bin/address_parser
 bin/libpostal
 bin/libpostal_data
 include/libpostal/libpostal.h
-%%STATIC%%lib/libpostal.a
 lib/libpostal.so
 lib/libpostal.so.1
 lib/libpostal.so.1.0.0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904051435.x35EZjb6032622>