4

CMake recently (September 2014 I guess) started to depend on py27-Sphinx port for its documentation. I actually don't use python on my server, but CMake builds and installs it and its 9 other dependencies just to build its documentation, even though I chose not to build and/or install the documentation.

This is really annoying, have to keep 9 ports up to date just so CMake can build its own documentation that I won't ever read.

I can't get rid of the CMake, as it is needed to build mysql. I just want to get rid of the Sphinx and its dependencies. All help will be highly appreciated.

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
Bugra Koc
  • 121
  • 7
  • 2
    There is a patch for this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193259 Unfortunately it is not committed for a long time. – citrin Jan 20 '15 at 10:34

2 Answers2

2

I have figured this out thanks to @citrin's comment.

Adam Weinberger reported this as a bug here.
He also provided two patches for two different desirable options: pre-building the man pages, or building cmake without them. I opted for the latter one.

The attachment here includes little fixes to the Makefile and pkg-plist of the corresponding port. I just updated my cmake Makefile and pkg-plist with the new lines, and voila! There was another config option for manpages, and after I chose not to build with manpages, the dependency disappeared.

Bugra Koc
  • 121
  • 7
0

In the latest port of cmake you can de-select building the man-pages and sphinx will not get pulled in.

cd /usr/ports/devel/cmake
make config

I had the same issue.