2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, xmlto, docbook_xml_dtd_412
|
2019-03-06 00:22:19 +00:00
|
|
|
, libxslt, docbook_xsl, autoconf, automake, gettext, libiconv, libtool}:
|
2009-10-22 16:41:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-01-26 22:04:54 +00:00
|
|
|
name = "opensp-1.5.2";
|
2009-10-22 16:41:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-01-26 22:04:54 +00:00
|
|
|
url = mirror://sourceforge/openjade/OpenSP-1.5.2.tar.gz;
|
|
|
|
sha256 = "1khpasr6l0a8nfz6kcf3s81vgdab8fm2dj291n5r2s53k228kx2p";
|
2009-10-22 16:41:39 +01:00
|
|
|
};
|
|
|
|
|
2019-03-06 00:22:19 +00:00
|
|
|
postPatch = ''
|
2010-01-26 22:04:54 +00:00
|
|
|
sed -i s,/usr/share/sgml/docbook/xml-dtd-4.1.2/,${docbook_xml_dtd_412}/xml/dtd/docbook/, \
|
|
|
|
docsrc/*.xml
|
|
|
|
'';
|
|
|
|
|
2019-03-06 00:22:19 +00:00
|
|
|
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";
|
|
|
|
})
|
2014-08-21 03:30:50 +01:00
|
|
|
];
|
2019-03-06 00:22:19 +00:00
|
|
|
|
2013-03-18 14:05:53 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2014-04-09 14:09:06 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2014-10-23 23:50:44 +01:00
|
|
|
preConfigure = if stdenv.isCygwin then "autoreconf -fi" else null;
|
|
|
|
|
|
|
|
# need autoconf, automake, gettext, and libtool for reconfigure
|
2019-03-06 00:22:19 +00:00
|
|
|
nativeBuildInputs = stdenv.lib.optionals stdenv.isCygwin [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
buildInputs = [ xmlto docbook_xml_dtd_412 libxslt docbook_xsl gettext libiconv ];
|
2010-01-26 22:04:54 +00:00
|
|
|
|
2018-04-25 04:20:18 +01:00
|
|
|
doCheck = false; # fails
|
|
|
|
|
2009-10-22 16:41:39 +01:00
|
|
|
meta = {
|
|
|
|
description = "A suite of SGML/XML processing tools";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2009-10-22 16:41:39 +01:00
|
|
|
homepage = http://openjade.sourceforge.net/;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-10-22 16:41:39 +01:00
|
|
|
};
|
|
|
|
}
|