Re: Honoring NOPORTDOCS with GNU_CONFIGURE?

2009-06-25 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kirk Strauser wrote:
> Is there a standard way to write ports which use GNU_CONFIGURE to follow 
> NOPORTDOCS?  Ideally it'd be something as simple as setting --docdir=NULL or 
> similar, and even more ideally by having bsd.port.mk taking care of that. :-)

Hi Kirk,

I did this for some of the ports that I maintain.  Have a look at the
freshports.org page for a commit to graphics/GraphicsMagick last year:
http://is.gd/1daY4

I modified the Makefile.in at the top level to remove dependencies on
install-docDATA and install-data-html, and that did the trick.

Cheers,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKQ5mj0sRouByUApARAmyLAJ9KZWZEsM+OvN7Wy1vqxy0L7hLNsACgppSI
hmnMAEWQ9JrKWlrza8hi92Q=
=MzYT
-END PGP SIGNATURE-

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Honoring NOPORTDOCS with GNU_CONFIGURE?

2009-06-25 Thread Peter Pentchev
On Thu, Jun 25, 2009 at 09:40:42AM -0500, Kirk Strauser wrote:
> Is there a standard way to write ports which use GNU_CONFIGURE to follow 
> NOPORTDOCS?  Ideally it'd be something as simple as setting --docdir=NULL or 
> similar, and even more ideally by having bsd.port.mk taking care of that. :-)

Not really.  What I usually do is have a post-patch: target that
does a REINPLACE_CMD on all the Makefile.in's found in the port's
directpry and just removes the "install-doc" target; something like:

.ifdef(NOPORTDOCS)
@${REINPLACE_CMD} -E -e 's/ install-docDATA/ /; s/^(SUBDIRS.+)doc/\1/' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -E -e 's/([^n])install-examplesDATA/\1/' \
${WRKSRC}/tools/Makefile.in
.endif

This is taken from the security/stunnel port; you may need to fit it
for your specific port's needs, or, if there are many Makefile.in files,
use ${FIND} | ${XARGS} to process them all at once.

G'luck,
Peter

-- 
Peter Pentchev  r...@ringlet.netr...@space.bgr...@freebsd.org
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Hey, out there - is it *you* reading me, or is it someone else?


pgpn3xqcd84du.pgp
Description: PGP signature


Re: Honoring NOPORTDOCS with GNU_CONFIGURE?

2009-06-25 Thread Kirk Strauser
On Thursday 25 June 2009 09:57:52 am you wrote:
> i think that you will could use CONFIGURE_ARGS

But what args would you actually use?  How do you tell autotools not to 
install documentation at all?
-- 
Kirk Strauser
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Honoring NOPORTDOCS with GNU_CONFIGURE?

2009-06-25 Thread Kirk Strauser
Is there a standard way to write ports which use GNU_CONFIGURE to follow 
NOPORTDOCS?  Ideally it'd be something as simple as setting --docdir=NULL or 
similar, and even more ideally by having bsd.port.mk taking care of that. :-)
-- 
Kirk Strauser
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"