Merge pull request #54677 from jtojnar/mypaint2

mypaint: 1.2.1 → 2.0.0-beta.0
This commit is contained in:
Jan Tojnar 2020-02-19 01:57:21 +01:00 committed by GitHub
commit e2b4abe3c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 85 additions and 27 deletions

View File

@ -36,7 +36,7 @@
, libmypaint , libmypaint
, gexiv2 , gexiv2
, harfbuzz , harfbuzz
, mypaint-brushes , mypaint-brushes1
, libwebp , libwebp
, libheif , libheif
, libgudev , libgudev
@ -102,7 +102,7 @@ in stdenv.mkDerivation rec {
xorg.libXpm xorg.libXpm
glib-networking glib-networking
libmypaint libmypaint
mypaint-brushes mypaint-brushes1
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
AppKit AppKit
Cocoa Cocoa

View File

@ -7,59 +7,81 @@
, libpng , libpng
, librsvg , librsvg
, gobject-introspection , gobject-introspection
, libmypaint
, mypaint-brushes
, gdk-pixbuf , gdk-pixbuf
, pkgconfig , pkgconfig
, python2 , python3
, scons
, swig , swig
, wrapGAppsHook , wrapGAppsHook
}: }:
let let
inherit (python2.pkgs) pycairo pygobject3 numpy; inherit (python3.pkgs) pycairo pygobject3 numpy buildPythonApplication;
in stdenv.mkDerivation { in buildPythonApplication rec {
pname = "mypaint"; pname = "mypaint";
version = "1.2.1"; version = "2.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mypaint"; owner = "mypaint";
repo = "mypaint"; repo = "mypaint";
rev = "bcf5a28d38bbd586cc9d4cee223f849fa303864f"; rev = "v${version}";
sha256 = "1zwx7n629vz1jcrqjqmw6vl6sxdf81fq6a5jzqiga8167gg8s9pf"; sha256 = "180kyilhf81ndhwl1hlvy82gh6hxpcvka2d1nkghbpgy431rls6r";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ nativeBuildInputs = [
intltool intltool
pkgconfig pkgconfig
scons
swig swig
wrapGAppsHook wrapGAppsHook
gobject-introspection # for setup hook gobject-introspection # for setup hook
]; ];
buildInputs = [ buildInputs = [
gtk3 gtk3
gdk-pixbuf gdk-pixbuf
libmypaint
mypaint-brushes
json_c json_c
lcms2 lcms2
libpng libpng
librsvg librsvg
pycairo pycairo
pygobject3 pygobject3
python2
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
numpy numpy
pycairo
pygobject3
]; ];
postInstall = '' checkInputs = [
sed -i -e 's|/usr/bin/env python2.7|${python2}/bin/python|' $out/bin/mypaint gtk3
];
buildPhase = ''
runHook preBuild
${python3.interpreter} setup.py build
runHook postBuild
''; '';
preFixup = '' installPhase = ''
gappsWrapperArgs+=(--prefix PYTHONPATH : $PYTHONPATH) runHook preInstall
${python3.interpreter} setup.py managed_install --prefix=$out
runHook postInstall
'';
checkPhase = ''
runHook preCheck
HOME=$TEMPDIR ${python3.interpreter} setup.py test
runHook postCheck
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -0,0 +1,43 @@
{ stdenv
, fetchpatch
, autoconf
, automake
, fetchFromGitHub
, pkgconfig
}:
stdenv.mkDerivation rec {
pname = "mypaint-brushes";
version = "1.3.0";
src = fetchFromGitHub {
owner = "mypaint";
repo = pname;
rev = "v${version}";
sha256 = "1iz89z6v2mp8j1lrf942k561s8311i3s34ap36wh4rybb2lq15m0";
};
patches = [
# build with automake 1.16
(fetchpatch {
url = https://github.com/Jehan/mypaint-brushes/commit/1e9109dde3bffd416ed351c3f30ecd6ffd0ca2cd.patch;
sha256 = "0mi8rwbirl0ib22f2hz7kdlgi4hw8s3ab29b003dsshdyzn5iha9";
})
];
nativeBuildInputs = [
autoconf
automake
pkgconfig
];
preConfigure = "./autogen.sh";
meta = with stdenv.lib; {
homepage = "http://mypaint.org/";
description = "Brushes used by MyPaint and other software using libmypaint.";
license = licenses.cc0;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.unix;
};
}

View File

@ -1,5 +1,4 @@
{ stdenv { stdenv
, fetchpatch
, autoconf , autoconf
, automake , automake
, fetchFromGitHub , fetchFromGitHub
@ -8,23 +7,15 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mypaint-brushes"; pname = "mypaint-brushes";
version = "1.3.0"; version = "2.0.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mypaint"; owner = "mypaint";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1iz89z6v2mp8j1lrf942k561s8311i3s34ap36wh4rybb2lq15m0"; sha256 = "0kcqz13vzpy24dhmrx9hbs6s7hqb8y305vciznm15h277sabpmw9";
}; };
patches = [
# build with automake 1.16
(fetchpatch {
url = https://github.com/Jehan/mypaint-brushes/commit/1e9109dde3bffd416ed351c3f30ecd6ffd0ca2cd.patch;
sha256 = "0mi8rwbirl0ib22f2hz7kdlgi4hw8s3ab29b003dsshdyzn5iha9";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
autoconf autoconf
automake automake

View File

@ -20678,6 +20678,8 @@ in
mypaint = callPackage ../applications/graphics/mypaint { }; mypaint = callPackage ../applications/graphics/mypaint { };
mypaint-brushes1 = callPackage ../development/libraries/mypaint-brushes/1.0.nix { };
mypaint-brushes = callPackage ../development/libraries/mypaint-brushes { }; mypaint-brushes = callPackage ../development/libraries/mypaint-brushes { };
mythtv = libsForQt5.callPackage ../applications/video/mythtv { mythtv = libsForQt5.callPackage ../applications/video/mythtv {