[102736] users/cal/ports/emulators
Ryan Schmidt
ryandesign at macports.org
Thu Feb 7 15:29:07 PST 2013
On Feb 7, 2013, at 15:00, cal at macports.org wrote:
> Revision: 102736
> https://trac.macports.org/changeset/102736
> Author: cal at macports.org
> Date: 2013-02-07 13:00:23 -0800 (Thu, 07 Feb 2013)
> Log Message:
> -----------
> py-virtinst: change to python portgroup, update to 0.600.3, fix livecheck
>
> Modified Paths:
> --------------
> users/cal/ports/emulators/py-virtinst/Portfile
>
> Added Paths:
> -----------
> users/cal/ports/emulators/py-virtinst/
>
> Removed Paths:
> -------------
> users/cal/ports/emulators/py27-virtinst/
>
> Property Changed:
> ----------------
> users/cal/ports/emulators/py-virtinst/Portfile
>
> Modified: users/cal/ports/emulators/py-virtinst/Portfile
> ===================================================================
> --- users/cal/ports/emulators/py27-virtinst/Portfile 2013-02-07 17:56:54 UTC (rev 102719)
> +++ users/cal/ports/emulators/py-virtinst/Portfile 2013-02-07 21:00:23 UTC (rev 102736)
> @@ -2,15 +2,17 @@
> # $Id $
>
> PortSystem 1.0
> -PortGroup python27 1.0
> +PortGroup python 1.0
>
> -name py27-virtinst
> -version 0.600.0
> +name py-virtinst
> +version 0.600.3
> +python.versions 27 32 33
> categories emulators python
> platforms darwin
> -license GPL
> +license GPL-2+
> maintainers cal openmaintainer
>
> +
> description Virt Install is a command line tool which provides an easy way to \
> provision operating systems into virtual machines.
> long_description ${description} It also provides an API to the virt-manager \
> @@ -18,9 +20,15 @@
> homepage http://virt-manager.org/
> master_sites http://virt-manager.org/download/sources/virtinst/
> distname virtinst-${version}
> -checksums rmd160 6efb6ce5ad6d6c4d5ffbc95e1695ac125d1ee249 \
> - sha256 92dc8f14d31ffb0e79479fab982203027c45c83d25e73af7627f589f92ca797a
> +checksums rmd160 e6fedfaaf40bdbf29b18df5381efe875908d4149 \
> + sha256 e41efad3e3c798129af0cec92c1abd6c7e209b5dd4d311acdef0fc1a2daf5006
>
> -depends_lib-append port:libvirt \
> - port:py27-urlgrabber
> +depends_lib-append port:libvirt
>
> +if {${name} != ${subport}} {
> + depends_lib-append port:py${python.version}-urlgrabber
> +} else {
> + livecheck.type regex
> + livecheck.url ${master_sites}
> + livecheck.regex "virtinst-(\\d+(?:\\.\\d+)*)[quotemeta ${extract.suffix}]"
> +}
The libvirt dependency should also be added only inside the "if {${name} != ${subport}}" block.
More information about the macports-dev
mailing list