mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 14:57:32 +00:00
groff: 1.22.4 -> 1.23.0
This commit is contained in:
parent
aa0f09558c
commit
ac63d48eb1
@ -1,46 +0,0 @@
|
||||
From 1454525f70b43a6957b7c9e1870e997368787da3 Mon Sep 17 00:00:00 2001
|
||||
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
|
||||
Date: Fri, 8 Nov 2019 21:59:21 -0500
|
||||
Subject: [PATCH] Fix cross-compilation by looking for `ar`.
|
||||
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
configure.ac | 2 ++
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index d18c49b8..b1b53338 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -494,7 +494,7 @@ CCC=@CXX@
|
||||
# INSTALL_INFO
|
||||
# LN_S
|
||||
|
||||
-AR=ar
|
||||
+AR=@AR@
|
||||
ETAGS=etags
|
||||
ETAGSFLAGS=
|
||||
# Flag that tells etags to assume C++.
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 28e75f17..2449b9f5 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -37,6 +37,7 @@ AC_CONFIG_AUX_DIR([build-aux])
|
||||
|
||||
AC_CONFIG_HEADERS([src/include/config.h:src/include/config.hin])
|
||||
AC_CONFIG_SRCDIR([src/roff/groff/groff.cpp])
|
||||
+AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
@@ -72,6 +73,7 @@ GROFF_DOC_CHECK
|
||||
GROFF_MAKEINFO
|
||||
GROFF_TEXI2DVI
|
||||
AC_PROG_RANLIB
|
||||
+AC_CHECK_TOOL([AR], [ar], [ar])
|
||||
GROFF_INSTALL_SH
|
||||
GROFF_INSTALL_INFO
|
||||
AC_PROG_INSTALL
|
||||
--
|
||||
2.23.0
|
||||
|
@ -14,30 +14,16 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "groff";
|
||||
version = "1.22.4";
|
||||
version = "1.23.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/groff/${pname}-${version}.tar.gz";
|
||||
sha256 = "14q2mldnr1vx0l9lqp9v2f6iww24gj28iyh4j2211hyynx67p3p7";
|
||||
hash = "sha256-a5dX9ZK3UYtJAutq9+VFcL3Mujeocf3bLTCuOGNRHBM=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "man" "doc" "info" "perl" ];
|
||||
|
||||
# Parallel build is failing for missing depends. Known upstream as:
|
||||
# https://savannah.gnu.org/bugs/?62084
|
||||
# fixed, planned release: 1.23.0
|
||||
enableParallelBuilding = false;
|
||||
|
||||
patches = [
|
||||
./0001-Fix-cross-compilation-by-looking-for-ar.patch
|
||||
]
|
||||
++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "9") [
|
||||
# https://trac.macports.org/ticket/59783
|
||||
(fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/openembedded/openembedded-core/ce265cf467f1c3e5ba2edbfbef2170df1a727a52/meta/recipes-extended/groff/files/0001-Include-config.h.patch";
|
||||
sha256 = "1b0mg31xkpxkzlx696nr08rcc7ndpaxdplvysy0hw5099c4n1wyf";
|
||||
})
|
||||
];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postPatch = ''
|
||||
# BASH_PROG gets replaced with a path to the build bash which doesn't get automatically patched by patchShebangs
|
||||
@ -53,8 +39,7 @@ stdenv.mkDerivation rec {
|
||||
--replace "pnmcrop" "${lib.getBin netpbm}/bin/pnmcrop" \
|
||||
--replace "pngtopnm" "${lib.getBin netpbm}/bin/pngtopnm" \
|
||||
--replace "@PNMTOPS_NOSETPAGE@" "${lib.getBin netpbm}/bin/pnmtops -nosetpage"
|
||||
substituteInPlace contrib/groffer/roff2.pl \
|
||||
--replace "'gs'" "'${lib.getBin ghostscript}/bin/gs'"
|
||||
'' + lib.optionalString (enableGhostscript || enableHtml) ''
|
||||
substituteInPlace contrib/pdfmark/pdfroff.sh \
|
||||
--replace '$GROFF_GHOSTSCRIPT_INTERPRETER' "${lib.getBin ghostscript}/bin/gs" \
|
||||
--replace '$GROFF_AWK_INTERPRETER' "${lib.getBin gawk}/bin/gawk"
|
||||
@ -119,11 +104,6 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace $perl/bin/gpinyin \
|
||||
--replace $out/lib/groff/gpinyin $perl/lib/groff/gpinyin
|
||||
|
||||
moveToOutput bin/groffer $perl
|
||||
moveToOutput lib/groff/groffer $perl
|
||||
substituteInPlace $perl/bin/groffer \
|
||||
--replace $out/lib/groff/groffer $perl/lib/groff/groffer
|
||||
|
||||
moveToOutput bin/grog $perl
|
||||
moveToOutput lib/groff/grog $perl
|
||||
substituteInPlace $perl/bin/grog \
|
||||
|
@ -9,11 +9,5 @@
|
||||
. char \' \N'39'
|
||||
. \}
|
||||
.
|
||||
. \" Shut off SGR by default (groff colors)
|
||||
. \" Require GROFF_SGR envvar defined to turn it on
|
||||
. if '\V[GROFF_SGR]'' \
|
||||
. output x X tty: sgr 0
|
||||
.\}
|
||||
.
|
||||
.ds doc-default-operating-system Nixpkgs
|
||||
.ds doc-volume-operating-system Nixpkgs
|
||||
|
Loading…
Reference in New Issue
Block a user