<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Done. Thanks for your support, Mojca Miklavec<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 30, 2016, at 4:54 PM, Abdulrahman Alshammari &lt;<a href="mailto:a.turqi@hotmail.com" class="">a.turqi@hotmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I really appreciate your support. It is completely about my concern. Awesome solutions.<div class="">Thanks a lot</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 30, 2016, at 1:06 PM, Mojca Miklavec &lt;<a href="mailto:mojca@macports.org" class="">mojca@macports.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="">On 30 March 2016 at 18:45, Abdulrahman Alshammari wrote:<br class="">&gt; Hey,<br class="">&gt;<br class="">&gt; The software that I want to build a port for is getting updated 3-5 times in<br class="">&gt; a year. So, I need to build the portfile in a way that will be easy to<br class="">&gt; update. So let me explain my issue.<br class="">&gt;<br class="">&gt; The homepage of the software is here:<br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://vsl.cis.udel.edu/civl/index.html" class="">http://vsl.cis.udel.edu/civl/index.html</a><br class="">&gt;<br class="">&gt; For download, this is the list of software versions:<br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://vsl.cis.udel.edu/lib/sw/civl/" class="">http://vsl.cis.udel.edu/lib/sw/civl/</a><br class="">&gt;<br class="">&gt; For each version, there are sub-versions start with rXXXX, Like in the<br class="">&gt; latest version I want to build a port for it:<br class="">&gt; 1.6 -&gt;&gt; r2872 &gt;&gt; downloads &gt;&gt; we get this page:<br class="">&gt;<br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://vsl.cis.udel.edu/lib/sw/civl/1.6/r2872/release/index.html" class="">http://vsl.cis.udel.edu/lib/sw/civl/1.6/r2872/release/index.html</a><br class="">&gt;<br class="">&gt; Then, I need to download &nbsp;the file CIVL-1.6_2872.tgz<br class="">&gt;<br class="">&gt; Any suggestion how can I handle this, so when I need to update the port, I<br class="">&gt; just update a little bit in the portfile?<br class=""><br class="">You have two options:<div class=""><br class=""></div><div class="">(1) either you specify "version 1.6_2872" and then automatically split it with some tcl tricks (I wrote the most dumb one, I'm sure there is a more elegant way to do it)</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;civl</font></div><div class=""><font face="monospace, monospace" class="">version &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.6_2872</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">set version_major &nbsp; [lindex [split ${version} _] 0]</font></div><div class=""><font face="monospace, monospace" class="">set version_minor &nbsp; [lindex [split ${version} _] 1]</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">extract.suffix &nbsp; &nbsp; &nbsp;.tgz</font></div><div class=""><font face="monospace, monospace" class="">distname &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CIVL-${version}</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">master_sites &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://vsl.cis.udel.edu/lib/sw/${name}/${version_major}/r${version_minor}/release" class="">http://vsl.cis.udel.edu/lib/sw/${name}/${version_major}/r${version_minor}/release</a></font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">checksums &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rmd160 &nbsp;f9c755e26c7d3e2b4a5a29d4008c86551abda33b \</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sha256 &nbsp;b90db06b5f390b2888e0d3d9e25d68b77373a1e34ca20c73bfcef322708ff4c8</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">(2) or simply do the following:</div><div class=""><br class=""><div class=""><font face="monospace, monospace" class="">name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;civl</font></div><div class=""><font face="monospace, monospace" class="">version &nbsp; &nbsp; &nbsp; &nbsp; 1.6</font></div><div class=""><font face="monospace, monospace" class="">set rev &nbsp; &nbsp; &nbsp; &nbsp; 2872</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">extract.suffix &nbsp;.tgz</font></div><div class=""><font face="monospace, monospace" class="">distname &nbsp; &nbsp; &nbsp; &nbsp;CIVL-${version}_${rev}</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">master_sites &nbsp; &nbsp;<a href="http://vsl.cis.udel.edu/lib/sw/${name}/${version}/r${rev}/release" class="">http://vsl.cis.udel.edu/lib/sw/${name}/${version}/r${rev}/release</a></font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">checksums &nbsp; &nbsp; &nbsp; rmd160 &nbsp;f9c755e26c7d3e2b4a5a29d4008c86551abda33b \</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sha256 &nbsp;b90db06b5f390b2888e0d3d9e25d68b77373a1e34ca20c73bfcef322708ff4c8</font></div></div><div class=""><br class=""></div><div class="">It dependes whether you want the revision to be part of the reported version or not. If the revision number is relevant and version 1.6 would be also released under different revisions (= subversions) after some time, you should probably use the first approach. If users only really care about "1.6", then you can increase the "revision" in Portfile by one when the next "sub-version" gets released.</div><div class=""><br class=""></div><div class="">Mojca</div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>