octave.pkgs.octproj: init at 2.0.1

This commit is contained in:
Karl Hallsby 2021-01-06 11:45:14 -06:00 committed by Doron Behar
parent 8919d98862
commit 7913c41c71
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ buildOctavePackage
, lib
, fetchurl
, proj # >= 6.3.0
}:
buildOctavePackage rec {
pname = "octproj";
version = "2.0.1";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "1mb8gb0r8kky47ap85h9qqdvs40mjp3ya0nkh45gqhy67ml06paq";
};
# The sed changes below allow for the package to be compiled.
patchPhase = ''
sed -i s/"error(errorText)"/"error(\"%s\", errorText)"/g src/*.cc
sed -i s/"warning(errorText)"/"warning(\"%s\", errorText)"/g src/*.cc
'';
propagatedBuildInputs = [
proj
];
meta = with lib; {
homepage = "https://octave.sourceforge.io/octproj/index.html";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ KarlJoad ];
description = "GNU Octave bindings to PROJ library for cartographic projections and CRS transformations";
};
}

View file

@ -161,6 +161,8 @@ makeScope newScope (self:
octclip = callPackage ../development/octave-modules/octclip { };
octproj = callPackage ../development/octave-modules/octproj { };
signal = callPackage ../development/octave-modules/signal { };
symbolic = callPackage ../development/octave-modules/symbolic {