public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/man2html/, sys-apps/man2html/files/
@ 2016-02-13  6:44 Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2016-02-13  6:44 UTC (permalink / raw
  To: gentoo-commits

commit:     7f548467ce4c0b0d471b8a8e04c5bde56fcf7d29
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 13 06:41:07 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Feb 13 06:42:45 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f548467

sys-apps/man2html: new package #519390

With the migration to man-db, the man2html tool is no longer available
as it was included with the canonical man package.  Create a dedicated
package for this tool since some people want it w/man-db.

 sys-apps/man2html/Manifest                         |  1 +
 .../man2html/files/man-1.6-cross-compile.patch     | 61 ++++++++++++++++++++++
 .../files/man-1.6f-man2html-compression-2.patch    | 61 ++++++++++++++++++++++
 sys-apps/man2html/files/man-1.6g-compress.patch    | 17 ++++++
 sys-apps/man2html/man2html-1.6g.ebuild             | 56 ++++++++++++++++++++
 sys-apps/man2html/metadata.xml                     |  8 +++
 6 files changed, 204 insertions(+)

diff --git a/sys-apps/man2html/Manifest b/sys-apps/man2html/Manifest
new file mode 100644
index 0000000..677fe5c
--- /dev/null
+++ b/sys-apps/man2html/Manifest
@@ -0,0 +1 @@
+DIST man-1.6g.tar.gz 256906 SHA256 ccdcb8c3f4e0080923d7e818f0e4a202db26c46415eaef361387c20995b8959f SHA512 c786fa2201aed92293e5590dc3ad5d550cf14e5059fa274ef7719af86ee4c892e747576495b6dc0a09286e73e2f0f0caf860216e0c8032d9ef13e5d26853048b WHIRLPOOL 1b531476108c27a3993023da430831c2d20f8045a51490d559a7f588f0771931defd7a3a745e9f1f03797e681eea8767aad4a27ab9abdd5d06ad935dc96a5020

diff --git a/sys-apps/man2html/files/man-1.6-cross-compile.patch b/sys-apps/man2html/files/man-1.6-cross-compile.patch
new file mode 100644
index 0000000..2652650
--- /dev/null
+++ b/sys-apps/man2html/files/man-1.6-cross-compile.patch
@@ -0,0 +1,61 @@
+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 <unistd.h>
+-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 <strings.h>
+ 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 <sys/types.h>
+ 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/man2html/files/man-1.6f-man2html-compression-2.patch b/sys-apps/man2html/files/man-1.6f-man2html-compression-2.patch
new file mode 100644
index 0000000..b79b3a1
--- /dev/null
+++ b/sys-apps/man2html/files/man-1.6f-man2html-compression-2.patch
@@ -0,0 +1,61 @@
+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 "<DT> <a href=\"" cgipath "/man2html?" fullname "\">";
+       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/man2html/files/man-1.6g-compress.patch b/sys-apps/man2html/files/man-1.6g-compress.patch
new file mode 100644
index 0000000..374d807
--- /dev/null
+++ b/sys-apps/man2html/files/man-1.6g-compress.patch
@@ -0,0 +1,17 @@
+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/man2html/man2html-1.6g.ebuild b/sys-apps/man2html/man2html-1.6g.ebuild
new file mode 100644
index 0000000..4da6fb0
--- /dev/null
+++ b/sys-apps/man2html/man2html-1.6g.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+MY_P="man-${PV}"
+
+DESCRIPTION="Standard commands to read man pages"
+HOMEPAGE="http://primates.ximian.com/~flucifredi/man/"
+SRC_URI="http://primates.ximian.com/~flucifredi/man/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE=""
+
+RDEPEND="!sys-apps/man"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+	epatch "${FILESDIR}"/man-1.6f-man2html-compression-2.patch
+	epatch "${FILESDIR}"/man-1.6-cross-compile.patch
+	epatch "${FILESDIR}"/man-1.6g-compress.patch #205147
+}
+
+echoit() { echo "$@" ; "$@" ; }
+src_configure() {
+	tc-export CC BUILD_CC
+
+	# Just a stub to disable configure check.  man2html doesn't use it.
+	export COMPRESS=true
+	echoit \
+	./configure \
+		-confdir=/etc \
+		+sgid +fhs \
+		+lang none \
+		|| die "configure failed"
+}
+
+src_compile() {
+	emake {src,man2html}/Makefile
+	emake -C src version.h
+	emake -C man2html
+}
+
+src_install() {
+	# A little faster to run this by hand than `emake install`.
+	cd man2html
+	dobin man2html
+	doman man2html.1
+	dodoc README TODO
+}

