Merge pull request #58152 from dtzWill/update/bleachbit-2.2
bleachbit: 2.0 -> 2.2
This commit is contained in:
commit
47fc99f533
@ -1,27 +1,27 @@
|
|||||||
{ stdenv, pythonPackages, fetchurl }:
|
{ stdenv, pythonPackages, fetchurl, gettext }:
|
||||||
pythonPackages.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
name = "bleachbit-${version}";
|
pname = "bleachbit";
|
||||||
version = "2.0";
|
version = "2.2";
|
||||||
|
|
||||||
namePrefix = "";
|
format = "other";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/bleachbit/${name}.tar.bz2";
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "0ps98zx4n13q92bq7ykqi6hj3i7brdqgm87i9gk6ibvljp1vxdz9";
|
sha256 = "1yj9bc3k6s1aib7znb79h5rybfv691zz4szxkwf9fm9nr0dws603";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pythonPackages.wrapPython ];
|
nativeBuildInputs = [ gettext ];
|
||||||
|
|
||||||
doCheck = false;
|
# Patch the many hardcoded uses of /usr/share/ and /usr/bin
|
||||||
|
postPatch = ''
|
||||||
postInstall = ''
|
find -type f -exec sed -i -e 's@/usr/share@${placeholder "out"}/share@g' {} \;
|
||||||
mkdir -p $out/bin
|
find -type f -exec sed -i -e 's@/usr/bin@${placeholder "out"}/bin@g' {} \;
|
||||||
cp bleachbit.py $out/bin/bleachbit
|
|
||||||
chmod +x $out/bin/bleachbit
|
|
||||||
|
|
||||||
substituteInPlace $out/bin/bleachbit --replace "#!/usr/bin/env python" "#!${pythonPackages.python.interpreter}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ pygtk ];
|
propagatedBuildInputs = with pythonPackages; [ pygtk ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user