git-latexdiff: 1.1.2 -> 1.3.0

* git-latexdiff: v1.1.2 -> v1.3.0  (#50217)

* git-latexdiff: refresh meta
Homepage is https://gitlab.com/git-latexdiff/git-latexdiff
License is BSD 3-Clause
This commit is contained in:
qfjp 2018-11-18 18:56:02 -05:00 committed by Renaud
parent 487235e2f0
commit a6ddb1f666
3 changed files with 9 additions and 17 deletions

@ -1,11 +1,11 @@
{ stdenv, fetchFromGitLab, git, bash }:
stdenv.mkDerivation rec {
version = "1.1.2";
version = "1.3.0";
name = "git-latexdiff-${version}";
src = fetchFromGitLab {
sha256 = "1alnrjcf3f1qv7fk8h9yachmdz7mjgcynlgsvchfgcb2cpdavxjg";
sha256 = "05fnhr1pqvj8l25vi9hdccwfk4mv2f0pfhn05whbdvf66gyl4fs9";
rev = "v${version}";
repo = "git-latexdiff";
owner = "git-latexdiff";
@ -15,11 +15,12 @@ stdenv.mkDerivation rec {
dontBuild = true;
patches = [ ./shebang.patch ./version-test.patch ];
patches = [ ./version-test.patch ];
postPatch = ''
substituteInPlace git-latexdiff \
--replace "@GIT_LATEXDIFF_VERSION@" "v${version}"
patchShebangs git-latexdiff
'';
installPhase = ''
@ -30,8 +31,9 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "View diff on LaTeX source files on the generated PDF files";
homepage = https://gitlab.com/git-latexdiff/git-latexdiff;
maintainers = [ ];
license = licenses.free; # https://gitlab.com/git-latexdiff/git-latexdiff/issues/9
license = licenses.bsd3; # https://gitlab.com/git-latexdiff/git-latexdiff/issues/9
platforms = platforms.unix;
};
}

@ -1,10 +0,0 @@
Fix for https://gitlab.com/git-latexdiff/git-latexdiff/issues/8
---
--- src/git-latexdiff 2016-01-26 14:04:54.338568955 +0100
+++ src/git-latexdiff 2016-01-26 14:40:23.700381943 +0100
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
# Main author: Matthieu Moy <Matthieu.Moy@imag.fr> (2012 - 2015)
# (See the Git history for other contributors)

@ -4,14 +4,14 @@ Fix for https://gitlab.com/git-latexdiff/git-latexdiff/issues/7
+++ src/git-latexdiff 2016-01-26 14:40:23.700381943 +0100
@@ -44,11 +44,7 @@
git_latexdiff_version='@GIT_LATEXDIFF_VERSION@'
git_latexdiff_compute_version () {
- if [ "$git_latexdiff_version" = '@GIT_LATEXDIFF_VERSION@' ]; then
- if [ "$git_latexdiff_version" = '@GIT_LATEXDIFF''_VERSION@' ]; then
- (cd "$(dirname "$0")" && git describe --tags HEAD 2>/dev/null || echo 'Unknown version')
- else
- echo "$git_latexdiff_version"
- fi
+ echo "$git_latexdiff_version"
}
usage () {