HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #301

Ticket #301: sourceurl.patch

File sourceurl.patch, 1.7 KB (added by jrabbit, 5 years ago)
  • haikuporter

     
    933933        if self.bepKeys['COPYRIGHT']: 
    934934            for copyright in self.bepKeys['COPYRIGHT']: 
    935935                opd.write('Copyright:\t' + copyright + '\n') 
    936  
     936         
     937        if ' '.join(self.bepKeys['LICENSE'][0].split()[:2]) in ['GNU GPL',  
     938        'GNU LGPL']: 
     939            #  
     940            # srcurl = self.bepKeys['SRC_URI'][0] 
     941            # if '+' in srcurl[:10]: 
     942            #     srcurl = srcurl.split('+', 1)[1] 
     943            date = time.strftime('-%Y-%m-%d', time.localtime()) 
     944            if os.getenv('HAIKUVERSION'): 
     945                haiku_name = os.getenv('HAIKUVERSION') 
     946            else: 
     947                haiku_name = 'development' 
     948            srcurl= 'http://haiku-files.org/files/releases/%s/sources/%s-%s_haiku-%s.tar.xz' % (haiku_name, self.portName, self.portVersion, date) 
     949            bepurl_base = 'http://ports.haiku-files.org/' + \ 
     950            'browser/haikuports/trunk/' + self.portCategory 
     951             
     952            bepurl = bepurl_base + '/' + self.portName+ '-'\ 
     953            + self.portVersion + '.bep' 
     954             
     955            opd.write('SourceURL:\t' + 'Download <' + srcurl + '>' +'\n') 
     956            opd.write('SourceURL:\t' + 'Bep-file <' + bepurl + '>' +'\n') 
     957            patchFilePath = self.patchesDir + '/' + self.portName + '-'\ 
     958                 + self.portVersion + '.patch' 
     959            if os.path.exists(patchFilePath): 
     960                patchurl = bepurl_base + '/patches' 
     961                opd.write('SourceURL:\t' + 'Patches <' + patchurl + '>' +'\n') 
    937962        opd.close() 
    938963 
    939964    def makePackage(self): 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/