Bug 193259

Summary: [patch] devel/cmake: Decrease sphinx dependency
Product: Ports & Packages Reporter: Adam Weinberger <adamw>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Many People CC: citrin+pr, demon, makc
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
pre-built manpages
none
MANPAGES option none

Description Adam Weinberger freebsd_committer freebsd_triage 2014-09-02 18:41:02 UTC
Created attachment 146690 [details]
pre-built manpages

The dependency on py-sphinx does bring in quite a number of extra build-time dependencies. There are two main ways of addressing this: pre-building the manpages, and adding the ability to not build them at all.

I'm attaching two patches:

option1 adds a tarball of pre-built manpages (I've put them in ~adamw/public_distfiles). I made the tarball from ./man so it can be extracted directly into ${STAGEDIR}${PREFIX}.

option2 adds a MANPAGE option that lets you disable building manpages entirely.
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2014-09-02 18:41:23 UTC
Created attachment 146691 [details]
MANPAGES option
Comment 2 Max Brazhnikov freebsd_committer freebsd_triage 2015-02-24 09:20:41 UTC
(In reply to Adam Weinberger from comment #0)
> option2 adds a MANPAGE option that lets you disable building manpages
> entirely.

I'm ok with this patch. Would you commit it, Adam?
Comment 3 Adam Weinberger freebsd_committer freebsd_triage 2015-02-24 16:41:03 UTC
Committed. Thank you for reviewing this, Max!
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-02-24 16:41:11 UTC
A commit references this bug:

Author: adamw
Date: Tue Feb 24 16:40:44 UTC 2015
New revision: 379820
URL: https://svnweb.freebsd.org/changeset/ports/379820

Log:
  Add a MANPAGES option to control the generation of cmake's manpages.
  The py-sphinx system brings in a number of dependencies that wouldn't
  otherwise be necessary for cmake. The MANPAGES option defaults to on,
  so the main pkg won't change.

  PR:		193259
  Approved by:	kde (makc)

Changes:
  head/devel/cmake/Makefile
  head/devel/cmake/pkg-plist