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:
parent
487235e2f0
commit
a6ddb1f666
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, fetchFromGitLab, git, bash }:
|
{ stdenv, fetchFromGitLab, git, bash }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.1.2";
|
version = "1.3.0";
|
||||||
name = "git-latexdiff-${version}";
|
name = "git-latexdiff-${version}";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
sha256 = "1alnrjcf3f1qv7fk8h9yachmdz7mjgcynlgsvchfgcb2cpdavxjg";
|
sha256 = "05fnhr1pqvj8l25vi9hdccwfk4mv2f0pfhn05whbdvf66gyl4fs9";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
repo = "git-latexdiff";
|
repo = "git-latexdiff";
|
||||||
owner = "git-latexdiff";
|
owner = "git-latexdiff";
|
||||||
@ -15,11 +15,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
patches = [ ./shebang.patch ./version-test.patch ];
|
patches = [ ./version-test.patch ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace git-latexdiff \
|
substituteInPlace git-latexdiff \
|
||||||
--replace "@GIT_LATEXDIFF_VERSION@" "v${version}"
|
--replace "@GIT_LATEXDIFF_VERSION@" "v${version}"
|
||||||
|
patchShebangs git-latexdiff
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -30,8 +31,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "View diff on LaTeX source files on the generated PDF files";
|
description = "View diff on LaTeX source files on the generated PDF files";
|
||||||
|
homepage = https://gitlab.com/git-latexdiff/git-latexdiff;
|
||||||
maintainers = [ ];
|
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;
|
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
|
+++ src/git-latexdiff 2016-01-26 14:40:23.700381943 +0100
|
||||||
@@ -44,11 +44,7 @@
|
@@ -44,11 +44,7 @@
|
||||||
git_latexdiff_version='@GIT_LATEXDIFF_VERSION@'
|
git_latexdiff_version='@GIT_LATEXDIFF_VERSION@'
|
||||||
|
|
||||||
git_latexdiff_compute_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')
|
- (cd "$(dirname "$0")" && git describe --tags HEAD 2>/dev/null || echo 'Unknown version')
|
||||||
- else
|
- else
|
||||||
- echo "$git_latexdiff_version"
|
- echo "$git_latexdiff_version"
|
||||||
- fi
|
- fi
|
||||||
+ echo "$git_latexdiff_version"
|
+ echo "$git_latexdiff_version"
|
||||||
}
|
}
|
||||||
|
|
||||||
usage () {
|
usage () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user