On 08/26/2013 09:19 AM, Devan Franchini (twitch153) wrote:
>  
> -src_prepare() {
> +pkg_pretend() {
> +
> +     local ver=4.6.0
> +     local msg="${PN} needs at least GCC ${ver} set to compile."
> +
> +     if ! version_is_at_least ${ver} $(gcc-fullversion); then
> +             eerror ${msg}
> +             die ${msg}
> +     fi
> +}
>  
> -     version_is_at_least 4.6.0 $(gcc-fullversion) || die "${PN} needs 
> >=gcc-4.6.0 set to compile."
> +src_prepare() {
>  


This can break binpkgs, use
[[ ${MERGE_TYPE} != binary ]]

Reply via email to