<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 7, 2014 at 10:40 AM, Mojca Miklavec <span dir="ltr">&lt;<a href="mailto:mojca@macports.org" target="_blank">mojca@macports.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mon, Apr 7, 2014 at 4:22 PM, Brandon Allbery wrote:<br>
&gt; On Mon, Apr 7, 2014 at 10:20 AM, Mojca Miklavec wrote:<br>&gt;&gt; I see that mysql55 for example installs man pages to<br>
&gt;&gt;     $prefix/share/man/mysql55/man1/*.1.gz<br>
&gt;&gt; where they are not really functional.<br>
&gt;&gt;<br>
&gt;&gt; Is that a proper place for these files? / Is there any better place?<br>
&gt;<br>&gt; If you arrange for them to be in ../share/man or ../man when the private bin<br>
&gt; directory is in $PATH, they will automatically work. (This assumes there is<br>
&gt; a private bin directory and not just versioned binaries in /opt/local/bin.<br>
&gt; For something like mysql, there are going to be enough private binaries to<br>
&gt; make this a good idea.)<br>
<br>
</div>So if the binaries go to<br>
    $prefix/libexec/&lt;port&gt;/&lt;something&gt;/<br>
it would make sense to put the binaries to<br>
    $prefix/libexec/&lt;port&gt;/&lt;man&gt;<br>
?<br></blockquote><div><br></div><div>Yes. See the heimdal port for an example of just that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It probably wouldn&#39;t be such a bad idea to create a script<br>
$prefix/bin/&lt;portname&gt;-init&lt;version&gt;.sh which would prepend<br>
$prefix/libexec/&lt;port&gt;/&lt;something&gt; to PATH. Or maybe simply create a<br>
script like $prefix/libexec/&lt;port&gt;/&lt;something&gt;/usethisone.sh to do the<br>
same. And then man pages would automatically work ...<br></blockquote><div><br></div><div>I&#39;ve wanted this for a while. That, or adding support for something along the lines of <a href="http://modules.sourceforge.net">modules.sourceforge.net</a>. (Unlike port select, this might be automatable.)</div>
<div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>