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 | PortGroup python 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | # github.setup should be performed before name directive, otherwise port name becomes incorrect |
---|
9 | github.setup remap PyCCN fc486a1f253e937fb7de40c2a8fc900ca23c166d |
---|
10 | checksums rmd160 18ac8a27c1f683ee28849f84a3212dc40c1e97de \ |
---|
11 | sha256 7b1a8f61e0379290c9c3043bfe0072a3fcb8aa9f70f9e53fafe612ba571ddb2d |
---|
12 | |
---|
13 | name py-pyccn |
---|
14 | homepage https://github.com/remap/PyCCN |
---|
15 | license BSD |
---|
16 | version 0.2 |
---|
17 | revision 0 |
---|
18 | |
---|
19 | python.versions 27 |
---|
20 | python.default_version 27 |
---|
21 | |
---|
22 | categories net ccnx python |
---|
23 | platforms darwin |
---|
24 | maintainers ucla.edu:alexander.afanasyev |
---|
25 | |
---|
26 | description PyCCN - CCN bindings for Python |
---|
27 | |
---|
28 | long_description A "thin" implementation, which supports Python \ |
---|
29 | objects corresponding to the major CCNx entities - Interest, ContentObject, and \ |
---|
30 | so on, as well as some support objects. The C code is mostly just responsible \ |
---|
31 | for marshaling data back and forth between the formats, though there are some \ |
---|
32 | useful functions for key generation/access included. |
---|
33 | |
---|
34 | if {${subport} != ${name}} { |
---|
35 | depends_lib-append port:ccnx |
---|
36 | |
---|
37 | use_autoreconf yes |
---|
38 | use_configure yes |
---|
39 | |
---|
40 | pre-configure { |
---|
41 | file mkdir "${worksrcpath}/build-aux" |
---|
42 | |
---|
43 | configure.env-append PYTHON_SITE_PKG=${python.pkgd} |
---|
44 | configure.python ${python.bin} |
---|
45 | } |
---|
46 | |
---|
47 | configure.args-append --with-ccn=${prefix} |
---|
48 | configure.env-append OPENSSL_INCLUDES=-I${prefix}/include \ |
---|
49 | OPENSSL_LDFLAGS=-L${prefix}/lib \ |
---|
50 | OPENSSL_LIBS="-lssl -lcrypto" |
---|
51 | |
---|
52 | build.cmd make |
---|
53 | build.target |
---|
54 | |
---|
55 | destroot.cmd make |
---|
56 | destroot.target install |
---|
57 | destroot.destdir "DESTDIR=${destroot}" |
---|
58 | } |
---|