[MacPorts] #48667: notmuch: Add support for installing man pages
MacPorts
noreply at macports.org
Fri Aug 21 20:17:11 PDT 2015
#48667: notmuch: Add support for installing man pages
------------------------+--------------------------------
Reporter: cceleri@… | Owner: macports-tickets@…
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords: haspatch
Port: notmuch |
------------------------+--------------------------------
Comment (by cceleri@…):
Yes, the man pages will not be installed if the following test fails in
the configure script
{{{
if command -v sphinx-build > /dev/null && ${python} -m
sphinx.writers.manpage > /dev/null 2>&1 ; then
...
}}}
where ${python} is set earlier by
{{{
for name in python python2 python3; do
if command -v $name > /dev/null; then
have_python=1
python=$name
...
}}}
We can get the test to pass if one of the py*-sphinx ports is installed
and there is a symbolic link from python{,2,3} to an installed python*
port. I would prefer to establish a python{,2,3} symbolic link during the
build process using something like select, but I was unable to figure out
how to make that work. Instead, I resorted to patching the configure
script so that ${python} resolves to something that will work.
I admit that the above workaround is quite messy. Is there a cleaner way
to handle this? I was having a lot of trouble figuring how to tell the
configure script which python I wanted it to use.
--
Ticket URL: <https://trac.macports.org/ticket/48667#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list