Thanks to your post, I was able to install PyQt5 with Python 3.4.
Originally, I wanted PyQt5 for Python 3.5 (actually, most of all I wanted PySide2 for Python 3.5, but when installing that from source failed, I decided to turn my attention to PyQt5 for now), but when even with a symlink that didn't work, I used
to figure out which packages had been installed during the failed install and removed these.
Subsequently, I removed the packages in question. I think it was only py35-sip and py35-qt-core, but I don't remember for sure, so compare the output of the above given pkg info command for yourself. (And remember that said command lists all Python 3.5 packages, so don't remove all of them -- just remove the ones relating to PyQt5.) Anyway, in your case, I think you already have done this, I just mention it for the sake of others coming to this thread.
Code:
sudo pkg remove py35-sip
sudo pkg remove py35-qt5-core
For me, this removal step worked ok because I only had a couple of py35-packages since before, so I was able to tell which were from before and which were related to the attempted install of PyQt5.
Next, I removed the first symlink I had made to sip-3.5 and I cleaned all ports
Code:
rm /usr/local/bin/sip
find /usr/ports -name work | xargs dirname | xargs -I{} sh -c 'cd {} && make clean'
then I began build and install using Python 3.4
Code:
cd /usr/ports/devel/py-qt5
sudo make PYTHON_VERSION=3.4 install
and when it got to where it couldn't find sip, I made a symlink and continued
Code:
ln -s sip-3.4 /usr/local/bin/sip
sudo make PYTHON_VERSION=3.4 install
and when it failed at the py-qt5-demo stage as it did for you, I changed the config options of py-qt5 to not include demo, since I don't care about the demos anyway
the forth checkbox of the config says "demo", with description "PyQt demo and examples". Go down to it using arrows and press space once to remove the cross in the checkbox, then press enter to accept.
With that taken care of, I continued the installation
Code:
sudo make PYTHON_VERSION=3.4 install
And now I have PyQt5 with Python 3.4.
In the end, I think the port should be fixed so that it will have the demos even when using Python 3.4, and also that it should be possible to install it with Python 3.5. Until then, this is the way to get it as good as we can as end-users.