From 889b295172b643e1d7547d979f1138386ef82ea2 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 5 Feb 2021 18:48:02 +0100 Subject: sys-apps/man: drop package it has been removed from gx86 too, man-db is a worthy replacement now Signed-off-by: Fabian Groffen --- sys-apps/man/Manifest | 1 - sys-apps/man/files/makewhatis.cron | 5 - sys-apps/man/files/makewhatis.cron-prefix.patch | 8 - sys-apps/man/files/man-1.5m2-apropos.patch | 16 -- sys-apps/man/files/man-1.6-cross-compile.patch | 61 ------- .../files/man-1.6c-cut-duplicate-manpaths.patch | 83 --------- sys-apps/man/files/man-1.6e-headers.patch | 13 -- sys-apps/man/files/man-1.6e-solaris.patch | 11 -- .../man-1.6f-makewhatis-compression-cleanup.patch | 69 -------- .../files/man-1.6f-man2html-compression-2.patch | 61 ------- sys-apps/man/files/man-1.6f-parallel-build.patch | 78 --------- sys-apps/man/files/man-1.6f-so-search-2.patch | 34 ---- sys-apps/man/files/man-1.6f-unicode.patch | 28 --- sys-apps/man/files/man-1.6g-bsdish.patch | 15 -- sys-apps/man/files/man-1.6g-compress.patch | 17 -- sys-apps/man/files/man-1.6g-echo-escape.patch | 15 -- sys-apps/man/files/man-1.6g-fbsd.patch | 15 -- sys-apps/man/files/man-1.6g-prefix-path.patch | 41 ----- sys-apps/man/files/man-1.6g-xz.patch | 53 ------ sys-apps/man/man-1.6g-r1.ebuild | 194 --------------------- sys-apps/man/metadata.xml | 8 - 21 files changed, 826 deletions(-) delete mode 100644 sys-apps/man/Manifest delete mode 100755 sys-apps/man/files/makewhatis.cron delete mode 100644 sys-apps/man/files/makewhatis.cron-prefix.patch delete mode 100644 sys-apps/man/files/man-1.5m2-apropos.patch delete mode 100644 sys-apps/man/files/man-1.6-cross-compile.patch delete mode 100644 sys-apps/man/files/man-1.6c-cut-duplicate-manpaths.patch delete mode 100644 sys-apps/man/files/man-1.6e-headers.patch delete mode 100644 sys-apps/man/files/man-1.6e-solaris.patch delete mode 100644 sys-apps/man/files/man-1.6f-makewhatis-compression-cleanup.patch delete mode 100644 sys-apps/man/files/man-1.6f-man2html-compression-2.patch delete mode 100644 sys-apps/man/files/man-1.6f-parallel-build.patch delete mode 100644 sys-apps/man/files/man-1.6f-so-search-2.patch delete mode 100644 sys-apps/man/files/man-1.6f-unicode.patch delete mode 100644 sys-apps/man/files/man-1.6g-bsdish.patch delete mode 100644 sys-apps/man/files/man-1.6g-compress.patch delete mode 100644 sys-apps/man/files/man-1.6g-echo-escape.patch delete mode 100644 sys-apps/man/files/man-1.6g-fbsd.patch delete mode 100644 sys-apps/man/files/man-1.6g-prefix-path.patch delete mode 100644 sys-apps/man/files/man-1.6g-xz.patch delete mode 100644 sys-apps/man/man-1.6g-r1.ebuild delete mode 100644 sys-apps/man/metadata.xml diff --git a/sys-apps/man/Manifest b/sys-apps/man/Manifest deleted file mode 100644 index 94943bb28a..0000000000 --- a/sys-apps/man/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST man-1.6g.tar.gz 256906 BLAKE2B f13e21400aecd41a5f001b37bf3c6f9fd8463ff627f761cfd0a6846c7b8dac48a6dc87ff2cf4786b55800a558141cffcc0d66420943e46f708292f5653b42d51 SHA512 c786fa2201aed92293e5590dc3ad5d550cf14e5059fa274ef7719af86ee4c892e747576495b6dc0a09286e73e2f0f0caf860216e0c8032d9ef13e5d26853048b diff --git a/sys-apps/man/files/makewhatis.cron b/sys-apps/man/files/makewhatis.cron deleted file mode 100755 index bef5ea6d1e..0000000000 --- a/sys-apps/man/files/makewhatis.cron +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -# this is part of the man package -# it updates the search database for manpages - -exec nice makewhatis -u diff --git a/sys-apps/man/files/makewhatis.cron-prefix.patch b/sys-apps/man/files/makewhatis.cron-prefix.patch deleted file mode 100644 index 949622f273..0000000000 --- a/sys-apps/man/files/makewhatis.cron-prefix.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- makewhatis.cron.orig 2006-12-03 13:33:31 +0100 -+++ makewhatis.cron 2006-12-03 13:33:59 +0100 -@@ -1,4 +1,4 @@ --#!/bin/sh -+#!@GENTOO_PORTAGE_EPREFIX@/bin/sh - # this is part of the man package - # it updates the search database for manpages - diff --git a/sys-apps/man/files/man-1.5m2-apropos.patch b/sys-apps/man/files/man-1.5m2-apropos.patch deleted file mode 100644 index 9735a5330e..0000000000 --- a/sys-apps/man/files/man-1.5m2-apropos.patch +++ /dev/null @@ -1,16 +0,0 @@ -Ripped from Fedora - ---- man-1.5m2/src/apropos.sh -+++ man-1.5m2/src/apropos.sh -@@ -19,9 +19,9 @@ - - # When man pages in your favorite locale look to grep like binary files - # (and you use GNU grep) you may want to add the 'a' option to *grepopt1. --aproposgrepopt1='i' -+aproposgrepopt1='ai' - aproposgrepopt2='' --whatisgrepopt1='iw' -+whatisgrepopt1='aiw' - whatisgrepopt2='^' - grepopt1=$%apropos_or_whatis%grepopt1 - grepopt2=$%apropos_or_whatis%grepopt2 diff --git a/sys-apps/man/files/man-1.6-cross-compile.patch b/sys-apps/man/files/man-1.6-cross-compile.patch deleted file mode 100644 index 184236918b..0000000000 --- a/sys-apps/man/files/man-1.6-cross-compile.patch +++ /dev/null @@ -1,61 +0,0 @@ -Fix up to work with cross-compiling ... most of these tests only -need to see if the example compiled, not whether it runs ... - ---- configure -+++ configure -@@ -232,15 +232,13 @@ - - echo checking for POSIX.1 header files - echo "#include --main() { - #ifdef _POSIX_VERSION --exit(0); -+main() { exit(0); } - #else --exit(1); --#endif --}" > conftest.c -+# error no _POSIX_VERSION -+#endif" > conftest.c - eval $compile --if test -s conftest && ./conftest 2>/dev/null; then -+if test -s conftest ; then - DEFS="$DEFS -DPOSIX" - fi - rm -f conftest conftest.c -@@ -249,7 +247,7 @@ - echo "#include - main() { exit(0); rindex(0, 0); bzero(0, 0); }" > conftest.c - eval $compile --if test -s conftest && ./conftest 2>/dev/null; then : -+if test -s conftest ; then : - else DEFS="$DEFS -DUSG" - fi - rm -f conftest conftest.c -@@ -258,7 +256,7 @@ - echo '#include - main() { uid_t x; exit(0); }' > conftest.c - eval $compile --if test -s conftest && ./conftest 2>/dev/null; then : -+if test -s conftest ; then : - else - uid_t=`awk '/pw_uid;/ {print $1}' $INCLUDEDIR/pwd.h` - DEFS="$DEFS -Duid_t=${uid_t} -Dgid_t=${uid_t}" -@@ -291,7 +289,7 @@ - #endif - main() { char *p = (char *) alloca(1); exit(0); }' > conftest.c - eval $compile --if test -s conftest && ./conftest 2>/dev/null; then : -+if test -s conftest ; then : - elif test -d /usr/ucblib; then LIBS="$LIBS -L/usr/ucblib -lucb" - elif test -f /usr/lib/libPW.a; then LIBS="$LIBS -lPW" - else DEFS="$DEFS -DALLOCA_MISSING" -@@ -321,7 +319,7 @@ - struct option long_opts[] = { { "", no_argument, NULL, 0 } }; - main() { exit(0); }' > conftest.c - eval $compile --if test -s conftest && ./conftest 2>/dev/null; then -+if test -s conftest ; then - manpathoption="--path" - else - manpathoption="-w" diff --git a/sys-apps/man/files/man-1.6c-cut-duplicate-manpaths.patch b/sys-apps/man/files/man-1.6c-cut-duplicate-manpaths.patch deleted file mode 100644 index 9ecaeb70e1..0000000000 --- a/sys-apps/man/files/man-1.6c-cut-duplicate-manpaths.patch +++ /dev/null @@ -1,83 +0,0 @@ -http://bugs.gentoo.org/90186 - -If we have entries in MANPATH that are really symlinks to other entries, -then many man functions will yield duplicate entries. - -Without this patch, we see this behavior: -$ echo $MANPATH -/usr/share/man:/usr/man -$ man --path -/usr/share/man:/usr/man -$ ls -ld /usr/share/man /usr/man -lrwxrwxrwx 1 /usr/man -> /usr/share/man -drwxr-xr-x 36 /usr/share/man -$ man -k passwd -passwd (1) - change user password -passwd (1) - change user password - -With this patch, we get: -$ echo $MANPATH -/usr/share/man:/usr/man -$ man --path -/usr/share/man -$ ls -ld /usr/share/man /usr/man -lrwxrwxrwx 1 /usr/man -> /usr/share/man -drwxr-xr-x 36 /usr/share/man -$ man -k passwd -passwd (1) - change user password - ---- man-1.6c/src/manpath.c -+++ man-1.6c/src/manpath.c -@@ -380,6 +380,44 @@ - } - } - -+void trim_symlinked_manpaths (void); -+void -+trim_symlinked_manpaths () { -+ /* -+ * Skip symlinks to other entries in path. -+ * Do this after we've built the entire list. -+ */ -+ struct stat *stat_cache; -+ size_t i, j, size; -+ -+ if (!mandirlist) -+ return; -+ -+ for (size = 0; mandirlist[size]; ++size) -+ /* count # of elements */; -+ if (size == 0) -+ return; -+ /* cache stat information for every element */ -+ stat_cache = (struct stat *) my_malloc (size * sizeof(*stat_cache)); -+ for (i = 0; i < size; ++i) -+ stat(mandirlist[i], &stat_cache[i]); -+ -+#define EQU_STAT(s,d) ((s).st_dev == (d).st_dev && (s).st_ino == (d).st_ino) -+ for (i = 0; i < size; ++i) { -+ for (j = i+1; j < size; ++j) { -+ if (EQU_STAT(stat_cache[i], stat_cache[j])) { -+ /* these two entries are the same, so cut out the second one */ -+ memmove(mandirlist+j, mandirlist+j+1, (size-j)*sizeof(*mandirlist)); -+ memmove(stat_cache+j, stat_cache+j+1, (size-j)*sizeof(*stat_cache)); -+ mandirlist[--size] = NULL; -+ --j; -+ } -+ } -+ } -+ -+ free(stat_cache); -+} -+ - void - init_manpath () { - static int done = 0; -@@ -391,6 +431,7 @@ - (manp = getenv ("MANPATH")) == NULL) - manp = ""; /* default path */ - split (manp, to_mandirlist, 0); -+ trim_symlinked_manpaths (); - done = 1; - } - } diff --git a/sys-apps/man/files/man-1.6e-headers.patch b/sys-apps/man/files/man-1.6e-headers.patch deleted file mode 100644 index 9c6fd6f435..0000000000 --- a/sys-apps/man/files/man-1.6e-headers.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- gencat/genlib.c -+++ gencat/genlib.c -@@ -49,10 +49,8 @@ - - #include - #include --#ifdef SYSV - #include - #include --#endif - - #if !defined(__linux__) && !defined(__FreeBSD__) - #include diff --git a/sys-apps/man/files/man-1.6e-solaris.patch b/sys-apps/man/files/man-1.6e-solaris.patch deleted file mode 100644 index 3fa7b34633..0000000000 --- a/sys-apps/man/files/man-1.6e-solaris.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- gencat/gencat.c -+++ gencat/gencat.c -@@ -43,7 +43,7 @@ - #include - #include - #include --#ifdef SYSV -+#if defined(SYSV) || ( defined (__SVR4) && defined (__sun) ) - #include - #include - #else diff --git a/sys-apps/man/files/man-1.6f-makewhatis-compression-cleanup.patch b/sys-apps/man/files/man-1.6f-makewhatis-compression-cleanup.patch deleted file mode 100644 index a7d74c32be..0000000000 --- a/sys-apps/man/files/man-1.6f-makewhatis-compression-cleanup.patch +++ /dev/null @@ -1,69 +0,0 @@ -http://bugs.gentoo.org/331979 - -patch by William Throwe - -The problem is that a failed match() resets the RSTART variable used to -extract filename_no_gz (visible in the trailing context of the patch), -so it is important that no more match() commands are attempted after the -successful one. Without the scoping, if (for example) the test for .bz2 -succeeds, it prevents testing for .lzma, but doesn't prevent testing for -.xz. The failing .xz test causes RSTART to be set to zero so -filename_no_gz becomes the empty string. - ---- man-1.6f/src/makewhatis.sh -+++ man-1.6f/src/makewhatis.sh -@@ -234,7 +234,7 @@ - find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | $AWK ' - - function readline() { -- if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { -+ if (use_compression) { - result = (pipe_cmd | getline); - if (result < 0) { - print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; -@@ -249,7 +249,7 @@ - } - - function closeline() { -- if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { -+ if (use_compression) { - return close(pipe_cmd); - } else { - return close(filename); -@@ -263,16 +263,20 @@ - if (verbose) { - print "adding " filename > "/dev/stderr" - } -- -+ - use_zcat = match(filename,"\\.Z$") || - match(filename,"\\.z$") || match(filename,"\\.gz$"); -- if (!use_zcat) -+ if (!use_zcat) { - use_bzcat = match(filename,"\\.bz2"); -- if(!use_bzcat) -- use_lzcat = match(filename,"\\.lzma"); -- if(!use_lzcat) -- use_xzcat = match(filename,"\\.xz"); -- if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { -+ if (!use_bzcat) { -+ use_lzcat = match(filename,"\\.lzma"); -+ if (!use_lzcat) { -+ use_xzcat = match(filename,"\\.xz"); -+ } -+ } -+ } -+ use_compression = (use_zcat || use_bzcat || use_lzcat || use_xzcat); -+ if (use_compression) { - filename_no_gz = substr(filename, 0, RSTART - 1); - } else { - filename_no_gz = filename; -@@ -285,7 +289,7 @@ - actual_section = section; - } - sub(/\..*/, "", progname); -- if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { -+ if (use_compression) { - if (use_zcat) { - pipe_cmd = "zcat \"" filename "\""; - } else if (use_bzcat) { diff --git a/sys-apps/man/files/man-1.6f-man2html-compression-2.patch b/sys-apps/man/files/man-1.6f-man2html-compression-2.patch deleted file mode 100644 index b79b3a1872..0000000000 --- a/sys-apps/man/files/man-1.6f-man2html-compression-2.patch +++ /dev/null @@ -1,61 +0,0 @@ -add support for bzip2/lzma to man2html and friends - ---- man2html/glimpse_filters -+++ man2html/glimpse_filters -@@ -1,3 +1,6 @@ -+*.bz2 bzip2 -d -c -+*.lzma lzma -d -c -+*.xz xz -d -c - *.gz gzip -d -c - *.Z gzip -d -c - ---- man2html/scripts/cgi-bin/man/man2html -+++ man2html/scripts/cgi-bin/man/man2html -@@ -93,6 +93,12 @@ - *.bz2) - bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" - ;; -+ *.lzma) -+ lzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" -+ ;; -+ *.xz) -+ xzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" -+ ;; - *) - "$MAN2HTML" "$LL" "$PAGE" - ;; -@@ -103,6 +106,12 @@ - elif [ -r "$PAGE".bz2 ] - then - bzcat "$PAGE".bz2 | "$MAN2HTML" "$LL" -D "$PAGE" -+elif [ -r "$PAGE".lzma ] -+then -+ lzcat "$PAGE".lzma | "$MAN2HTML" "$LL" -D "$PAGE" -+elif [ -r "$PAGE".xz ] -+then -+ xzcat "$PAGE".xz | "$MAN2HTML" "$LL" -D "$PAGE" - else - "$MAN2HTML" -E "Strange... Cannot find (or read) $PAGE." - fi ---- man2html/scripts/cgi-bin/man/mansearch -+++ man2html/scripts/cgi-bin/man/mansearch -@@ -153,7 +153,7 @@ - } - print "
"; - textname = filename; -- sub(/\.(gz)|Z|z$/, "", textname); -+ sub(/\.([zZ]|gz|bz2|lzma|xz)$/, "", textname); - sub(/\./, "(", textname); - textname = textname ")"; - print textname; ---- man2html/scripts/cgi-bin/man/mansec -+++ man2html/scripts/cgi-bin/man/mansec -@@ -128,7 +128,7 @@ - # Print out alphabetic quick index and other links - } - # Split page.n into "page" and "n" and generate an entry -- sub(/[.]([zZ]|(gz))$/, "", manpage); -+ sub(/[.]([zZ]|gz|bz2|lzma|xz)$/, "", manpage); - match(manpage, /[.][^.]+$/); - title = substr(manpage, 1, RSTART - 1); - if (section != "all") { diff --git a/sys-apps/man/files/man-1.6f-parallel-build.patch b/sys-apps/man/files/man-1.6f-parallel-build.patch deleted file mode 100644 index 41918d9244..0000000000 --- a/sys-apps/man/files/man-1.6f-parallel-build.patch +++ /dev/null @@ -1,78 +0,0 @@ -http://bugs.gentoo.org/207148 - -patch by Kevin Pyle to fix parallel build issues - ---- a/src/Makefile.in -+++ b/src/Makefile.in -@@ -42,9 +42,12 @@ - makemsg: - $(BUILD_CC) -o makemsg makemsg.c - --msg.c gripedefs.h: ../msgs/mess.en makemsg -+gripedefs.h: ../msgs/mess.en makemsg - ./makemsg ../msgs/mess.en gripedefs.h msg.c - -+# avoid parallel build issues with makemsg -+msg.c: gripedefs.h -+ - # glob.c does not have prototypes - glob.o: glob.c ndir.h - $(CC) -c $(CWARNNP) $(CFLAGS) -I. $(DEFS) glob.c - -http://bugs.gentoo.org/258916 - -avoid: - make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. - ---- a/man/Makefile.in -+++ b/man/Makefile.in -@@ -3,7 +3,7 @@ - MAN5 = man.conf - MAN8 = makewhatis - ALL = man.1 whatis.1 apropos.1 man.conf.5 --MAYBE8 = makewhatis -+MAYBE8 = $(wildcard makewhatis.man) - - .SUFFIXES: .man .1 .5 .8 - -@@ -21,9 +21,7 @@ - # Where to put the manual pages. - mandir = $(DESTDIR)$(PREFIX)@mandir@$(SLANG) - --all: $(ALL) -- for i in $(MAYBE8); \ -- do if test -f $$i.man; then make -f ../Makefile $$i.8; fi; done -+all: $(ALL) $(MAYBE8:.man=.8) - - install: $(ALL) - mkdir -p $(mandir)/man1 $(mandir)/man5 $(mandir)/man8 -@@ -39,18 +37,17 @@ - - spotless: - --subdirs: -- @for i in @languages@; do if test -d $$i; then echo; \ -- echo "==== Making the `cat $$i.txt` man pages. ===="; \ -- cd $$i; make -f ../Makefile; cd ..; \ -- else echo "==== No $$i man pages found. ===="; fi; done -- --installsubdirs: -- @for i in @languages@; do if test -d $$i; then echo; \ -- echo "==== Installing the `cat $$i.txt` man pages. ===="; \ -- cd $$i; SLANG=/$$i; if test $$SLANG = /en; then SLANG= ; fi; \ -- export SLANG; make -f ../Makefile install; cd ..; \ -- else echo "==== No $$i man pages found. ===="; fi; done -+MAN_LANGS = $(wildcard @languages@) -+subdirs: $(MAN_LANGS:=_lang_subdir) -+%_lang_subdir: -+ @echo "==== Making the `cat $(@:_lang_subdir=).txt` man pages. ====" -+ $(MAKE) -f ../Makefile -C $(@:_lang_subdir=) -+ -+installsubdirs: $(MAN_LANGS:=_lang_installsubdir) -+%_lang_installsubdir: -+ @echo "==== Making the `cat $(@:_lang_installsubdir=).txt` man pages. ====" -+ $(MAKE) -f ../Makefile -C $(@:_lang_installsubdir=) install \ -+ SLANG=`s=$(@:_lang_installsubdir=); test $$s = en || echo /$$s` - - cleansubdirs: - @for i in ??; do cd $$i; make -f ../Makefile clean; cd ..; done diff --git a/sys-apps/man/files/man-1.6f-so-search-2.patch b/sys-apps/man/files/man-1.6f-so-search-2.patch deleted file mode 100644 index ac42c8df7b..0000000000 --- a/sys-apps/man/files/man-1.6f-so-search-2.patch +++ /dev/null @@ -1,34 +0,0 @@ -improve the uncompressed .so search - ---- a/src/man.c -+++ b/src/man.c -@@ -381,13 +381,23 @@ again: - } - /* - * Some people have compressed man pages, but uncompressed -- * .so files - we could glob for all possible extensions, -- * for now: only try .gz -+ * .so files - we should discover this list dynamically, but -+ * for now just hardcode it. - */ -- else if (fp == NULL && get_expander(".gz") && -- strlen(name)+strlen(".gz") < BUFSIZE) { -- strcat(name, ".gz"); -- fp = fopen (name, "r"); -+ else if (fp == NULL) { -+#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) -+ size_t i, name_len = strlen(name); -+ const char *extensions[] = { ".gz", ".bz2", ".lzma", ".xz", ".z", ".Z" }; -+ for (i = 0; i < ARRAY_SIZE(extensions); ++i) { -+ const char *comp = extensions[i]; -+ name[name_len] = '\0'; -+ if (get_expander(comp) && name_len+strlen(comp) < BUFSIZE) { -+ strcat(name, comp); -+ fp = fopen(name, "r"); -+ if (fp) -+ break; -+ } -+ } - } - - if (fp == NULL) { diff --git a/sys-apps/man/files/man-1.6f-unicode.patch b/sys-apps/man/files/man-1.6f-unicode.patch deleted file mode 100644 index 89d3821df3..0000000000 --- a/sys-apps/man/files/man-1.6f-unicode.patch +++ /dev/null @@ -1,28 +0,0 @@ -let the active locale work its magic - -http://bugs.gentoo.org/146315 - ---- man-1.6f/configure -+++ man-1.6f/configure -@@ -473,9 +473,9 @@ - then - if test $Fnroff = "missing" - then -- nroff="nroff -Tlatin1 -mandoc" -+ nroff="nroff -Tascii -c -mandoc" - else -- nroff="$Fnroff -Tlatin1 -mandoc" -+ nroff="$Fnroff -mandoc" - fi - troff="troff -mandoc" - echo "Warning: could not find groff" -@@ -484,7 +484,7 @@ - then - nroff="$Fgroff -Tlatin1 -mandoc" - else -- nroff="$Fnroff -Tlatin1 -mandoc" -+ nroff="$Fnroff -mandoc" - fi - troff="$Fgroff -Tps -mandoc" - jnroff="$Fgroff -Tnippon -mandocj" - diff --git a/sys-apps/man/files/man-1.6g-bsdish.patch b/sys-apps/man/files/man-1.6g-bsdish.patch deleted file mode 100644 index 6dc59bf7da..0000000000 --- a/sys-apps/man/files/man-1.6g-bsdish.patch +++ /dev/null @@ -1,15 +0,0 @@ -This patch could be easily merged with the FreeBSD one, but we don't -because the files have no CVS header and then auto syncing overwrites -the local difference we make. - ---- gencat/genlib.c -+++ gencat/genlib.c -@@ -54,7 +54,7 @@ - #include - #endif - --#if !defined(__linux__) && !defined(__CYGWIN__) && !defined(__FreeBSD__) -+#if !defined(__linux__) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__NetBSD__) && !( defined(__INTERIX) && defined(_ALL_SOURCE)) - #include - static int bcopy(src, dst, length) - char *src, *dst; diff --git a/sys-apps/man/files/man-1.6g-compress.patch b/sys-apps/man/files/man-1.6g-compress.patch deleted file mode 100644 index 374d807300..0000000000 --- a/sys-apps/man/files/man-1.6g-compress.patch +++ /dev/null @@ -1,17 +0,0 @@ -allow selection of default cache compressor - -http://bugs.gentoo.org/205147 - ---- configure -+++ configure -@@ -1012,6 +1012,10 @@ - done - done - -+ if [ x$COMPRESS != x ]; then -+ compress=$COMPRESS -+ fi -+ - if [ x$default = x ]; then - echo "" - echo "What program should be used to compress the formatted pages?" diff --git a/sys-apps/man/files/man-1.6g-echo-escape.patch b/sys-apps/man/files/man-1.6g-echo-escape.patch deleted file mode 100644 index 96e950a51e..0000000000 --- a/sys-apps/man/files/man-1.6g-echo-escape.patch +++ /dev/null @@ -1,15 +0,0 @@ -avoid using escape sequences in echo as they're not portable - -https://bugs.gentoo.org/523874 - ---- a/src/man.c -+++ b/src/man.c -@@ -626,7 +626,7 @@ make_roff_command (const char *path, const char *file) { - the current position plus 10 lines. This plus setpl() - gives us a single page that just contains the whole - man page. (William Webber, wew@cs.rmit.edu.au) */ -- strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \\n(nlu+10\""); -+ strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \"; echo \"(nlu+10\""); - #if 0 - /* In case this doesnt work for some reason, - michaelkjohnson suggests: I've got a simple diff --git a/sys-apps/man/files/man-1.6g-fbsd.patch b/sys-apps/man/files/man-1.6g-fbsd.patch deleted file mode 100644 index ef01a6e01f..0000000000 --- a/sys-apps/man/files/man-1.6g-fbsd.patch +++ /dev/null @@ -1,15 +0,0 @@ -Fixes compilation in FreeBSD - -http://bugs.gentoo.org/138123 - ---- man-1.6g/gencat/genlib.c -+++ man-1.6g/gencat/genlib.c -@@ -54,7 +54,7 @@ - #include - #endif - --#if !defined(__linux__) && !defined(__CYGWIN__) -+#if !defined(__linux__) && !defined(__CYGWIN__) && !defined(__FreeBSD__) - #include - static int bcopy(src, dst, length) - char *src, *dst; diff --git a/sys-apps/man/files/man-1.6g-prefix-path.patch b/sys-apps/man/files/man-1.6g-prefix-path.patch deleted file mode 100644 index a107a63020..0000000000 --- a/sys-apps/man/files/man-1.6g-prefix-path.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- configure -+++ configure -@@ -360,7 +360,8 @@ - # for i in /bin:/usr/bin:$PATH - # does not work everywhere.) - # Some people might prefer having $PATH first in PREPATH --PREPATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH -+# => Yes we do in prefix -+PREPATH=$PATH:/bin:/usr/bin:/usr/ucb:/usr/local/bin - IFS0="$IFS" - IFS=":$IFS" - for i in $PREPATH -@@ -824,7 +824,7 @@ - - if [ "x$languages" != x -a "x$languages" != xen ] - then -- DEF_NLSPATH="/usr/share/locale/%L/%N:/usr/lib/locale/%N/%L" -+ DEF_NLSPATH="${prefix}/share/locale/%L/%N:${prefix}/lib/locale/%N/%L" - deflocalepath=`echo $NLSPATH:$DEF_NLSPATH | sed 's/:/ /g'` - for i in $deflocalepath; do - if [ x$deflocale = x ]; then -@@ -840,7 +840,7 @@ - fi - done - if [ x$deflocale = x ]; then -- deflocale="/usr/lib/locale/%N/%L" -+ deflocale="${prefix}/lib/locale/%N/%L" - fi - if [ x$default = x ]; then - echo "" ---- man2html/Makefile.in -+++ man2html/Makefile.in -@@ -1,7 +1,7 @@ - CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes - OBJECTS = man2html.o cgibase.o abbrev.o strdefs.o - EXEEXT = @EXEEXT@ --bindir = $(DESTDIR)$(PREFIX)/usr/bin -+bindir = $(DESTDIR)$(PREFIX)@bindir@ - mandir = $(DESTDIR)$(PREFIX)@mandir@ - vardir = $(DESTDIR)$(PREFIX)/var - httpdir = $(DESTDIR)$(PREFIX)/home/httpd diff --git a/sys-apps/man/files/man-1.6g-xz.patch b/sys-apps/man/files/man-1.6g-xz.patch deleted file mode 100644 index fcf91f71d3..0000000000 --- a/sys-apps/man/files/man-1.6g-xz.patch +++ /dev/null @@ -1,53 +0,0 @@ -add support for xz - -http://bugs.gentoo.org/302380 - ---- a/src/makewhatis.sh -+++ b/src/makewhatis.sh -@@ -230,7 +230,7 @@ - find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | $AWK ' - - function readline() { -- if (use_zcat || use_bzcat || use_lzcat) { -+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { - result = (pipe_cmd | getline); - if (result < 0) { - print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; -@@ -245,7 +245,7 @@ - } - - function closeline() { -- if (use_zcat || use_bzcat || use_lzcat) { -+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { - return close(pipe_cmd); - } else { - return close(filename); -@@ -266,7 +266,9 @@ - use_bzcat = match(filename,"\\.bz2"); - if(!use_bzcat) - use_lzcat = match(filename,"\\.lzma"); -- if (use_zcat || use_bzcat || use_lzcat ) { -+ if(!use_lzcat) -+ use_xzcat = match(filename,"\\.xz"); -+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { - filename_no_gz = substr(filename, 0, RSTART - 1); - } else { - filename_no_gz = filename; -@@ -279,13 +281,15 @@ - actual_section = section; - } - sub(/\..*/, "", progname); -- if (use_zcat || use_bzcat || use_lzcat) { -+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { - if (use_zcat) { - pipe_cmd = "zcat \"" filename "\""; - } else if (use_bzcat) { - pipe_cmd = "bzcat \"" filename "\""; -- } else { -+ } else if (use_lzcat) { - pipe_cmd = "lzcat \"" filename "\""; -+ } else { -+ pipe_cmd = "xzcat \"" filename "\""; - } - # try to avoid suspicious stuff - if (filename ~ /[;&|`$(]/) { diff --git a/sys-apps/man/man-1.6g-r1.ebuild b/sys-apps/man/man-1.6g-r1.ebuild deleted file mode 100644 index c7a1dadf8a..0000000000 --- a/sys-apps/man/man-1.6g-r1.ebuild +++ /dev/null @@ -1,194 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6g-r1.ebuild,v 1.1 2015/05/08 03:22:04 vapier Exp $ - -EAPI="4" - -inherit eutils toolchain-funcs user flag-o-matic prefix - -DESCRIPTION="Standard commands to read man pages" -HOMEPAGE="http://primates.ximian.com/~flucifredi/man/" -SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="+lzma nls selinux" - -DEPEND="nls? ( sys-devel/gettext )" -RDEPEND="|| ( >=sys-apps/groff-1.19.2-r1 app-doc/heirloom-doctools ) - !sys-apps/man-db - ! - epatch "${FILESDIR}"/man-1.6g-bsdish.patch - # Solaris needs fcntl.h included for O_CREAT etc, like SYSV - epatch "${FILESDIR}"/man-1.6e-solaris.patch - # Results in grabbing as much tools from the prefix, instead of main - # system in a prefixed environment - epatch "${FILESDIR}"/man-1.6g-prefix-path.patch - - # Fix the makewhatis script for prefix. - cp "${FILESDIR}"/makewhatis.cron "${T}"/ - pushd "${T}" > /dev/null - epatch "${FILESDIR}"/makewhatis.cron-prefix.patch - popd > /dev/null - eprefixify "${T}"/makewhatis.cron - - # fix man.conf file, bug #351245 - sed -i \ - -e "/^MANPATH\t/s:\t/:\t${EPREFIX}/:" \ - -e "/^MANPATH_MAP\t/s:\t/:\t${EPREFIX}/:g" \ - src/man.conf.in || die - - if use prefix ; then - ebegin "Allowing unpriviliged install" - sed -i \ - -e 's/@man_install_flags@//g' \ - "${S}"/src/Makefile.in - eend $? - ( - local d cat=() dflt - dflt=( $(sed -n '/^tmpsections=/s/^[^"]\+"\([^"]\+\)".*$/\1/p' \ - configure) ) - IFS=: - for d in /usr/share/man/man* ; do - [[ -d ${d} ]] || continue - [[ ":${dflt[*]}:" == *":${d##*man}:"* ]] \ - || cat+=( ${d##*man} ) - done - if [[ ${#cat[@]} -gt 0 ]] ; then - einfo "Adding host manpage sections: ${cat[*]}" - sed -i -e "/^MANSECT\t/s/\$/:${cat[*]}/" src/man.conf.in || die - fi - ) - fi - -} - -echoit() { echo "$@" ; "$@" ; } -src_configure() { - strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ }) - - unset NLSPATH #175258 - - tc-export CC BUILD_CC - - local mylang= - if use nls ; then - if [[ -z ${LINGUAS} ]] ; then - mylang="all" - else - mylang="${LINGUAS// /,}" - fi - else - mylang="none" - fi - - local myconf= - use prefix || myconf="${myconf} +sgid" - - export COMPRESS - if use lzma ; then - COMPRESS="${EPREFIX}"/usr/bin/xz - else - COMPRESS="${EPREFIX}"/bin/bzip2 - fi - echoit \ - ./configure \ - -prefix="${EPREFIX}/usr" \ - -confdir="${EPREFIX}"/etc \ - ${myconf} \ - +fhs \ - +lang ${mylang} \ - || die "configure failed" -} - -src_install() { - unset NLSPATH #175258 - - emake DESTDIR="${D}" install || die "make install failed" - dosym man /usr/bin/manpath - - dodoc LSM README* TODO - - # Make all Solaris man-pages available - if [[ ${CHOST} == *-solaris* && -e /usr/share/man/man.cf ]] ; then - source /usr/share/man/man.cf - sed -i -e 's/^\(MANSECT.*\)$/\1:'"${MANSECTS//,/:}"'/' \ - "${ED}"/etc/man.conf || die "failed to adapt to Solaris" - fi - - # makewhatis only adds man-pages from the last 24hrs - exeinto /etc/cron.daily - newexe "${T}"/makewhatis.cron makewhatis - - keepdir /var/cache/man - use prefix || diropts -m0775 -g man && diropts -m0775 - local mansects=$(grep ^MANSECT "${ED}"/etc/man.conf | cut -f2-) - for x in ${mansects//:/ } ; do - keepdir /var/cache/man/cat${x} - done -} - -pkg_postinst() { - if use !prefix ; then - - einfo "Forcing sane permissions onto ${EROOT}var/cache/man (Bug #40322)" - chown -R root:man "${EROOT}"/var/cache/man - [[ -e ${EROOT}/var/cache/man/whatis ]] \ - && chown root:0 "${EROOT}"/var/cache/man/whatis - - fi # end lame indenting - - chmod -R g+w "${EROOT}"/var/cache/man - - echo - - local f files=$(ls "${EROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null) - for f in ${files} ; do - [[ ${f} == */etc/cron.daily/makewhatis ]] && continue - [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \ - && rm -f "${f}" - done - files=$(ls "${EROOT}"etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null) - if [[ ${files/$'\n'} != ${files} ]] ; then - ewarn "You have multiple makewhatis cron files installed." - ewarn "You might want to delete all but one of these:" - ewarn ${files} - fi - - if has_version app-doc/heirloom-doctools; then - ewarn "Please note that the /etc/man.conf file installed will not" - ewarn "work with heirloom's nroff by default (yet)." - ewarn "" - ewarn "Check app-doc/heirloom-doctools elog messages for the proper" - ewarn "configuration." - fi -} diff --git a/sys-apps/man/metadata.xml b/sys-apps/man/metadata.xml deleted file mode 100644 index 56c1244130..0000000000 --- a/sys-apps/man/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - base-system@gentoo.org - Gentoo Base System - - -- cgit v1.2.3-18-g5258