Skip to content

Commit

Permalink
py-minecraft-overviewer: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
mojca committed Feb 11, 2017
1 parent e99f1f6 commit d775393
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions python/py-minecraft-overviewer/Portfile
@@ -0,0 +1,55 @@
# -*- 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
PortGroup python 1.0

# 0.12.0 was the last release long time ago
set git_sha 4259c5e
set git_date 2016-12-25
set git_vers 0.12.0
python.rootname Minecraft-Overviewer

# github.setup overviewer Minecraft-Overviewer 0.12.0 v
github.setup overviewer ${python.rootname} ${git_sha}
version ${git_vers}-git-${git_date}
name py-minecraft-overviewer
platforms darwin
license GPL-3
maintainers mojca openmaintainer

description Render high-resolution maps of a Minecraft world with a Google Maps powered interface
long_description ${description}

homepage http://overviewer.org/

# We need either this Imaging library or Pil(low)
# http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz
set libname Pillow
set libvers 4.0.0
set libfile ${libname}-${libvers}${extract.suffix}
set mainfile ${python.rootname}-${git_sha}${extract.suffix}

master_sites-append pypi:P/${libname}:pil
distfiles-append ${libfile}:pil

checksums ${mainfile} \
rmd160 de2af61ce030a71311c4bafcc0e8e428371980ac \
sha256 934a305ad31b7f393ccec9410bcf1710f06423d8d2a77dbdc578d13522e954cd \
${libfile} \
rmd160 018edb6030851a4ae17eba1ec9e0b03933b4922b \
sha256 ee26d2d7e7e300f76ba7b796014c04011394d0c4a5ed9a288264a3e443abca50

python.versions 27

if {${name} ne ${subport}} {
build.env-append \
PIL_INCLUDE_DIR=${workpath}/${libname}-${libvers}/libImaging/

depends_build-append \
port:py${python.version}-numpy
depends_run-append \
port:py${python.version}-numpy

livecheck.type none
}

0 comments on commit d775393

Please sign in to comment.