Merge remote-tracking branch 'upstream/staging' into deps-reorg
This commit is contained in:
@@ -50,6 +50,8 @@ stdenv.mkDerivation {
|
||||
sed -i -e 's|(asymptote/asymptote)|(asymptote)|' $out/share/info/asymptote.info
|
||||
rmdir $out/share/info/asymptote
|
||||
rm $out/share/info/dir
|
||||
|
||||
rm -rf "$out"/share/texmf
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
{ stdenv, fetchurl, autoconf, automake, pkgconfig
|
||||
, perl, flex, bison, readline, libexif
|
||||
, x11Support ? true, SDL
|
||||
, svgSupport ? true, inkscape
|
||||
, asciiArtSupport ? true, aalib
|
||||
, gifSupport ? true, giflib
|
||||
, tiffSupport ? true, libtiff
|
||||
, jpegSupport ? true, libjpeg
|
||||
, pngSupport ? true, libpng
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fim-${version}";
|
||||
version = "0.5rc3";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://savannah/fbi-improved/fim-0.5-rc3.tar.gz;
|
||||
sha256 = "12aka85h469zfj0zcx3xdpan70gq8nf5rackgb1ldcl9mqjn50c2";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace doc/vim2html.pl \
|
||||
--replace /usr/bin/perl ${perl}/bin/perl
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoconf automake pkgconfig ];
|
||||
|
||||
buildInputs = with stdenv.lib;
|
||||
[ perl flex bison readline libexif ]
|
||||
++ optional x11Support SDL
|
||||
++ optional svgSupport inkscape
|
||||
++ optional asciiArtSupport aalib
|
||||
++ optional gifSupport giflib
|
||||
++ optional tiffSupport libtiff
|
||||
++ optional jpegSupport libjpeg
|
||||
++ optional pngSupport libpng;
|
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional x11Support "-lSDL";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A lightweight, highly customizable and scriptable image viewer";
|
||||
longDescription = ''
|
||||
FIM (Fbi IMproved) is a lightweight, console based image viewer that aims
|
||||
to be a highly customizable and scriptable for users who are comfortable
|
||||
with software like the VIM text editor or the Mutt mail user agent.
|
||||
'';
|
||||
homepage = http://www.nongnu.org/fbi-improved/;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ primeos ];
|
||||
};
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
patchPhase() {
|
||||
for i in $patches; do
|
||||
header "applying patch $i" 3
|
||||
patch -p0 < $i
|
||||
stopNest
|
||||
done
|
||||
|
||||
configureImakefiles "s:__PREFIX_PNG:$libpng:"
|
||||
configureImakefiles "s:__PREFIX:$out:"
|
||||
}
|
||||
|
||||
configureImakefiles() {
|
||||
local sedcmd=$1
|
||||
|
||||
sed "${sedcmd}" fig2dev/Imakefile > tmpsed
|
||||
cp tmpsed fig2dev/Imakefile
|
||||
|
||||
sed "${sedcmd}" fig2dev/dev/Imakefile > tmpsed
|
||||
cp tmpsed fig2dev/dev/Imakefile
|
||||
|
||||
sed "${sedcmd}" transfig/Imakefile > tmpsed
|
||||
cp tmpsed transfig/Imakefile
|
||||
}
|
||||
|
||||
buildPhase() {
|
||||
xmkmf
|
||||
make Makefiles
|
||||
make
|
||||
}
|
||||
|
||||
preInstall() {
|
||||
mkdir -p $out
|
||||
mkdir -p $out/lib
|
||||
}
|
||||
|
||||
genericBuild
|
||||
@@ -2,34 +2,63 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "transfig-3.2.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.tex.ac.uk/pub/archive/graphics/transfig/transfig.3.2.4.tar.gz;
|
||||
sha256 = "0429snhp5acbz61pvblwlrwv8nxr6gf12p37f9xxwrkqv4ir7dd4";
|
||||
};
|
||||
|
||||
buildInputs = [zlib libjpeg libpng imake];
|
||||
inherit libpng;
|
||||
|
||||
patches = [
|
||||
./patch-fig2dev-dev-Imakefile
|
||||
./patch-fig2dev-Imakefile
|
||||
./patch-transfig-Imakefile
|
||||
./patch-fig2dev-fig2dev.h
|
||||
./patch-fig2dev-dev-gensvg.c
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
runHook prePatch
|
||||
|
||||
configureImakefiles() {
|
||||
local sedcmd=$1
|
||||
|
||||
sed "$sedcmd" fig2dev/Imakefile > tmpsed
|
||||
cp tmpsed fig2dev/Imakefile
|
||||
|
||||
sed "$sedcmd" fig2dev/dev/Imakefile > tmpsed
|
||||
cp tmpsed fig2dev/dev/Imakefile
|
||||
|
||||
sed "$sedcmd" transfig/Imakefile > tmpsed
|
||||
cp tmpsed transfig/Imakefile
|
||||
}
|
||||
|
||||
for i in $patches; do
|
||||
header "applying patch $i" 3
|
||||
patch -p0 < $i
|
||||
stopNest
|
||||
done
|
||||
|
||||
configureImakefiles "s:__PREFIX_PNG:${libpng}:"
|
||||
configureImakefiles "s:__PREFIX:$out:"
|
||||
|
||||
runHook postPatch
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
xmkmf
|
||||
make Makefiles
|
||||
'';
|
||||
|
||||
makeFlags = [ "CC=cc" ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out
|
||||
mkdir -p $out/lib
|
||||
'';
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
patches = [prefixPatch1 prefixPatch2 prefixPatch3 varargsPatch gensvgPatch];
|
||||
|
||||
prefixPatch1 =
|
||||
./patch-fig2dev-dev-Imakefile;
|
||||
|
||||
prefixPatch2 =
|
||||
./patch-fig2dev-Imakefile;
|
||||
|
||||
prefixPatch3 =
|
||||
./patch-transfig-Imakefile;
|
||||
|
||||
varargsPatch =
|
||||
./patch-fig2dev-fig2dev.h;
|
||||
|
||||
gensvgPatch =
|
||||
./patch-fig2dev-dev-gensvg.c;
|
||||
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user