Ignore:
Timestamp:
02/18/14 08:36:13 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
480db50
Parents:
b0eb497
Message:

Update EasyPBI to 2.3:
Changes Include:
Add ability to build from ports directly again.
Add legacy port-build options to the GUI.
Add item to show current package compile-time options.
Add ability to create a new module from either ports/packages.
Fix a bug in the default wrapper script for 10.x PBI's (container path is /usr/local/ now when running)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/EasyPBI/backend.cpp

    r8eaa615 r0c42827  
    3535} 
    3636 
    37 QStringList Backend::getCmdOutput(QString cmd){ 
     37QStringList Backend::getCmdOutput(QString cmd, QString dir){ 
    3838  QProcess *proc = new QProcess; 
    3939  proc->setProcessChannelMode(QProcess::MergedChannels); 
     40  if( !dir.isEmpty() && QFile::exists(dir) ){ proc->setWorkingDirectory(dir); } 
    4041  proc->start(cmd); 
    4142  while(!proc->waitForFinished(300)){ 
     
    8586  return out; 
    8687} 
     88//================ 
     89//       PORT TOOLS 
     90// ================ 
     91QStringList Backend::getPortOpts(QString portPath){ 
     92  //output format: <option>:::<on/off>:::<description> 
     93  QString cmd = "make showconfig"; 
     94  QStringList list = Backend::getCmdOutput(cmd, portPath); 
     95  //Now parse the output 
     96  QStringList out; 
     97    for(int i=0; i<list.length(); i++){ 
     98      if(list[i].startsWith("===>")){ continue; } //comment 
     99      else if(list[i].simplified().isEmpty()){ continue; } 
     100      QString opt = list[i].section("=",0,0).simplified(); 
     101      QString val = list[i].section(":",0,0).section("=",1,1).simplified(); 
     102      QString desc = list[i].section(":",1,50).simplified(); 
     103      out << opt+":::"+val+":::"+desc; 
     104    } 
     105  return out; 
     106} 
Note: See TracChangeset for help on using the changeset viewer.