Merge pull request #39432 from woffs/tuxpaint

tuxpaint: init at 0.9.22
This commit is contained in:
xeji 2018-04-30 22:26:58 +02:00 committed by GitHub
commit 477f111165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ stdenv, fetchurl, SDL, SDL_image, SDL_ttf, SDL_mixer, libpng,
cairo, librsvg, gettext, libpaper, fribidi, pkgconfig, gperf }:
stdenv.mkDerivation rec {
version = "0.9.22";
name = "tuxpaint-${version}";
src = fetchurl {
url = "mirror://sourceforge/tuxpaint/${version}/${name}.tar.gz";
sha256 = "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca";
};
nativeBuildInputs = [ SDL SDL_image SDL_ttf SDL_mixer libpng cairo
librsvg gettext libpaper fribidi pkgconfig gperf ];
hardeningDisable = [ "format" ];
makeFlags = [ "GPERF=${gperf}/bin/gperf"
"PREFIX=$$out"
"COMPLETIONDIR=$$out/share/bash-completion/completions"
];
patches = [ ./tuxpaint-completion.diff ];
postPatch = ''
grep -Zlr include.*SDL . | xargs -0 sed -i -e 's,"SDL,"SDL/SDL,'
'';
# stamps
stamps = fetchurl {
url = "mirror://sourceforge/project/tuxpaint/tuxpaint-stamps/2014-08-23/tuxpaint-stamps-2014.08.23.tar.gz";
sha256 = "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q";
};
postInstall = ''
tar xzf $stamps
cd tuxpaint-stamps-2014.08.23
make install-all PREFIX=$out
rm -rf $out/share/tuxpaint/stamps/military
'';
meta = {
description = "Open Source Drawing Software for Children";
homepage = http://www.tuxpaint.org/;
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ woffs ];
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -0,0 +1,16 @@
--- tuxpaint-0.9.22/src/tuxpaint-completion.bash~ 1970-01-01 01:00:01.000000000 +0100
+++ tuxpaint-0.9.22/src/tuxpaint-completion.bash 2018-03-06 10:54:03.437560921 +0100
@@ -8,7 +8,6 @@
# FIXME: See http://www.debian-administration.org/articles/316 for an intro
# to how we should be doing this... -bjk 2009.09.09
-have tuxpaint &&
_tuxpaint()
{
local cur
@@ -96,4 +95,4 @@
fi
}
-[ "${have:-}" ] && complete -F _tuxpaint $filenames tuxpaint
+complete -F _tuxpaint $filenames tuxpaint

View file

@ -19462,6 +19462,8 @@ with pkgs;
tremulous = callPackage ../games/tremulous { };
tuxpaint = callPackage ../games/tuxpaint { };
speed_dreams = callPackage ../games/speed-dreams {
# Torcs wants to make shared libraries linked with plib libraries (it provides static).
# i686 is the only platform I know than can do that linking without plib built with -fPIC