source: trunk/dports/python/py-magic/Portfile

Last change on this file was 150008, checked in by raimue@…, 13 months ago

python/py-magic:
Ensure use of libmagic from the same prefix as this installation by hardcoding the path

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- 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
2# $Id: Portfile 150008 2016-07-08 13:33:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-magic
8version             0.4.12
9revision            1
10categories-append   devel
11platforms           darwin
12license             MIT
13supported_archs     noarch
14
15python.versions     27 34 35
16
17maintainers         stromnov openmaintainer
18
19description         File type identification using libmagic
20
21long_description    Determines the mime type of a file using magic \
22                    numbers. Can also operate on arbitrary data streams. \
23                    Much like the Unix file(1) program.
24
25homepage            http://github.com/ahupp/python-magic
26master_sites        pypi:p/python-magic
27
28distname            python-magic-${version}
29
30checksums           rmd160  069b43895b328efffcfebba0de9d5c82d89613f7 \
31                    sha256  a04b20900100884d4fce40a767182a16fcb9d10756c67cdc21f5fa610b7c9d3c
32
33patchfiles          patch-prefix-lib.diff
34
35post-patch {
36    reinplace -E "s:__PREFIX__:${prefix}:g" ${worksrcpath}/magic.py
37}
38
39if {${name} ne ${subport}} {
40    depends_build-append \
41                        port:py${python.version}-setuptools
42    depends_lib-append  port:file
43
44    livecheck.type      none
45} else {
46    livecheck.name      python-magic
47    livecheck.type      pypi
48}
Note: See TracBrowser for help on using the repository browser.