[MacPorts] #35854: new port: py-pyccn (PyCCN - CCN bindings for Python)

MacPorts noreply at macports.org
Mon Aug 27 12:22:02 PDT 2012


#35854: new port: py-pyccn (PyCCN - CCN bindings for Python)
------------------------------------------+---------------------------------
 Reporter:  alexander.afanasyev@…         |       Owner:  macports-tickets@…                   
     Type:  submission                    |      Status:  new                                  
 Priority:  Normal                        |   Milestone:                                       
Component:  ports                         |     Version:  2.1.2                                
 Keywords:                                |        Port:  py-pyccn                             
------------------------------------------+---------------------------------
Changes (by ryandesign@…):

  * keywords:  ccnx python =>
 * cc: alexander.afanasyev@… (removed)
  * port:  => py-pyccn


Comment:

 Some observations:

  * When you add "use_autoreconf yes", MacPorts automatically adds
 autoconf, automake and libtool build dependencies; you don't need to do it
 manually. When you add your own dependencies, use -append so that you
 don't overwrite these, or else ensure "use_autoreconf yes" appears after
 you've defined your dependencies. Usually we write the portfile more or
 less in chronological order, so directives like "use_configure yes" and
 "use_autoreconf yes" that affect the configure phase go near your other
 configure-phase directives (configure.args, configure.env).
  * The revision should start at 0 not 1.
  * You should use the github portgroup to simplify the port.
  * configure.args and configure.env should be set in the global part of
 the portfile, not in a pre-configure block, unless you're referring to
 variables that aren't set yet, but in this case it doesn't appear that
 way.
  * You can append multiple things to configure.env (and other options) at
 once; just list them one after the other; you don't have to call
 "configure.env-append" multiple times.
  * You can usually set configure.python, instead of manually appending
 PYTHON=... to the environment.
  * The portfile's indentation is a bit disorganized; it's usually
 preferable to keep the portfile in two columns where possible. Often we
 have the second column at 20 characters, but for python ports you might
 want to move it over to 24 characters since "python.default_version" is
 already 22 characters long.

-- 
Ticket URL: <https://trac.macports.org/ticket/35854#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list