2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, xmlto, docbook_xml_dtd_412
|
2021-12-06 16:07:01 +00:00
|
|
|
, libxslt, docbook_xsl, autoconf, automake, gettext, libiconv, libtool
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opensp";
|
|
|
|
version = "1.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-09-18 10:52:07 +00:00
|
|
|
url = "mirror://sourceforge/openjade/OpenSP-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1khpasr6l0a8nfz6kcf3s81vgdab8fm2dj291n5r2s53k228kx2p";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i s,/usr/share/sgml/docbook/xml-dtd-4.1.2/,${docbook_xml_dtd_412}/xml/dtd/docbook/, \
|
|
|
|
docsrc/*.xml
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/opensp/files/opensp-1.5.2-c11-using.patch?id=688d9675782dfc162d4e6cff04c668f7516118d0";
|
|
|
|
sha256 = "04q14s8qsad0bkjmj067dn831i0r6v7742rafdlnbfm5y249m2q6";
|
|
|
|
})
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Remove random ids in the release notes
|
|
|
|
sed -i -e 's/href="#idm.*"//g' $out/share/doc/OpenSP/releasenotes.html
|
|
|
|
sed -i -e 's/name="idm.*"//g' $out/share/doc/OpenSP/releasenotes.html
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
preConfigure = lib.optionalString stdenv.isCygwin ''
|
|
|
|
autoreconf -fi
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
xmlto
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
docbook_xsl
|
|
|
|
] ++ lib.optionals stdenv.isCygwin [ autoconf automake libtool ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # fails
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A suite of SGML/XML processing tools";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.mit;
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://openjade.sourceforge.net/";
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|