Dear Hydra-Users,

you find the first trial for the gnucobol recipe attached.

It is based on the "simple patch recipe" and some others but I don't
think it will work out of the box:


* most important: I have absolutely no clue where the source download
comes from - or is this a setting in the hydra admin interface? The
correct svn checkout would be:
  svn co svn://svn.code.sf.net/p/open-cobol/code/trunk gnucobol
[I've guessed that a package "subversion" exists and that it must be
included, we don't need it otherwise]

* either libdb must be added as dependency or the configure part must
use "--without-db"

* I'm not sure if the call of the bootstrap script is defined correctly

* It would likely be good to update the po files from the translation
project, this may need another dependecy for rsync but I don't know
where to specify before "make distcheck" run "po/update_linguas.sh"

* I did not found a list of usable packages, can you please point me to it?


Any hints welcomed!
Simon Sobisch

/* Continuous integration of GNU with Hydra/Nix.
   Copyright (C) 2018  Simon Sobisch <[email protected]>

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

{ nixpkgs ? <nixpkgs>
, gnucobol ? { outPath = <gnucobol>; }

let
  meta = {
    homepage = http://www.gnu.org/software/gnucobol;

    description = "GnuCOBOL, a free, modern COBOL compiler";

    longDescription = ''
      GnuCOBOL is a free, modern COBOL compiler.
      GnuCOBOL implements a substantial part of the COBOL 85, COBOL 2002 and 
COBOL 2014
      standards and X/Open COBOL, as well as many extensions included in other 
COBOL compilers
      (IBM COBOL, MicroFocus COBOL, ACUCOBOL-GT and others).
      GnuCOBOL translates COBOL into C and compiles the translated code using a 
native C compiler. 
    '';

    # compiler GPLv3+, runtime LGPLv3+
    license = "GPLv3+";

    maintainers = [
      "Simon Sobisch <[email protected]>"
      "Brian Tiffin <[email protected]>"
    ];
  };
in
  import ../gnu-jobs.nix {
    name = "gnucobol";
    src  = gnucobol;
    inherit nixpkgs meta; 

    systems = ["i686-linux" "x86_64-linux" "x86_64-darwin"];
    
    customEnv = {
      tarball = pkgs: {
        autoconfPhase = ''
          # not using gnulib, but an own bootstrap script
          ./build_aux/bootstrap.sh
        '';
        buildInputs = with pkgs; [
          automake114x
          libgmp
          bison
          flex
          gettext_0_19
          subversion
          gperf
          help2man
          texinfo
          wget
          perl
          lzip
         ]
      } ;
    };
  }

Reply via email to