Re: Checking if a given port is installed in pre-fetch
On Mar 2, 2008, at 2:09 PM, Adam Mercer wrote: On Sun, Mar 2, 2008 at 12:16 PM, Daniel J. Luke [EMAIL PROTECTED] wrote: You can do almost anything from within a portfile, but there are lots of things that you maybe shouldn't. What are you trying to accomplish? I want to upgrade the science/geos port to 3.0.0 but matplotlib-basemap requires geos-2.2.3 and will not work with geos-3.0.0. Unfortunately it doesn't appear possible to install both geos-2.2.3 and geos-3.0.0 at the the same time, so I was wondering if there was a way that I could make a port for each version and mark them as conflicting? There's not a built-in way to do this (but it might be a nice base/ feature), and I don't know of a really good way of doing it (you could probably check for an installed binary in a pre-fetch action and output an appropriate ui_error message). Ideally, it would be good to modify one or both of the ports so that they can both be installed (or get things patched/updated so they can work with the newer version of the port). As an alternative, having the science/geos port updated and adding a new port for the old version that matplotlib-basemap uses might be ok (especially if it's unlikely that someone might want both ports). -- Daniel J. Luke ++ | * [EMAIL PROTECTED] * | | *-- http://www.geeklair.net -* | ++ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | ++ PGP.sig Description: This is a digitally signed message part ___ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
Re: Checking if a given port is installed in pre-fetch
Daniel J. Luke wrote: There's not a built-in way to do this (but it might be a nice base/ feature), and I don't know of a really good way of doing it (you could probably check for an installed binary in a pre-fetch action and output an appropriate ui_error message). Which would issue a warning in tracemode or make it fail at all. Rainer ___ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
Re: Checking if a given port is installed in pre-fetch
On Mar 3, 2008, at 10:18, Daniel J. Luke wrote: On Mar 2, 2008, at 2:09 PM, Adam Mercer wrote: On Sun, Mar 2, 2008 at 12:16 PM, Daniel J. Luke wrote: You can do almost anything from within a portfile, but there are lots of things that you maybe shouldn't. What are you trying to accomplish? I want to upgrade the science/geos port to 3.0.0 but matplotlib-basemap requires geos-2.2.3 and will not work with geos-3.0.0. Unfortunately it doesn't appear possible to install both geos-2.2.3 and geos-3.0.0 at the the same time, so I was wondering if there was a way that I could make a port for each version and mark them as conflicting? There's not a built-in way to do this (but it might be a nice base/ feature), and I don't know of a really good way of doing it (you could probably check for an installed binary in a pre-fetch action and output an appropriate ui_error message). Not in pre-fetch, please. This would trip up anybody trying to sudo port upgrade the port. Ideally, it would be good to modify one or both of the ports so that they can both be installed Yes, that would be the best way to have two different versioned ports. We don't always meet this goal (apache can't be installed with apache2; php4 can't be installed with php5...) but we should. (or get things patched/updated so they can work with the newer version of the port). That would be ideal. As an alternative, having the science/geos port updated and adding a new port for the old version that matplotlib-basemap uses might be ok (especially if it's unlikely that someone might want both ports). ___ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
Re: Checking if a given port is installed in pre-fetch
On Mon, Mar 3, 2008 at 4:13 PM, Ryan Schmidt [EMAIL PROTECTED] wrote: (or get things patched/updated so they can work with the newer version of the port). That would be ideal. Agreed. At the moment I don't think theres many people, besides myself, who are interested in a geos-3.0.0 port so I think the best thing to do is keep the geos port at 2.2.3 and find a way to get basemap to work with the latest geos version. Cheers Adam ___ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
Re: Checking if a given port is installed in pre-fetch
On Mar 1, 2008, at 11:21 PM, Adam Mercer wrote: Is there a way that I can check if a given port is installed in a pre-fetch phase and display a message, e.g. using ui_msg, if the port is installed? You can do almost anything from within a portfile, but there are lots of things that you maybe shouldn't. What are you trying to accomplish? -- Daniel J. Luke ++ | * [EMAIL PROTECTED] * | | *-- http://www.geeklair.net -* | ++ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | ++ ___ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
Re: Checking if a given port is installed in pre-fetch
On Sun, Mar 2, 2008 at 12:16 PM, Daniel J. Luke [EMAIL PROTECTED] wrote: You can do almost anything from within a portfile, but there are lots of things that you maybe shouldn't. What are you trying to accomplish? I want to upgrade the science/geos port to 3.0.0 but matplotlib-basemap requires geos-2.2.3 and will not work with geos-3.0.0. Unfortunately it doesn't appear possible to install both geos-2.2.3 and geos-3.0.0 at the the same time, so I was wondering if there was a way that I could make a port for each version and mark them as conflicting? Cheers Adam ___ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev