diff options
Diffstat (limited to 'dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch')
-rw-r--r-- | dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch b/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch new file mode 100644 index 000000000000..878b84a7e3ea --- /dev/null +++ b/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch @@ -0,0 +1,19 @@ +--- Makefile.orig 2015-10-13 20:09:55.612486000 +0000 ++++ Makefile 2015-10-13 20:11:19.166486000 +0000 +@@ -81,15 +81,9 @@ + rm -rf $(DISTDIR) + + #TODO install man page and README +-install: mo ++install: + @[ -d $(LOCALEDIR) ] || mkdir -p $(LOCALEDIR); \ + [ -d $(BINDIR) ] || mkdir -p $(BINDIR); \ +- for pot in `cd $(PODIR) && ls *.mo`; do \ +- poti=`echo $$pot | sed 's/\.mo$$//'`; \ +- modir=$(LOCALEDIR)/$$poti/LC_MESSAGES; \ +- [ -d $$modir ] || mkdir -p $$modir; \ +- install -m644 $(PODIR)/$$pot $$modir/$(NAME).mo; \ +- done; \ + sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(BLOCALEDIR),' \ + -e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $(BINDIR)/$(NAME) && \ + chmod +x $(BINDIR)/$(NAME) && \ |