2010-05-01 07:41:40 +00:00
|
|
|
{ stdenv, fetchurl, libxml2, openssl, readline, gawk }:
|
|
|
|
|
2010-04-03 17:34:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-12 07:33:57 +00:00
|
|
|
name = "virtuoso-opensource-6.1.6";
|
2010-04-03 17:34:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-09-05 21:02:21 +00:00
|
|
|
url = "mirror://sourceforge/virtuoso/${name}.tar.gz";
|
2013-12-12 07:33:57 +00:00
|
|
|
sha256 = "0dx0lp7cngdchi0772hp93zzn6sdap7z8s3vay3mzb9xgf0sdgy6";
|
2010-04-03 17:34:14 +00:00
|
|
|
};
|
|
|
|
|
2016-09-27 14:57:10 +00:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
2010-08-06 10:34:34 +00:00
|
|
|
buildInputs = [ libxml2 openssl readline gawk ];
|
2010-04-03 17:34:14 +00:00
|
|
|
|
2014-12-17 18:11:30 +00:00
|
|
|
CPP = "${stdenv.cc}/bin/gcc -E";
|
2010-04-03 17:34:14 +00:00
|
|
|
|
2011-09-05 21:02:21 +00:00
|
|
|
configureFlags = "
|
2016-04-16 17:46:17 +00:00
|
|
|
--enable-shared --disable-all-vads --with-readline=${readline.dev}
|
2010-04-03 17:34:14 +00:00
|
|
|
--disable-hslookup --disable-wbxml2 --without-iodbc
|
2016-04-16 17:44:32 +00:00
|
|
|
--enable-openssl=${openssl.dev}
|
2010-04-03 17:34:14 +00:00
|
|
|
";
|
|
|
|
|
2016-09-27 14:57:10 +00:00
|
|
|
postInstall = ''
|
2011-09-27 15:40:45 +00:00
|
|
|
echo Moving documentation
|
2011-08-10 09:43:20 +00:00
|
|
|
mkdir -pv $out/share/doc
|
|
|
|
mv -v $out/share/virtuoso/doc $out/share/doc/${name}
|
2016-09-27 14:57:10 +00:00
|
|
|
|
2011-12-14 14:09:53 +00:00
|
|
|
echo Removing jars and empty directories
|
2010-04-03 17:34:14 +00:00
|
|
|
find $out -name "*.a" -delete -o -name "*.jar" -delete -o -type d -empty -delete
|
2016-09-27 14:57:10 +00:00
|
|
|
|
|
|
|
for f in $out/lib/*.la; do
|
|
|
|
echo "Fixing $f"
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "${readline.dev}" "${readline.out}/lib" \
|
|
|
|
--replace "${openssl.dev}/lib" "${openssl.out}/lib"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2010-05-01 07:07:31 +00:00
|
|
|
meta = with stdenv.lib; {
|
2011-09-27 15:40:45 +00:00
|
|
|
description = "SQL/RDF database used by, e.g., KDE-nepomuk";
|
2010-05-01 07:07:31 +00:00
|
|
|
homepage = http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/;
|
2016-09-01 17:39:33 +00:00
|
|
|
platforms = platforms.linux;
|
2017-03-27 17:11:17 +00:00
|
|
|
maintainers = [ ];
|
2010-05-01 07:07:31 +00:00
|
|
|
};
|
2010-04-03 17:34:14 +00:00
|
|
|
}
|