Ticket #46345: Portfile

File Portfile, 1.3 KB (added by jul_bsd@…, 10 years ago)
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$
3
4PortSystem          1.0
5
6PortGroup           python 1.0
7
8PortGroup           github 1.0
9
10github.setup        ThibaultReuille semanticnet 0.2.0 v
11name                py-semanticnet
12categories-append   devel
13platforms           darwin
14license             BSD
15python.versions     27 34
16maintainers         yahoo.fr:jul_bsd openmaintainer
17description         Small python library to create semantic graphs in JSON
18long_description    ${description}
19
20checksums           rmd160  c33dc1e49382942aab14d020f502d9d01a93e4c4 \
21                    sha256  d0d1fedd2e37dd98a312c766f4b63473df4c005beb07aed01b673859815e8038
22
23if {${name} ne ${subport}} {
24    depends_lib-append         port:py${python.version}-networkx
25}
26
27post-patch {
28    foreach f [glob -directory ${worksrcpath}/examples *.py] {
29        reinplace "s|/usr/bin/env python|${python.bin}|" ${f}
30    }
31}
32
33post-destroot {
34    xinstall -d ${destroot}${prefix}/share/${name}/doc
35    xinstall ${worksrcpath}/ABC.png ${destroot}${prefix}/share/${name}/doc
36    xinstall -d ${destroot}${prefix}/share/${name}/
37    copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}/
38    copy ${worksrcpath}/test ${destroot}${prefix}/share/${name}/
39}
40
41## Test need pytest
42#py.test -v ./test
43