[90987] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Thu Mar 22 03:27:58 PDT 2012


On Mar 20, 2012, at 14:12, aronnax at macports.org wrote:

> Revision: 90987
>          https://trac.macports.org/changeset/90987
> Author:   aronnax at macports.org
> Date:     2012-03-20 12:12:02 -0700 (Tue, 20 Mar 2012)
> Log Message:
> -----------
> New port: py-novas_py
> 
> Added Paths:
> -----------
>    trunk/dports/python/py-novas_py/
>    trunk/dports/python/py-novas_py/Portfile
>    trunk/dports/python/py-novas_py/files/
>    trunk/dports/python/py-novas_py/files/patch-compat.py.diff
> 
> Added: trunk/dports/python/py-novas_py/Portfile
> ===================================================================
> --- trunk/dports/python/py-novas_py/Portfile	                        (rev 0)
> +++ trunk/dports/python/py-novas_py/Portfile	2012-03-20 19:12:02 UTC (rev 90987)
> @@ -0,0 +1,50 @@
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
> +# $Id$
> +
> +PortSystem              1.0
> +PortGroup               python 1.0
> +
> +name                    py-novas_py
> +version                 3.1
> +categories-append       science
> +platforms               darwin
> +maintainers             aronnax
> +description             Naval Observatory Vector Astrometry Software, \
> +                        Python Edition
> +long_description \
> +  Python ctypes wrapper for Naval Observatory Vector Astrometry Software \
> +  (NOVAS).  Provides extremely accurate astrometric coordinate conversions \
> +  and position of solar system objects.
> +
> +homepage                http://aa.usno.navy.mil/software/novas/novas_py/
> +master_sites            ${homepage}
> +distname                NOVAS_Py-${version}
> +checksums               md5     c8e57e9c33d6475a4fb170e9dec46119 \
> +                        sha1    8366d2a69708d1bd1a989de48d92eb789cb9b3a2 \
> +                        rmd160  304837953cc1b9917585ba7dacf8c404c3c9a816
> +
> +python.versions         25 26 27
> +python.default_version  27
> +
> +default_variants        +DE405
> +
> +variant DE405 description \
> +{Download and prepare a JPL DE405 solar system ephemeris for use with NOVAS} {
> +    post-build {
> +        system "cd ${worksrcpath} && ${build.cmd} build_ephemeris"
> +    }
> +    post-destroot {
> +        xinstall -d ${destroot}${prefix}/share/${subport}
> +        xinstall ${worksrcpath}/DE405.bin ${destroot}${prefix}/share/${subport}/
> +    }
> +}

The variants and default_variants setting need to go in a "if ${name} != ${subport}" block, otherwise we get:


--->  Building py-novas_py
DEBUG: Executing org.macports.build (py-novas_py)
DEBUG: Executing proc-post-org.macports.build-build-0
Error: Target org.macports.build returned: can't read "build.cmd": can't read "python.bin": can't read "python.version": no such variable
DEBUG: Backtrace: can't read "build.cmd": can't read "python.bin": can't read "python.version": no such variable
    while executing
"$post $targetname"






More information about the macports-dev mailing list