blob: 15e577902131d80d3d7afc9d40d264017163a719 [file] [log] [blame]
Alexander Afanasyevc08ab172012-08-24 18:11:18 -07001# -*- 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 Afanasyev4c590132012-08-24 22:19:03 -07002# $Id$
Alexander Afanasyevc08ab172012-08-24 18:11:18 -07003
Alexander Afanasyev9291faa2012-08-27 15:00:11 -07004PortSystem 1.0
5PortGroup python 1.0
Alexander Afanasyev935dfeb2013-07-09 19:07:10 -07006PortGroup github 1.0
Alexander Afanasyevaa5f4002013-04-18 12:49:54 -07007
Alexander Afanasyev935dfeb2013-07-09 19:07:10 -07008github.setup named-data PyCCN v0.3
9checksums rmd160 9a14b55a30b6ab762dfb28035d468bfab116b765 \
10 sha256 c17f9cb6aa1670f967e8190a3ebdc98e594429feb7f447b252c82f96a75d6676
Alexander Afanasyev089e7ec2013-04-30 16:49:30 -070011
Alexander Afanasyev935dfeb2013-07-09 19:07:10 -070012name py-ndn
13homepage https://github.com/named-data/py-ndn
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070014license BSD
Alexander Afanasyev935dfeb2013-07-09 19:07:10 -070015version 0.3
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070016
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070017python.versions 27
18python.default_version 27
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070019
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070020categories net ccnx python
21platforms darwin
22maintainers ucla.edu:alexander.afanasyev
23
Alexander Afanasyev935dfeb2013-07-09 19:07:10 -070024description py-ndn - NDN bindings for Python
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070025
26long_description A "thin" implementation, which supports Python \
Alexander Afanasyev935dfeb2013-07-09 19:07:10 -070027 objects corresponding to the major NDNx entities - Interest, ContentObject, and \
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070028 so on, as well as some support objects. The C code is mostly just responsible \
29 for marshaling data back and forth between the formats, though there are some \
30 useful functions for key generation/access included.
31
32depends_lib-append port:ccnx
33
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070034use_configure yes
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070035
Alexander Afanasyev089e7ec2013-04-30 16:49:30 -070036configure.cmd ./waf configure
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070037
Alexander Afanasyev089e7ec2013-04-30 16:49:30 -070038pre-configure {
39 configure.env-append PYTHONDIR=${python.pkgd} \
40 PYTHONARCHDIR=${python.pkgd}
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070041 configure.python ${python.bin}
Alexander Afanasyev4c590132012-08-24 22:19:03 -070042}
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070043
Alexander Afanasyev935dfeb2013-07-09 19:07:10 -070044configure.args-append --ndnx=${prefix}
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070045
Alexander Afanasyev089e7ec2013-04-30 16:49:30 -070046build.cmd ./waf
47build.target build
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070048
Alexander Afanasyev089e7ec2013-04-30 16:49:30 -070049destroot.cmd ./waf
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070050destroot.target install
Alexander Afanasyev089e7ec2013-04-30 16:49:30 -070051destroot.destdir --destdir=${destroot}
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070052