pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc Remove mdoclint. It has been integrated into ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd9794383d0d
branches:  trunk
changeset: 366038:dd9794383d0d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Aug 01 15:11:59 2017 +0000

description:
Remove mdoclint. It has been integrated into mandoc -Tlint.

Thanks, Ingo!

diffstat:

 textproc/Makefile                  |    3 +-
 textproc/mdoclint/DESCR            |    3 -
 textproc/mdoclint/Makefile         |   34 --
 textproc/mdoclint/PLIST            |    3 -
 textproc/mdoclint/files/TODO       |   24 -
 textproc/mdoclint/files/mdoclint   |  464 -------------------------------------
 textproc/mdoclint/files/mdoclint.1 |  117 ---------
 7 files changed, 1 insertions(+), 647 deletions(-)

diffs (truncated from 686 to 300 lines):

diff -r 49523f28be45 -r dd9794383d0d textproc/Makefile
--- a/textproc/Makefile Tue Aug 01 15:10:58 2017 +0000
+++ b/textproc/Makefile Tue Aug 01 15:11:59 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.944 2017/08/01 15:10:58 wiz Exp $
+# $NetBSD: Makefile,v 1.945 2017/08/01 15:11:59 wiz Exp $
 #
 
 COMMENT=       Text processing utilities (does not include desktop publishing)
@@ -378,7 +378,6 @@
 SUBDIR+=       marisa
 SUBDIR+=       markdown-mode
 SUBDIR+=       markdown2social
-SUBDIR+=       mdoclint
 SUBDIR+=       mecab
 SUBDIR+=       mecab-base
 SUBDIR+=       mecab-ipadic
