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