You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
47 lines
1.5 KiB
Tcl
47 lines
1.5 KiB
Tcl
# -*- 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 python 1.0
|
|
|
|
set _name pyimgur
|
|
set _n [string index ${_name} 0]
|
|
|
|
name py-imgur
|
|
version 0.6.0
|
|
categories-append devel
|
|
platforms darwin
|
|
supported_archs noarch
|
|
license GPL-3
|
|
|
|
maintainers {petr @petrrr} openmaintainer
|
|
|
|
description The simple way of using Imgur
|
|
|
|
long_description ${description}
|
|
|
|
homepage https://pypi.python.org/pypi/${_name}/${version}
|
|
|
|
distname ${_name}-${version}
|
|
master_sites pypi:${_n}/${_name}/
|
|
|
|
checksums md5 9ad14695b0cd3f0ee613f4f16a49824e \
|
|
rmd160 1ca73c52b10ffd96d46967dd7534ed2a8e18e05a \
|
|
sha256 f776ca7f14663bd9ac14a1380db62c87ed32231d159d2d167ad1cb817dcb9144
|
|
|
|
# Note: Py3 compatibility is still not "officially" declared. However,
|
|
# the modules seems to work decently well with Py3 and its needed for as
|
|
# dependency.
|
|
python.versions 27 35 36 37 38
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_build-append port:py${python.version}-setuptools
|
|
|
|
depends_lib-append port:py${python.version}-requests
|
|
|
|
livecheck.type none
|
|
} else {
|
|
livecheck.type regex
|
|
livecheck.url https://pypi.python.org/pypi/${_name}/json
|
|
livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
|
|
}
|