2016-08-14 11:01:09 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, python27Packages, git
|
2018-08-02 04:47:37 +01:00
|
|
|
, docbook_xml_dtd_412, docbook_xsl, asciidoc, xmlto, pypy
|
2016-08-14 11:01:09 +01:00
|
|
|
, bazaar ? null, cvs ? null, darcs ? null, fossil ? null
|
2018-07-21 01:44:44 +01:00
|
|
|
, mercurial ? null, monotone ? null, rcs ? null
|
2016-08-14 11:01:09 +01:00
|
|
|
, subversion ? null, cvs_fast_export ? null }:
|
|
|
|
|
2015-08-26 01:08:33 +01:00
|
|
|
with stdenv; with lib;
|
2016-08-14 11:01:09 +01:00
|
|
|
let
|
2018-08-02 04:47:37 +01:00
|
|
|
inherit (python27Packages) python;
|
2016-08-14 11:01:09 +01:00
|
|
|
in mkDerivation rec {
|
2015-08-26 01:08:33 +01:00
|
|
|
name = "reposurgeon-${meta.version}";
|
|
|
|
meta = {
|
|
|
|
description = "A tool for editing version-control repository history";
|
2018-08-02 04:47:37 +01:00
|
|
|
version = "3.44";
|
2015-08-26 01:08:33 +01:00
|
|
|
license = licenses.bsd3;
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.catb.org/esr/reposurgeon/;
|
2015-08-26 01:08:33 +01:00
|
|
|
maintainers = with maintainers; [ dfoxfranke ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-08-02 04:47:37 +01:00
|
|
|
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-3.44.tar.xz";
|
|
|
|
sha256 = "0il6hwrsm2qgg0vp5fcjh478y2x4zyw3mx2apcwc7svfj86pf7pn";
|
2015-08-26 01:08:33 +01:00
|
|
|
};
|
|
|
|
|
2018-08-02 04:47:37 +01:00
|
|
|
# install fails because the files README.md, NEWS, and TODO were not included in the source distribution
|
|
|
|
patches = [ ./fix-makefile.patch ];
|
2015-08-26 01:08:33 +01:00
|
|
|
|
|
|
|
buildInputs =
|
2018-08-02 04:47:37 +01:00
|
|
|
[ docbook_xml_dtd_412 docbook_xsl asciidoc xmlto makeWrapper pypy ];
|
2015-08-26 01:08:33 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(
|
2018-07-17 21:11:16 +01:00
|
|
|
XML_CATALOG_FILES="${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml"
|
2015-08-26 01:08:33 +01:00
|
|
|
prefix="$out"
|
2016-08-14 11:01:09 +01:00
|
|
|
pyinclude="-I${python}/include/python2.7"
|
|
|
|
pylib="-L${python}/lib -lpython2.7"
|
2015-08-26 01:08:33 +01:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
let
|
2016-04-13 13:53:51 +01:00
|
|
|
binpath = makeBinPath (
|
2015-08-26 01:08:33 +01:00
|
|
|
filter (x: x != null)
|
|
|
|
[ out git bazaar cvs darcs fossil mercurial
|
|
|
|
monotone rcs src subversion cvs_fast_export ]
|
|
|
|
);
|
2016-08-14 11:01:09 +01:00
|
|
|
pythonpath = makeSearchPathOutput "lib" python.sitePackages (
|
2015-08-26 01:08:33 +01:00
|
|
|
filter (x: x != null)
|
|
|
|
[ python27Packages.readline or null python27Packages.hglib or null ]
|
|
|
|
);
|
|
|
|
in ''
|
|
|
|
for prog in reposurgeon repodiffer repotool; do
|
|
|
|
wrapProgram $out/bin/$prog \
|
|
|
|
--prefix PATH : "${binpath}" \
|
|
|
|
--prefix PYTHONPATH : "${pythonpath}"
|
|
|
|
done
|
|
|
|
''
|
2018-07-17 21:11:16 +01:00
|
|
|
;
|
2015-08-26 01:08:33 +01:00
|
|
|
}
|