Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 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 |
Alexander Afanasyev | 4c59013 | 2012-08-24 22:19:03 -0700 | [diff] [blame] | 2 | # $Id$ |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 3 | |
Alexander Afanasyev | 9291faa | 2012-08-27 15:00:11 -0700 | [diff] [blame] | 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 |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 12 | |
Alexander Afanasyev | 9291faa | 2012-08-27 15:00:11 -0700 | [diff] [blame] | 13 | name py-pyccn |
| 14 | homepage https://github.com/remap/PyCCN |
| 15 | license BSD |
| 16 | version 0.2 |
| 17 | revision 0 |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 18 | |
Alexander Afanasyev | 9291faa | 2012-08-27 15:00:11 -0700 | [diff] [blame] | 19 | python.versions 27 |
| 20 | python.default_version 27 |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 21 | |
Alexander Afanasyev | 9291faa | 2012-08-27 15:00:11 -0700 | [diff] [blame] | 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 | depends_lib-append port:ccnx |
| 35 | |
| 36 | use_autoreconf yes |
| 37 | use_configure yes |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 38 | |
| 39 | pre-configure { |
| 40 | file mkdir "${worksrcpath}/build-aux" |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 41 | |
Alexander Afanasyev | 9291faa | 2012-08-27 15:00:11 -0700 | [diff] [blame] | 42 | configure.env-append PYTHON_SITE_PKG=${python.pkgd} |
| 43 | configure.python ${python.bin} |
Alexander Afanasyev | 4c59013 | 2012-08-24 22:19:03 -0700 | [diff] [blame] | 44 | } |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 45 | |
Alexander Afanasyev | 9291faa | 2012-08-27 15:00:11 -0700 | [diff] [blame] | 46 | configure.args-append --with-ccn=${prefix} |
| 47 | configure.env-append OPENSSL_INCLUDES=-I${prefix}/include \ |
| 48 | OPENSSL_LDFLAGS=-L${prefix}/lib \ |
| 49 | OPENSSL_LIBS="-lssl -lcrypto" |
| 50 | |
| 51 | build.cmd make |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 52 | build.target |
| 53 | |
Alexander Afanasyev | 9291faa | 2012-08-27 15:00:11 -0700 | [diff] [blame] | 54 | destroot.cmd make |
| 55 | destroot.target install |
| 56 | destroot.destdir "DESTDIR=${destroot}" |
Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame] | 57 | |