Merge pull request #21565 from peterhoeg/u/rubber

rubber: 1.3 -> 1.4
This commit is contained in:
Jörg Thalheim 2017-01-09 00:29:50 +01:00 committed by GitHub
commit 5b78b3ef4c

View File

@ -1,23 +1,30 @@
{ fetchurl, stdenv, python2Packages, texinfo }: { fetchurl, stdenv, python2Packages, texinfo }:
stdenv.mkDerivation rec { python2Packages.buildPythonApplication rec {
name = "rubber-1.3"; name = "rubber-${version}";
version = "1.4";
src = fetchurl { src = fetchurl {
url = "https://launchpad.net/rubber/trunk/1.3/+download/rubber-1.3.tar.gz"; url = "https://launchpad.net/rubber/trunk/${version}/+download/${name}.tar.gz";
sha256 = "09715apfd6a0haz1mqsxgm8sj4rwzi38gcz2kz020zxk5rh0dksh"; sha256 = "1d7hq19vpb3l31grldbxg8lx1qdd18f5f3gqw96q0lhf58agcjl2";
}; };
buildInputs = [ python2Packages.python texinfo ]; propagatedBuildInputs = [ texinfo ];
nativeBuildInputs = [ python2Packages.wrapPython ];
patchPhase = '' # I couldn't figure out how to pass the proper parameter to disable pdf generation, so we
substituteInPlace configure --replace which "type -P" # use sed to change the default
preBuild = ''
sed -i -r 's/pdf\s+= True/pdf = False/g' setup.py
''; '';
postInstall = "wrapPythonPrograms"; # the check scripts forces python2. If we need to use python3 at some point, we should use
# the correct python
checkPhase = ''
sed -i 's|python=python2|python=${python2Packages.python.interpreter}|' tests/run.sh
cd tests && ${stdenv.shell} run.sh
'';
meta = { meta = with stdenv.lib; {
description = "Wrapper for LaTeX and friends"; description = "Wrapper for LaTeX and friends";
longDescription = '' longDescription = ''
Rubber is a program whose purpose is to handle all tasks related Rubber is a program whose purpose is to handle all tasks related
@ -28,9 +35,9 @@ stdenv.mkDerivation rec {
produce PostScript documents is also included, as well as usage produce PostScript documents is also included, as well as usage
of pdfLaTeX to produce PDF documents. of pdfLaTeX to produce PDF documents.
''; '';
license = stdenv.lib.licenses.gpl2Plus; license = licenses.gpl2Plus;
homepage = http://www.pps.jussieu.fr/~beffara/soft/rubber/; homepage = https://launchpad.net/rubber;
maintainers = [ stdenv.lib.maintainers.ttuegel ]; maintainers = with maintainers; [ ttuegel peterhoeg ];
platforms = stdenv.lib.platforms.unix; platforms = platforms.unix;
}; };
} }