diff --git a/sys-apps/man2html/metadata.xml b/sys-apps/man2html/metadata.xml
new file mode 100644
index 0000000..56c1244
--- /dev/null
+++ b/sys-apps/man2html/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+	<email>base-system@gentoo.org</email>
+	<name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/man2html/, sys-apps/man2html/files/
@ 2022-11-06  1:49 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-11-06  1:49 UTC (permalink / raw
  To: gentoo-commits

commit:     6e16406ce46083d05de45dcdd50edc445b3098ab
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  5 22:53:02 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov  6 01:49:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e16406c

sys-apps/man2html: further Clang 15 configure fixes

Fixes: 49e4d668bc441ec4db407b51edeab5af14b798af
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/man-1.6g-clang-15-configure.patch        | 24 ++++++++++++----------
 ...html-1.6g-r1.ebuild => man2html-1.6g-r2.ebuild} |  0
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/sys-apps/man2html/files/man-1.6g-clang-15-configure.patch b/sys-apps/man2html/files/man-1.6g-clang-15-configure.patch
index 783693059e2f..c15617b56e84 100644
--- a/sys-apps/man2html/files/man-1.6g-clang-15-configure.patch
+++ b/sys-apps/man2html/files/man-1.6g-clang-15-configure.patch
@@ -5,7 +5,7 @@
  echo "#include <stdlib.h>
  #include <string.h>
 -main() { exit(0); strerror(0); }" > conftest.c
-+int main() { exit(0); strerror(0); }" > conftest.c
++int main(void) { exit(0); strerror(0); }" > conftest.c
  eval $compile
  if test -s conftest && ./conftest 2>/dev/null; then
    DEFS="$DEFS -DSTDC_HEADERS"
@@ -15,7 +15,7 @@
  echo "#include <sys/termios.h>
 -main() { exit(0); }" > conftest.c
 +#include <stdlib.h>
-+int main() { exit(0); }" > conftest.c
++int main(void) { exit(0); }" > conftest.c
  eval $compile
  if test -s conftest && ./conftest 2>/dev/null; then
    DEFS="$DEFS -DTERMIOS_HEADER"
@@ -26,7 +26,7 @@
 +#include <stdlib.h>
  #ifdef _POSIX_VERSION
 -main() { exit(0); }
-+int main() { exit(0); }
++int main(void) { exit(0); }
  #else
  # error no _POSIX_VERSION
  #endif" > conftest.c
@@ -36,7 +36,7 @@
  echo "#include <strings.h>
 -main() { exit(0); rindex(0, 0); bzero(0, 0); }" > conftest.c
 +#include <stdlib.h>
-+int main() { exit(0); rindex(0, 0); bzero(0, 0); }" > conftest.c
++int main(void) { exit(0); rindex(0, 0); bzero(0, 0); }" > conftest.c
  eval $compile
  if test -s conftest ; then :
    else DEFS="$DEFS -DUSG"
@@ -46,36 +46,38 @@
  echo '#include <sys/types.h>
 -main() { uid_t x; exit(0); }' > conftest.c
 +#include <stdlib.h>
-+int main() { uid_t x; exit(0); }' > conftest.c
++int main(void) { uid_t x; exit(0); }' > conftest.c
  eval $compile
  if test -s conftest ; then :
  else
-@@ -300,7 +304,7 @@ char *alloca ();
+@@ -300,7 +304,8 @@ char *alloca ();
  #endif
  #endif
  #endif
 -main() { char *p = (char *) alloca(1); exit(0); }' > conftest.c
-+int main() { char *p = (char *) alloca(1); exit(0); }' > conftest.c
++#include <stdlib.h>
++int main(void) { char *p = (char *) alloca(1); exit(0); }' > conftest.c
  eval $compile
  if test -s conftest ; then :
  elif test -d /usr/ucblib; then LIBS="$LIBS -L/usr/ucblib -lucb"
-@@ -312,7 +316,7 @@ rm -f conftest conftest.c
+@@ -312,7 +317,8 @@ rm -f conftest conftest.c
  if [ $usenls = true ]; then
    echo checking for nls
    echo '#include <nl_types.h>
 -  main() {nl_catd catfd; exit(0); }' > conftest.c
-+  int main() {nl_catd catfd; exit(0); }' > conftest.c
++  #include <stdlib.h>
++  int main(void) {nl_catd catfd; exit(0); }' > conftest.c
    eval $compile
    if test -s conftest && ./conftest 2>/dev/null; then :
    else
-@@ -329,8 +333,9 @@ echo checking for getopt.h
+@@ -329,8 +335,9 @@ echo checking for getopt.h
  echo '#define _GNU_SOURCE
  #include <getopt.h>
  #include <stdio.h>
 +#include <stdlib.h>
  struct option long_opts[] = { { "", no_argument, NULL, 0 } };
 -main() { exit(0); }' > conftest.c
-+int main() { exit(0); }' > conftest.c
++int main(void) { exit(0); }' > conftest.c
  eval $compile
  if test -s conftest ; then
    manpathoption="--path"

diff --git a/sys-apps/man2html/man2html-1.6g-r1.ebuild b/sys-apps/man2html/man2html-1.6g-r2.ebuild
similarity index 100%
rename from sys-apps/man2html/man2html-1.6g-r1.ebuild
rename to sys-apps/man2html/man2html-1.6g-r2.ebuild


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-06  1:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-13  6:44 [gentoo-commits] repo/gentoo:master commit in: sys-apps/man2html/, sys-apps/man2html/files/ Mike Frysinger
  -- strict thread matches above, loose matches on Subject: below --
2022-11-06  1:49 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox