| 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 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | PortGroup python 1.0 |
|---|
| 7 | |
|---|
| 8 | PortGroup github 1.0 |
|---|
| 9 | |
|---|
| 10 | github.setup ThibaultReuille semanticnet 0.2.0 v |
|---|
| 11 | name py-semanticnet |
|---|
| 12 | categories-append devel |
|---|
| 13 | platforms darwin |
|---|
| 14 | license BSD |
|---|
| 15 | python.versions 27 34 |
|---|
| 16 | maintainers yahoo.fr:jul_bsd openmaintainer |
|---|
| 17 | description Small python library to create semantic graphs in JSON |
|---|
| 18 | long_description ${description} |
|---|
| 19 | |
|---|
| 20 | checksums rmd160 c33dc1e49382942aab14d020f502d9d01a93e4c4 \ |
|---|
| 21 | sha256 d0d1fedd2e37dd98a312c766f4b63473df4c005beb07aed01b673859815e8038 |
|---|
| 22 | |
|---|
| 23 | if {${name} ne ${subport}} { |
|---|
| 24 | depends_lib-append port:py${python.version}-networkx |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | post-patch { |
|---|
| 28 | foreach f [glob -directory ${worksrcpath}/examples *.py] { |
|---|
| 29 | reinplace "s|/usr/bin/env python|${python.bin}|" ${f} |
|---|
| 30 | } |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | post-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 | |
|---|