[MacPorts] CommittersGuide/Distfiles modified

MacPorts noreply at macports.org
Sat Mar 7 04:01:18 PST 2009


Changed page "CommittersGuide/Distfiles" by krischik at macports.org from 89.236.172.92*
Page URL: <http://trac.macports.org/wiki/CommittersGuide/Distfiles>
Diff URL: <http://trac.macports.org/wiki/CommittersGuide/Distfiles?action=diff&version=3>
Revision 3

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: CommittersGuide/Distfiles
=========================================================================
--- CommittersGuide/Distfiles (version: 2)
+++ CommittersGuide/Distfiles (version: 3)
@@ -2,9 +2,7 @@
 
 = Setup Repository =
 
-First setup a [wiki:CommittersGuide/PersonalSVNRepository PersonalSVNRepository] to maintain the files. Inside your  SVN Repository you should create a directory with the portfiles name and there you prepare the files for the port.
-
-Then you create directory for you portfile inside the distfile area of the subversion repository:
+First setup a [wiki:CommittersGuide/PersonalSVNRepository personal Subversion repository] to maintain the files. Inside your  Subversion repository you should create a directory with the portfiles name. Also create a directory for the Port you work on inside the distfile area of the subversion repository. You can use the commands below to do so:
 
 {{{
 Repository=http://svn.macosforge.org/repository/macports
@@ -15,5 +13,27 @@
 svn mkdir --username ${User}@macports.org -m"Create distfiles for ${Port}" ${Repository}/distfiles/${Port}
 }}}
 
-Replace '''userid''' and '''portid''' with your onw userid and the Port you are working on.
+Replace '''userid''' and '''portid''' with your own userid and the Port you are working on.
 
+= Prepare files =
+
+Prepare the files you want to distribute inside your personal Subversion repository and commit them back into Subversion. Then export them again. Export is needed so unnessesary svn meta data is not distributed. The exported files should then be packed. To keep the Portfile easy it is better to use the same archiver as is used for the main source file. You can use the following commands to do so:
+
+{{{
+Repository=http://svn.macports.org/repository/macports
+User=userid
+Port=portid
+Version=12345
+
+alias tar=/opt/local/bin/gnutar
+alias mv=/opt/local/bin/gmv
+alias rm=/opt/local/bin/grm
+
+svn export ${Repository}/users/${User}/${Port}
+mv --verbose ${Port} ${Port}-r${in_Version}
+tar --create --gzip --file="${Port}-r${Version}.tar.gz" "${Port}-r${in_Version}"
+svn import -m"Add distfile for ${Port}" "${Port}-r${Version}.tar.gz" "${Repository}/distfiles/${Port}/${Port}-r${Version}.tar.gz"
+echo rm --verbose --recursive "${Port}"
+}}}
+
+Replace '''12345''' with a unique version identifier and '''userid''' and '''portid''' as you did before. Use [http://trac.macports.org/browser/users/krischik/nonpareil/Upload.command Upload.command] outlines one way on how to automate the whole process.

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on CommittersGuide/Distfiles. If it was not you, please
report to .


More information about the macports-changes mailing list