Skip to content
Permalink
Browse files

libpostal-data: new port

  • Loading branch information
amake committed Feb 13, 2020
1 parent 1f55aae commit b26d1733270080eea5d4b54193e22abbf473bd99
Showing with 49 additions and 0 deletions.
  1. +49 −0 textproc/libpostal-data/Portfile
@@ -0,0 +1,49 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0

github.setup openvenues libpostal 1.0.0 v
name libpostal-data
categories textproc
platforms darwin
supported_archs noarch
maintainers {amake @amake} openmaintainer
license Permissive NoMirror

description Data files required by the libpostal port
long_description ${description}

github.tarball_from releases

distfiles parser${extract.suffix}:parser \
language_classifier${extract.suffix}:classifier \
libpostal_data${extract.suffix}:data

dist_subdir ${name}/${version}

checksums parser${extract.suffix} \
rmd160 ad8effd4ac1cc90ce0467604c4dec76b893719eb \
sha256 7194e9b0095f71aecb861269f675e50703e73e352a0b9d41c60f8d8ef5a03624 \
size 752483239 \
language_classifier${extract.suffix} \
rmd160 6271c131ffc69633956e8d343f85299ecf1cfe79 \
sha256 16a6ecb6d37e7e25d8fe514255666852ab9dbd4d9cc762f64cf1e15b4369a277 \
size 50334317 \
libpostal_data${extract.suffix} \
rmd160 c70e51b09bcda0ae01b6eaf21c17289c76a0915a \
sha256 d2ec50587bf3a7e46e18e5dcde32419134266f90774e3956f2c2f90d818ff9a1 \
size 10190140

use_configure no
worksrcdir .

build {}

destroot {
set target_dir ${destroot}${prefix}/share/libpostal
xinstall -d ${target_dir}
foreach item {address_expansions address_parser language_classifier numex transliteration} {
copy ${worksrcpath}/${item} ${target_dir}
}
}

0 comments on commit b26d173

Please sign in to comment.
You can’t perform that action at this time.