On Jan 15, 2013, at 16:05, Sean Farley <[email protected]> wrote:

> I'm looking for advice / best practices for bypassing the extract
> phase when writing a portfile for a script (and hence it's not a
> tarball). One idea I had was something like the following,
> 
> {{{
> distname            ${name}
> extract.suffix
> use_configure       no
> 
> extract             {}
> build               {}
> }}}

That sounds reasonable. Then in the destroot block, install it where it needs 
to go.

Don't forget "supported_archs noarch".

If you'll be wanting to modify the script before installation (e.g. changing 
the shebang line) you could use the extract block to copy the script to the 
worksrcpath (which you could create using "extract.mkdir yes"), then use the 
patch block to reinplace the script (or write a patchfile).


_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to