diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/txt2regex/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/txt2regex/files')
-rw-r--r-- | dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch | 19 | ||||
-rw-r--r-- | dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch | 21 |
2 files changed, 40 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) && \ diff --git a/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch b/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch new file mode 100644 index 000000000000..524f2af8b02e --- /dev/null +++ b/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch @@ -0,0 +1,21 @@ +--- Makefile.orig 2015-10-13 19:24:21.799486000 +0000 ++++ Makefile 2015-10-13 19:26:05.187486000 +0000 +@@ -11,7 +11,8 @@ + + DESTDIR = + BINDIR = $(DESTDIR)/usr/bin +-LOCALEDIR = $(DESTDIR)/usr/share/locale ++BLOCALEDIR = /usr/share/locale ++LOCALEDIR = $(DESTDIR)$(BLOCALEDIR) + MANDIR = $(DESTDIR)/usr/share/man/man1 + + TARGET=all +@@ -89,7 +90,7 @@ + [ -d $$modir ] || mkdir -p $$modir; \ + install -m644 $(PODIR)/$$pot $$modir/$(NAME).mo; \ + done; \ +- sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(LOCALEDIR),' \ ++ sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(BLOCALEDIR),' \ + -e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $(BINDIR)/$(NAME) && \ + chmod +x $(BINDIR)/$(NAME) && \ + echo "program '$(NAME)' installed. just run $(BINDIR)/$(NAME)" |