summaryrefslogtreecommitdiff
path: root/devel/mercurial/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/mercurial/files')
-rw-r--r--devel/mercurial/files/extra-patch-setup.py34
-rw-r--r--devel/mercurial/files/patch-setup.py10
2 files changed, 34 insertions, 10 deletions
diff --git a/devel/mercurial/files/extra-patch-setup.py b/devel/mercurial/files/extra-patch-setup.py
new file mode 100644
index 000000000000..6f67641db022
--- /dev/null
+++ b/devel/mercurial/files/extra-patch-setup.py
@@ -0,0 +1,34 @@
+--- ./setup.py.orig 2012-10-02 04:11:23.000000000 +0000
++++ ./setup.py 2012-10-02 18:59:20.000000000 +0000
+@@ -227,30 +227,7 @@
+ 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):
diff --git a/devel/mercurial/files/patch-setup.py b/devel/mercurial/files/patch-setup.py
deleted file mode 100644
index df0c40a4b0e2..000000000000
--- a/devel/mercurial/files/patch-setup.py
+++ /dev/null
@@ -1,10 +0,0 @@
---- setup.py.orig 2012-08-02 10:49:31.000000000 +0400
-+++ setup.py 2012-08-08 18:34:01.000000000 +0400
-@@ -227,6 +227,7 @@
- description = "build translations (.mo files)"
-
- def run(self):
-+ %%NLS%%return
- if not find_executable('msgfmt'):
- self.warn("could not find msgfmt executable, no translations "
- "will be built")