# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.266 2018/08/03 06:39:12 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.267 2018/08/03 06:49:26 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
close $destfh;
chdir($dir) or die "Can't chdir to $dir";
},
- OpenBSD::Paths->groff,
+ $state->{groff} // OpenBSD::Paths->groff,
qw(-mandoc -mtty-char -E -Ww -Tascii -P -c),
@extra, '--', $file);
if ($r != 0) {
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.152 2018/08/03 06:39:12 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.153 2018/08/03 06:49:26 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
if (defined $state->opt('L')) {
OpenBSD::PackingElement::LocalBase->add($plist, $state->opt('L'));
+ $state->{groff} = $state->opt('L'). '/bin/groff';
}
$self->add_extra_info($plist, $state);
if ($state->{system_version}) {