Carlo Landmeter b6af1e02ef testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been
updated for atleast 6 months. If you are affected by this commit please follow
this proceddure:

* make sure your packages build on all architectures
* move your pacakge(s) back to testing
* if you want to keep this package and can maintain it (or find somebody to
  maintain it for you) for a minimum of 6 months ask it to be moved to community
2016-08-25 15:26:24 +02:00

33 lines
796 B
Diff

--- ./inc/nls.h.orig
+++ ./inc/nls.h
@@ -1,11 +1,10 @@
#ifndef NLS_H
#define NLS_H
-#include <libintl.h>
-
#ifdef NO_LIBINTL_OR_GETTEXT
#define _(String) (String)
#else
+#include <libintl.h>
#define _(String) gettext(String)
#endif
#define gettext_noop(String) (String)
--- ./Makefile.orig
+++ ./Makefile
@@ -80,10 +80,14 @@
MAN_SRC = $(wildcard $(MAN)/*.*)
+ifeq ($(NLS),no)
+CFLAGS += -DNO_LIBINTL_OR_GETTEXT
+else
PO_FILES = $(filter-out $(MESSAGES),$(wildcard $(PO)/*.po))
MO_FILES = $(PO_FILES:$(PO)/%.po=$(MO)/%.mo)
LANGUAGES ?= $(PO_FILES:$(PO)/%.po=%)
NLS_FILES = $(LANGUAGES:%=$(DESTDIR)$(LOCALEDIR)/%/$(MESSDIR)/$(PACKAGE).mo)
+endif
MAN_FILES = $(foreach FILE, $(MAN_SRC), \
$(DESTDIR)$(MANDIR)/man$(subst .,,$(suffix $(FILE)))/$(FILE:$(MAN)/%=%))