2009-10-18 04:44:01 +00:00
|
|
|
args: with args;
|
|
|
|
|
2009-10-20 10:33:38 +00:00
|
|
|
assert stdenv.gcc.gcc != null;
|
2009-10-19 20:47:21 +00:00
|
|
|
|
2009-10-18 04:44:01 +00:00
|
|
|
# NOTE: ! If Scribus doesn't render text try another font.
|
|
|
|
|
|
|
|
# a lot of templates, colour palettes, colour profiles or gradients
|
|
|
|
# will be released with the next version of scribus - So don't miss them
|
|
|
|
# when upgrading this package
|
|
|
|
|
2010-04-10 22:33:44 +00:00
|
|
|
#let useCairo = true;
|
|
|
|
let useCairo = false;
|
2009-10-18 04:44:01 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2010-04-10 22:33:44 +00:00
|
|
|
name = "scribus-1.3.3.14";
|
2009-10-18 04:44:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-04-10 22:33:44 +00:00
|
|
|
url = mirror://sourceforge/scribus/scribus/1.3.3.14/scribus-1.3.3.14.tar.bz2;
|
|
|
|
sha256 = "1ig7x6vxhqgjlpnv6hkzpb6gj4yvxsrx7rw900zlp7g6zxl01iyy";
|
2009-10-18 04:44:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = if useCairo then "-DWANT_CAIRO=1" else "";
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
set -x
|
|
|
|
mkdir -p build;
|
|
|
|
cd build
|
|
|
|
eval -- "cmake .. $cmakeFlags"
|
|
|
|
set +x
|
|
|
|
'';
|
|
|
|
|
2009-10-20 10:33:38 +00:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig /*<- required fro cairo only?*/ cmake freetype lcms libtiff libxml2 libart_lgpl qt
|
|
|
|
python cups fontconfig
|
|
|
|
libXaw libXext libX11 libXtst libXi libXinerama
|
|
|
|
libjpeg libtiff zlib libpng
|
|
|
|
] ++ lib.optional useCairo cairo;
|
2009-10-18 04:44:01 +00:00
|
|
|
|
|
|
|
# fix rpath which is removed by cmake..
|
|
|
|
postFixup = ''
|
2010-03-13 06:07:41 +00:00
|
|
|
for i in $buildNativeInputs ${stdenv.gcc.gcc}; do
|
2009-10-18 04:44:01 +00:00
|
|
|
[ -d "$i/lib" ] && RPATH="$RPATH:$i/lib"
|
|
|
|
[ -d "$i/lib64" ] && RPATH="$RPATH:$i/lib64"
|
|
|
|
done
|
|
|
|
patchelf --set-rpath "''\${RPATH:1}" $out/bin/scribus
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2009-10-20 10:33:38 +00:00
|
|
|
maintainers = [lib.maintainers.marcweber];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
description = "Desktop Publishing (DTP) and Layout program for Linux.";
|
|
|
|
homepage = http://www.scribus.net;
|
|
|
|
license = "GPLv2";
|
|
|
|
};
|
2009-10-18 04:44:01 +00:00
|
|
|
}
|
|
|
|
|