reposurgeon: 3.44 -> 4.26
This commit is contained in:
parent
4d8d997105
commit
374ce1b1af
|
@ -1,60 +1,38 @@
|
||||||
{ lib, stdenv, fetchurl, makeWrapper, python27Packages, git
|
{ lib, stdenv, fetchurl, makeWrapper, buildGoModule, git
|
||||||
, docbook_xml_dtd_412, docbook_xsl, asciidoc, xmlto, pypy
|
, asciidoctor, ruby
|
||||||
, breezy ? null, cvs ? null, darcs ? null, fossil ? null
|
}:
|
||||||
, mercurial ? null, monotone ? null, rcs ? null
|
|
||||||
, subversion ? null, cvs_fast_export ? null }:
|
|
||||||
|
|
||||||
with stdenv; with lib;
|
buildGoModule rec {
|
||||||
let
|
pname = "reposurgeon";
|
||||||
inherit (python27Packages) python;
|
version = "4.26";
|
||||||
in mkDerivation rec {
|
|
||||||
name = "reposurgeon-${meta.version}";
|
|
||||||
meta = {
|
|
||||||
description = "A tool for editing version-control repository history";
|
|
||||||
version = "3.44";
|
|
||||||
license = licenses.bsd3;
|
|
||||||
homepage = "http://www.catb.org/esr/reposurgeon/";
|
|
||||||
maintainers = with maintainers; [ dfoxfranke ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-3.44.tar.xz";
|
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-${version}.tar.xz";
|
||||||
sha256 = "0il6hwrsm2qgg0vp5fcjh478y2x4zyw3mx2apcwc7svfj86pf7pn";
|
sha256 = "sha256-FuL5pvIM468hEm6rUBKGW6+WlYv4DPHNnpwpRGzMwlY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# install fails because the files README.md, NEWS, and TODO were not included in the source distribution
|
vendorSha256 = "sha256-KpdXI2Znhe0iCp0DjSZXzUYDZIz2KBRv1/SpaRTFMAc=";
|
||||||
patches = [ ./fix-makefile.patch ];
|
|
||||||
|
|
||||||
buildInputs =
|
subPackages = [ "." ];
|
||||||
[ docbook_xml_dtd_412 docbook_xsl asciidoc xmlto makeWrapper pypy ];
|
|
||||||
|
|
||||||
preBuild = ''
|
runVend = true;
|
||||||
makeFlagsArray=(
|
|
||||||
XML_CATALOG_FILES="${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml"
|
nativeBuildInputs = [ asciidoctor ruby ];
|
||||||
prefix="$out"
|
|
||||||
pyinclude="-I${python}/include/python2.7"
|
postBuild = ''
|
||||||
pylib="-L${python}/lib -lpython2.7"
|
patchShebangs .
|
||||||
)
|
make all HTMLFILES=
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall =
|
postInstall = ''
|
||||||
let
|
make install prefix=$out HTMLFILES=
|
||||||
binpath = makeBinPath (
|
'';
|
||||||
filter (x: x != null)
|
|
||||||
[ out git breezy cvs darcs fossil mercurial
|
meta = {
|
||||||
monotone rcs src subversion cvs_fast_export ]
|
description = "A tool for editing version-control repository history";
|
||||||
);
|
license = lib.licenses.bsd3;
|
||||||
pythonpath = makeSearchPathOutput "lib" python.sitePackages (
|
homepage = "http://www.catb.org/esr/reposurgeon/";
|
||||||
filter (x: x != null)
|
maintainers = with lib.maintainers; [ dfoxfranke ];
|
||||||
[ python27Packages.readline or null python27Packages.hglib or null ]
|
platforms = lib.platforms.all;
|
||||||
);
|
};
|
||||||
in ''
|
|
||||||
for prog in reposurgeon repodiffer repotool; do
|
|
||||||
wrapProgram $out/bin/$prog \
|
|
||||||
--prefix PATH : "${binpath}" \
|
|
||||||
--prefix PYTHONPATH : "${pythonpath}"
|
|
||||||
done
|
|
||||||
''
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue