adding scribus - don't miss the comment about fonts!
svn path=/nixpkgs/trunk/; revision=17866
This commit is contained in:
parent
5b3c7c6b7a
commit
9ea9133183
|
@ -0,0 +1,55 @@
|
||||||
|
args: with args;
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
let useCairo = true;
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
|
||||||
|
name = "scribus-1.3.3.13";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = mirror://sourceforge/scribus/scribus/1.3.3.13/scribus-1.3.3.13.tar.bz2;
|
||||||
|
sha256 = "06l4ndfsw7ss7mdr6a6km9fbr9p2m3b5idm3n8lpgwk2ss0mw9as";
|
||||||
|
};
|
||||||
|
|
||||||
|
cmakeFlags = if useCairo then "-DWANT_CAIRO=1" else "";
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
set -x
|
||||||
|
mkdir -p build;
|
||||||
|
cd build
|
||||||
|
eval -- "cmake .. $cmakeFlags"
|
||||||
|
set +x
|
||||||
|
'';
|
||||||
|
|
||||||
|
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
|
||||||
|
] ++ (if useCairo then [cairo] else []);
|
||||||
|
|
||||||
|
# fix rpath which is removed by cmake..
|
||||||
|
postFixup = ''
|
||||||
|
for i in $buildInputs ${stdenv.gcc.gcc}; do
|
||||||
|
[ -d "$i/lib" ] && RPATH="$RPATH:$i/lib"
|
||||||
|
[ -d "$i/lib64" ] && RPATH="$RPATH:$i/lib64"
|
||||||
|
done
|
||||||
|
patchelf --set-rpath "''\${RPATH:1}" $out/bin/scribus
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
maintainers = [lib.maintainers.marcweber];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
description = "Desktop Publishing (DTP) and Layout program for Linux.";
|
||||||
|
homepage = http://www.scribus.net;
|
||||||
|
license = "GPLv2";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -7589,6 +7589,14 @@ let
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
scribus = import ../applications/office/scribus {
|
||||||
|
inherit fetchurl stdenv lib cmake pkgconfig freetype lcms libtiff libxml2
|
||||||
|
cairo python cups fontconfig zlib libjpeg libpng;
|
||||||
|
inherit (gnome) libart_lgpl;
|
||||||
|
inherit (xlibs) libXaw libXext libX11 libXtst libXi libXinerama;
|
||||||
|
qt = qt3;
|
||||||
|
};
|
||||||
|
|
||||||
skype_linux = import ../applications/networking/skype {
|
skype_linux = import ../applications/networking/skype {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
inherit glibc alsaLib freetype fontconfig libsigcxx gcc;
|
inherit glibc alsaLib freetype fontconfig libsigcxx gcc;
|
||||||
|
|
Loading…
Reference in New Issue