committer's guide / portfile author's guide

Reid Nichol rnichol_rrc at yahoo.com
Sun Feb 18 22:14:14 PST 2007


--- mel <mel at hackinthebox.org> wrote:
> Hi all,
> 
> Macports (and mac os x) newbie here.

Just finishing off my first ones as well, so hopefully I can be of some
help.


> I'm trying my hands at writing portfile, just a few questions:
> 
> 1) Besides the NewCommittersGuide, is there any other documents that 
> I can use as a guide, such as 'Port Author's Guide' which lay out  
> things like quality, ensuring that portfiles aren't broken,  
> consistency, etc?

Check out the old darwinports site.  In particular:

http://darwinports.opendarwin.org/docs/ch03s02.html

was quite helpful for me.


> 2) When developing my own portfile, how do I go about setting my own 
> 'development' environment? I.e. I don't want to clutter the current  
> port tree, and I want to be able to remove/install ports easily.

Just create a directory anywhere you want (I have ~/dp).  Then put
whatever port your going for in a directory under that.  This is where
you can put your Portfile.

For starting development, just doing 'sudo port -d -v command' will run
the Portfile in the current directory.  So, this way is a fairly good
way of doing testing/development/etc.  Or at least the way I've been
doing mine ;)

At any rate, that should get you started.  Good luck :)


best regards,
Reid Nichol

President Bush says:

War Is Peace
Freedom Is Slavery
Ignorance Is Strength


 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/



More information about the macports-dev mailing list