~ubuntu-branches/ubuntu/wily/octave/wily

« back to all changes in this revision

Viewing changes to .pc/drop_version_from_pkg_function_calls/scripts/pkg/pkg.m

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-05-14 12:42:41 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130514124241-dqow8bc0l4r3yj93
Tags: 3.6.4-2
* Adapt for Texinfo 5
  - add_info_dir_categories: use @dircategory in the patch
  - texinfo5.diff: new patch, fixes compatibility issues with Texinfo 5
* Upgrade to FLTK 1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1342
1342
    src = fullfile (packdir, "src");
1343
1343
    octave_bindir = octave_config_info ("bindir");
1344
1344
    ver = version ();
1345
 
    mkoctfile = fullfile (octave_bindir, sprintf ("mkoctfile-%s", ver));
1346
 
    octave_config = fullfile (octave_bindir, sprintf ("octave-config-%s", ver));
 
1345
    mkoctfile_program = fullfile (octave_bindir, sprintf ("mkoctfile-%s", ver));
 
1346
    octave_config_program = fullfile (octave_bindir, sprintf ("octave-config-%s", ver));
1347
1347
    octave_binary = fullfile (octave_bindir, sprintf ("octave-%s", ver));
1348
 
    cenv = {"MKOCTFILE"; mkoctfile;
1349
 
            "OCTAVE_CONFIG"; octave_config;
 
1348
    cenv = {"MKOCTFILE"; mkoctfile_program;
 
1349
            "OCTAVE_CONFIG"; octave_config_program;
1350
1350
            "OCTAVE"; octave_binary;
1351
1351
            "INSTALLDIR"; desc.dir};
1352
1352
    scenv = sprintf ("%s=\"%s\" ", cenv{:});
1354
1354
    if (exist (fullfile (src, "configure"), "file"))
1355
1355
      flags = "";
1356
1356
      if (isempty (getenv ("CC")))
1357
 
        flags = cstrcat (flags, " CC=\"", octave_config_info ("CC"), "\"");
 
1357
        flags = cstrcat (flags, " CC=\"", mkoctfile ("-p", "CC"), "\"");
1358
1358
      endif
1359
1359
      if (isempty (getenv ("CXX")))
1360
 
        flags = cstrcat (flags, " CXX=\"", octave_config_info ("CXX"), "\"");
 
1360
        flags = cstrcat (flags, " CXX=\"", mkoctfile ("-p", "CXX"), "\"");
1361
1361
      endif
1362
1362
      if (isempty (getenv ("AR")))
1363
 
        flags = cstrcat (flags, " AR=\"", octave_config_info ("AR"), "\"");
 
1363
        flags = cstrcat (flags, " AR=\"", mkoctfile ("-p", "AR"), "\"");
1364
1364
      endif
1365
1365
      if (isempty (getenv ("RANLIB")))
1366
 
        flags = cstrcat (flags, " RANLIB=\"", octave_config_info ("RANLIB"), "\"");
 
1366
        flags = cstrcat (flags, " RANLIB=\"", mkoctfile ("-p", "RANLIB"), "\"");
1367
1367
      endif
1368
1368
      [status, output] = shell (cstrcat ("cd '", src, "'; ", scenv,
1369
1369
                                         "./configure --prefix=\"",
1751
1751
        value = strip (line (colon+1:end));
1752
1752
        if (length (value) == 0)
1753
1753
            fclose (fid);
1754
 
            error ("The keyword `%s' of the package `%s' has an empty value",
 
1754
            error ("The keyword '%s' of the package '%s' has an empty value",
1755
1755
                    keyword, desc.name);
1756
1756
        endif
1757
1757
        desc.(keyword) = value;
1820
1820
      sub = dep(lpar(1)+1:rpar(1)-1);
1821
1821
      parts = strsplit (sub, " ", true);
1822
1822
      if (length (parts) != 2)
1823
 
        error ("incorrect syntax for dependency `%s' in the DESCRIPTION file\n",
 
1823
        error ("incorrect syntax for dependency '%s' in the DESCRIPTION file\n",
1824
1824
               dep);
1825
1825
      endif
1826
1826
      operator = parts{1};
2416
2416
endfunction
2417
2417
 
2418
2418
function list = list_forge_packages ()
2419
 
  [list, succ] = urlread ("http://octave.sourceforge.net/list_packages.php");
 
2419
  [list, succ] = urlread ("http://packages.octave.org/list_packages.php");
2420
2420
  if (succ)
2421
2421
    list = strsplit (list, " \n\t", true);
2422
2422
  else