Skip to content

Commit

Permalink
libpostal-data: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
amake committed Feb 14, 2020
1 parent 1f55aae commit b26d173
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions 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

This comment has been minimized.

Copy link
@ryandesign

ryandesign Mar 27, 2020

Contributor

I'm curious why we aren't allowed to mirror these files.

This comment has been minimized.

Copy link
@amake

amake Mar 27, 2020

Author Contributor

Not disallowed; they’re just very big and, at least in the past, often changing. But if it’s OK to mirror then we can change it.

This comment has been minimized.

Copy link
@ryandesign

ryandesign Mar 27, 2020

Contributor

Looks like this release from April 2017 is still the latest, so it doesn't look like it's changing frequently anymore. Disabling mirroring means that older systems that can't talk to GitHub servers (OS X 10.8 and earlier) cannot install this.

This comment has been minimized.

Copy link
@amake

amake Mar 28, 2020

Author Contributor

OK. If I remove NoMirror do I also need to bump the revision to get the mirrors to pick it up?

This comment has been minimized.

Copy link
@ryandesign

ryandesign Mar 28, 2020

Contributor

Nope, please only change the revision if you are changing the files that get installed on user systems or are changing library or runtime dependencies.


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.