| 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') |