diff -r 49523f28be45 -r dd9794383d0d textproc/mdoclint/DESCR
--- a/textproc/mdoclint/DESCR   Tue Aug 01 15:10:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-mdoclint is a tool to verify that man pages follow the conventions
-for NetBSD (and most other BSDs) regarding structure and macro
-usage.
diff -r 49523f28be45 -r dd9794383d0d textproc/mdoclint/Makefile
--- a/textproc/mdoclint/Makefile        Tue Aug 01 15:10:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-# $NetBSD: Makefile,v 1.67 2017/06/08 10:19:56 wiz Exp $
-
-DISTNAME=      mdoclint-1.56
-CATEGORIES=    textproc
-MASTER_SITES=  # none
-DISTFILES=     # none
-
-OWNER=         wiz%NetBSD.org@localhost
-#HOMEPAGE=     #
-COMMENT=       Tool for verifying man pages
-LICENSE=       2-clause-bsd
-
-INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
-
-WRKSRC=                ${WRKDIR}
-NO_BUILD=      yes
-USE_LANGUAGES= # none
-USE_TOOLS+=    perl:run
-
-SUBST_CLASSES+=                perl
-SUBST_STAGE.perl=      do-configure
-SUBST_FILES.perl=      mdoclint
-SUBST_SED.perl+=       -e 's,@PERL5@,${PERL5},g'
-SUBST_MESSAGE.perl=    Fixing path to perl.
-
-do-extract:
-       cd ${FILESDIR} && cp mdoclint* ${WRKSRC}/
-
-do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/mdoclint ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_MAN} ${FILESDIR}/mdoclint.1 \
-               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-
-.include "../../mk/bsd.pkg.mk"
diff -r 49523f28be45 -r dd9794383d0d textproc/mdoclint/PLIST
--- a/textproc/mdoclint/PLIST   Tue Aug 01 15:10:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2009/03/01 21:25:39 wiz Exp $
-bin/mdoclint
-man/man1/mdoclint.1
diff -r 49523f28be45 -r dd9794383d0d textproc/mdoclint/files/TODO
--- a/textproc/mdoclint/files/TODO      Tue Aug 01 15:10:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-# $NetBSD: TODO,v 1.2 2013/07/20 21:50:55 wiz Exp $
-. check for font changes in .Bd -literal (.Fd, .No, ...)
-. add checks for only allowed values after .Bl/.Bd/...
-. compare internal with external section name
-. complain if NULL is used without .Dv
-. complain if error values are used without .Er
-[. Nm doesn't need an argument, most of the time (?)]
-. .Nm "": remove if not needed
-. count correct matching of .Bd/.Ed, .Rs/.Re and similar
-. check AUTHORS sections for usage of .An name Aq Mt email@host
-. recognize more section headers?
-. check .Rs/.Re contents?
-. empty lines in .Bd -literal ignored -- groff ignores them, too...
-. ignore .Bd -literal for most checks (.Nm/.Xr, new sentence, new line, ...)
-. ignore matching braces in macro arguments
-. fix bogus report if no .Xr, but .Rs in SEE ALSO section
-. recognize which sections should be in a particular type of manpage
-  (like RETURN VALUES in 2&3, EXIT STATUS in 1&8 et al.)
-. check paths pointed at by .Pa directives?
-. sort in WARNS and ERRS and add switches for those two
-. complain about `,', `;' and similar on beginning of line
-. complain about ',' after last .Nm entry
-. complain about NULL without .Dv
-. complain about -1 (not \-1)
diff -r 49523f28be45 -r dd9794383d0d textproc/mdoclint/files/mdoclint
--- a/textproc/mdoclint/files/mdoclint  Tue Aug 01 15:10:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,464 +0,0 @@
-#!@PERL5@
-#
-# $OpenBSD: mdoclint,v 1.48 2016/01/24 20:10:48 schwarze Exp $
-# $NetBSD: mdoclint,v 1.77 2017/06/08 10:19:56 wiz Exp $
-#
-# Copyright (c) 2001-2017 Thomas Klausner
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR, THOMAS KLAUSNER,
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-use strict;
-use warnings;
-
-$| = 1;
-
-package Parser;
-use Getopt::Std;
-
-use constant {
-       OPENBSD => 0,
-       NETBSD => 1,
-};
-
-use vars qw(
-       $opt_D $opt_d $opt_F $opt_h
-       $opt_m $opt_o $opt_p $opt_r $opt_S $opt_v $opt_w $opt_x
-);
-
-
-my $arch=`uname -m`;
-chomp($arch);
-my $options="DdFhmoprSvwx";
-
-sub usage
-{
-       print STDERR <<"EOF";
-mdoclint: verify man page correctness
-usage: mdoclint [-$options] file ...
-       -D      warn about bad casing and archs in .Dt
-       -d      warn about bad date strings (in .Dd only)
-       -F      fix whitespace problems (asks before overwriting)
-       -h      display this help text
-       -m      warn about man pages that are not in mdoc(7) format
-       -o      warn about non-empty .Os strings
-       -p      warn about punctuation problems
-       -r      warn about missing RCS Id
-       -S      warn about any .Sh weirdness
-       -v      verbose output
-       -w      show section header in warnings
-       -x      warn about cross-references with missing targets
-Default is -DdmoprSx if no flag is specified.
-EOF
-       exit(0);
-}
-
-# constants to build
-my %sections;
-my $arches_re;
-my $sections_re;
-my $esections_re;
-my $valid_date_re;
-# and the code that builds them
-{
-       my @sections = (
-               "NAME",
-               NETBSD ? "LIBRARY" : undef,
-               "SYNOPSIS",
-               "DESCRIPTION",
-               OPENBSD ? "CONTEXT" : undef ,
-               NETBSD ? "IMPLEMENTATION NOTES" : undef,
-               "RETURN VALUES",
-               "ENVIRONMENT",
-               "FILES",
-               "EXIT STATUS",
-               "EXAMPLES",
-               "DIAGNOSTICS",
-               NETBSD ? "COMPATIBILITY" : undef,
-               "ERRORS",
-               NETBSD ? "CODE REFERENCES" : undef,
-               "SEE ALSO",
-               "STANDARDS",
-               "HISTORY",
-               "AUTHORS",
-               "CAVEATS",
-               "BUGS",
-               NETBSD ? "SECURITY CONSIDERATIONS" : undef
-       );
-
-       my $i = 1;
-       for my $sh (@sections) {
-               if (defined $sh) {
-                       $sections{$sh} = $i++;
-               }
-       }
-       my @arches;
-       if (OPENBSD) {
-               @arches =
-                   (qw(alpha amd64 arm64 armv7 hppa i386
-                   landisk loongson luna88k macppc mips64 octeon sgi
-                   socppc sparc64));
-       }
-       if (NETBSD) {
-               @arches =
-                   (qw(acorn26 acorn32 algor alpha amiga arc atari
-                   bebox cats cesfic cobalt dreamcast
-                   emips evbarm evbmips evbppc
-                   evbsh3 evbsh5 hp300 hpcarm hpcmips hpcsh hppa
-                   i386 ibmnws luna68k mac68k macppc mipsco mmeye
-                   mvme68k mvmeppc netwinder news68k newsmips next68k
-                   pc532 playstation2 pmax pmppc prep sandpoint sbmips
-                   sgimips shark sparc sparc64 sun2 sun3 vax walnut
-                   x68k x86 x86_64 xen));
-       }
-       my $a = join('|', @arches);
-       $arches_re = qr{(?:$a)}o;
-       if (OPENBSD) {
-               $sections_re = qr{(?:3p|[1-9])}o;
-               $esections_re = qr{(?:3p|[0-9])}o;
-       }
-       if (NETBSD) {
-               $sections_re = qr{[1-9](?:lua)?}o;
-               $esections_re = qr{[0-9](?:lua)?}o;
-       }
-       if (OPENBSD) {
-               $valid_date_re = qr{\$Mdocdate\b};
-       }
-       if (NETBSD) {
-               $valid_date_re = qr{(?:January|February|March|April|May|June|July|August|September|October|November|December)\s*[1-9][0-9]*,\s*(?:198[0-9]|199[0-9]|200[0-9]|201[0-7])$}o;
-       }
-}
-
-sub debug
-{
-       my $self = shift;
-       print STDOUT "debug: $self->{fn}:$self->{ln}: @_\n" if $opt_v;
-}
-
-sub warning
-{
-       my $self = shift;
-       my $extra = "";
-       if ($opt_w) {
-               $extra = $self->{current_section_header}.":";
-       }
-       print STDOUT "$self->{fn}:$extra$self->{ln}: ", join('', @_), "\n";
-}
-
-sub handle_options
-{
-       getopts($options);
-       $opt_h and usage();
-
-       # default to all warnings if no flag is set
-       unless ($opt_D or $opt_d or $opt_m
-           or $opt_o or $opt_p or $opt_r or $opt_S or $opt_x) {
-               $opt_D = $opt_d = $opt_m =
-                   $opt_o = $opt_p = $opt_r = $opt_S = $opt_x = 1;
-       }
-}
-
-
-sub verify_xref
-{
-       my ($self, $page, $section, $pre, $post) = @_;
-       if ($self->{names}{$page.$section}) {
-               $self->warning("Xref to itself (use .Nm instead)") if $opt_x;
-       }
-       # try to find corresponding man page
-       if (OPENBSD) {
-               open my $saveout, '>&', STDOUT;
-               open my $saveerr, '>&', STDERR;
-               open STDOUT, '>', '/dev/null';
-               open STDERR, '>', '/dev/null';
-               my $irc = system 'man', '-M', '/usr/share/man:/usr/X11R6/man',
-                   '-s', $section, '-f', $page;
-               open STDOUT, '>&', $saveout;
-               open STDERR, '>&', $saveerr;
-               return 1 unless $irc;
-       } else {



Home | Main Index | Thread Index | Old Index