Changes between Version 6 and Version 7 of snc
- Timestamp:
- Feb 2, 2009, 1:51:54 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
snc
v6 v7 7 7 Once you have a repository setup and indexed, you can then instruct MacPorts to include the repository's path in {{{${prefix}/etc/macports/sources.conf}}} — the order of this file's content is important as ports are loaded in a first-come-first-serve basis. To test if your port index is being included, run {{{port info portname}}} where ''portname'' is a port you've placed in your local repository. If everything works well, you'll notice information appearing from your local repository's portfile. '''Note:''' If you have a port named the same as an existing one, this will report that there are two copies found with the first it came across being displaying. This is why the order of repositories listed in {{{sources.conf}}} matters. 8 8 == Port Lint == 9 Now that your copy of MacPorts is able to interact with your portfile, run {{{port lint --nitpick portname}}} to do a maximum compliance check. If it reports 0 errors and 0 warnings then you're ready to submit your portfile to MacPorts. The [http://guide.macports.org/#project.contributing Contributing to MacPorts section] in the Guide on how to create a ticket to ensure your portfile is accepted as quick as possible.9 Now that your copy of MacPorts is able to interact with your portfile, run {{{port lint --nitpick portname}}} to do a maximum compliance check. If it reports 0 errors and 0 warnings then you're ready to submit your portfile to MacPorts. The [http://guide.macports.org/#project.contributing Contributing to MacPorts section] in the Guide shows how to create a ticket ensuring quick acceptance of your portfile. 10 10 == Disabling Your Local Repository == 11 11 Once you're done with development, you can disable your local repository by commenting the line out of your {{{sources.conf}}} file. You can optionally delete your directory that contains your work so far. I suggest keeping it as you can use it for reference when working on future portfiles, and it keeps you from having to recreate the directory.