mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
- Re-generate patch (setup.py) with 'make makepatch' Changelog: https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_3.9.1_.282016-9-1.29
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
--- setup.py.orig 2016-09-01 19:01:36 UTC
|
|
+++ setup.py
|
|
@@ -235,30 +235,7 @@ class hgbuildmo(build):
|
|
description = "build translations (.mo files)"
|
|
|
|
def run(self):
|
|
- if not find_executable('msgfmt'):
|
|
- self.warn("could not find msgfmt executable, no translations "
|
|
- "will be built")
|
|
- return
|
|
-
|
|
- podir = 'i18n'
|
|
- if not os.path.isdir(podir):
|
|
- self.warn("could not find %s/ directory" % podir)
|
|
- return
|
|
-
|
|
- join = os.path.join
|
|
- for po in os.listdir(podir):
|
|
- if not po.endswith('.po'):
|
|
- continue
|
|
- pofile = join(podir, po)
|
|
- modir = join('locale', po[:-3], 'LC_MESSAGES')
|
|
- mofile = join(modir, 'hg.mo')
|
|
- mobuildfile = join('mercurial', mofile)
|
|
- cmd = ['msgfmt', '-v', '-o', mobuildfile, pofile]
|
|
- if sys.platform != 'sunos5':
|
|
- # msgfmt on Solaris does not know about -c
|
|
- cmd.append('-c')
|
|
- self.mkpath(join('mercurial', modir))
|
|
- self.make_file([pofile], mobuildfile, spawn, (cmd,))
|
|
+ pass
|
|
|
|
|
|
class hgdist(Distribution):
|