Adding a variant

Ryan Schmidt ryandesign at macports.org
Mon May 5 00:57:47 PDT 2008


On May 3, 2008, at 8:40 PM, Sancho McCann wrote:

> I would like to add a variant to the boost port that installs the  
> optional Adobe gil numeric extension. (See point 4 at <http:// 
> opensource.adobe.com/wiki/display/gil/Downloads> for a description.)
>
> The process for installing this extension is to simply untar the  
> folder from <http://opensource.adobe.com/wiki/download/attachments/ 
> 3866769/numeric.tar.gz>
> and then move the extracted folder to </opt/local/include/ 
> boost-1_35/boost/gil/extension/numeric> (or the equivalent destroot  
> location I suppose).
>
> How would I write this as a variant?


Start by filing a ticket in the issue tracker...

Then, in the variant, you would append to the distfiles and the  
checksums. See the graphviz port's gui variant for a way to do that.  
You can also define a post-extract phase inside the variant to do an  
necessary moving of the extracted items.



More information about the macports-users mailing list