You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
44 lines
1.3 KiB
Tcl
44 lines
1.3 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
|
|
|
|
name py-magic
|
|
python.rootname python-magic
|
|
version 0.4.22
|
|
revision 0
|
|
categories-append devel
|
|
platforms darwin
|
|
license MIT
|
|
supported_archs noarch
|
|
|
|
python.versions 27 35 36 37 38 39
|
|
|
|
maintainers {stromnov @stromnov} openmaintainer
|
|
|
|
description File type identification using libmagic
|
|
|
|
long_description Determines the mime type of a file using magic \
|
|
numbers. Can also operate on arbitrary data streams. \
|
|
Much like the Unix file(1) program.
|
|
|
|
homepage https://github.com/ahupp/python-magic
|
|
|
|
checksums rmd160 3a90368e41f15584565321408145ba481e6c3680 \
|
|
sha256 ca884349f2c92ce830e3f498c5b7c7051fe2942c3ee4332f65213b8ebff15a62 \
|
|
size 16964
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_build-append \
|
|
port:py${python.version}-setuptools
|
|
depends_lib-append port:file
|
|
|
|
patchfiles patch-magic_loader.py.diff
|
|
|
|
post-patch {
|
|
reinplace -E "s:__PREFIX__:${prefix}:g" ${worksrcpath}/magic/loader.py
|
|
}
|
|
|
|
livecheck.type none
|
|
}
|