Commit Graph

6 Commits

Author SHA1 Message Date
Tony Theodore 5c05b41b7e package libmodplug: enable shared build 2014-04-04 09:42:01 +11:00
Volker Grabsch e412eb642d Move package versions from index.html back into the src/*.mk files
Most of the automatic conversion was done using the following Python script:

import os
import re
pkgs = sorted(mkfile[:-len('.mk')] for mkfile in os.listdir('src') if mkfile.endswith('.mk'))
with open('index.html', 'rb') as f:
    index = f.read()
pkgs_index = re.findall('<td class="package">([^<]*)</td>', index)
assert pkgs_index == pkgs
versions = dict(re.findall('<td id="([^"]*)-version">([^<]*)</td>', index))
assert sorted(versions.keys()) == pkgs
for pkg in pkgs:
    version = versions[pkg]
    with open('src/' + pkg + '.mk', 'rb') as f:
        mk = f.read()
    checksumpos = mk.index('\n$(PKG)_CHECKSUM ')
    versionline = '\n$(PKG)_VERSION  := %(version)s' % {'version': version}
    newmk = mk[:checksumpos] + versionline + mk[checksumpos:]
    with open('src/' + pkg + '.mk', 'wb') as f:
        f.write(newmk)
2013-07-22 01:41:31 +02:00
Volker Grabsch a34ea233b1 Fix initial comments of all src/*.mk files 2013-07-21 18:47:20 +02:00
Tony Theodore 4ed13a9f30 all packages: use $(WGET) portability variable 2012-05-16 17:49:40 +10:00
Tony Theodore 1ca4d90c7a various packages: fix references to mingw-cross-env and doc/index.html 2012-05-02 21:36:59 +10:00
Nikos Chantziaras 11f0475dd5 new package: libmodplug 2012-04-23 21:59:47 +10:00