pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/tools Provide a "pod2man" tool used by some package...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c8b8af45d90c
branches: trunk
changeset: 497392:c8b8af45d90c
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Jul 26 20:00:50 2005 +0000
description:
Provide a "pod2man" tool used by some packages to build man pages.
Based on suggestion by Matthias Drochner.
diffstat:
mk/tools/defaults.mk | 3 ++-
mk/tools/replace.mk | 14 +++++++++++++-
2 files changed, 15 insertions(+), 2 deletions(-)
diffs (45 lines):
diff -r 10e185a57e84 -r c8b8af45d90c mk/tools/defaults.mk
--- a/mk/tools/defaults.mk Tue Jul 26 19:31:22 2005 +0000
+++ b/mk/tools/defaults.mk Tue Jul 26 20:00:50 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: defaults.mk,v 1.36 2005/07/15 20:14:04 jlam Exp $
+# $NetBSD: defaults.mk,v 1.37 2005/07/26 20:00:50 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -105,6 +105,7 @@
_TOOLS_VARNAME.patch= PATCH
_TOOLS_VARNAME.pax= PAX
_TOOLS_VARNAME.perl= PERL5
+_TOOLS_VARNAME.pod2man= POD2MAN
_TOOLS_VARNAME.pwd= PWD_CMD
_TOOLS_VARNAME.rm= RM
_TOOLS_VARNAME.rmdir= RMDIR
diff -r 10e185a57e84 -r c8b8af45d90c mk/tools/replace.mk
--- a/mk/tools/replace.mk Tue Jul 26 19:31:22 2005 +0000
+++ b/mk/tools/replace.mk Tue Jul 26 20:00:50 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.121 2005/07/25 21:51:19 jlam Exp $
+# $NetBSD: replace.mk,v 1.122 2005/07/26 20:00:50 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -868,6 +868,18 @@
. endif
.endif
+.if !defined(TOOLS_IGNORE.pod2man) && !empty(_USE_TOOLS:Mpod2man)
+. if !empty(PKGPATH:Mlang/perl5)
+MAKEFLAGS+= TOOLS_IGNORE.pod2man=
+. elif !empty(_TOOLS_USE_PKGSRC.pod2man:M[yY][eE][sS])
+. include "../../lang/perl5/version.mk"
+TOOLS_DEPENDS.perl?= {perl>=${PERL5_REQD},perl-thread>=${PERL5_REQD}}:../../lang/perl5
+TOOLS_CREATE+= pod2man
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.pod2man=perl
+TOOLS_PATH.pod2man= ${TOOLS_PREFIX.pod2man}/bin/pod2man
+. endif
+.endif
+
.if !defined(TOOLS_IGNORE.pwd) && !empty(_USE_TOOLS:Mpwd)
. if !empty(PKGPATH:Msysutils/coreutils)
MAKEFLAGS+= TOOLS_IGNORE.pwd=
Home |
Main Index |
Thread Index |
Old Index