my first port - how to
john_owens at yahoo.com
Sun Dec 10 05:48:13 PST 2006
Greetings, I'm attempting to write my first port. Writing the portfile
is not too difficult, as there's lots of good examples. However,
actually making it install is a lot tougher.
I am making it work by:
- adding the portfile in the right place in /opt/local
- changing the portindex file to add the port info manually (and
making up a number for it)
However, these things seem really kludgey. Is it not possible to
have a local portfile somewhere and install it using a command
line "port" command? That would seem much better, but I can't find
any documentation on how that's done. (For instance, there's a
local "~/.portsrc" file? but I can't find any docs on it.)
I think this is the sort of thing that really ought to be on the
wiki - the barrier to entry of adding a portfile is really very
high, and a short guide would be helpful. What it should say:
- "So you've written a Portfile. Here's how you test it locally."
- "Here's how you prevent it from being clobbered when you
- "Here's where you put it if you're testing it locally, and want
to leave it local for a while."
- "Your Portfile is awesome. It works. Here's how to add it to
the MacPorts repository."
- "... and here's how you update it."
- "Your Portfile probably has lots of dependencies. Here's how
you tell what they are."
- "Here are naming conventions for ports."
Especially the first one right now would be very useful for me.
More information about the macports-users