Commit 854f8d31 authored by Natanael Copa's avatar Natanael Copa
Browse files

testing/ms-sys: fix NLS handling

parent 9aac03f3
......@@ -9,6 +9,7 @@ arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/ms-sys/ms-sys-$pkgver.tar.gz
......@@ -27,20 +28,19 @@ prepare() {
build() {
cd "$_builddir"
make PREFIX=/usr EXTRA_CFLAGS="-DNO_LIBINTL_OR_GETTEXT" \
|| return 1
make PREFIX=/usr NLS=no || return 1
}
package() {
cd "$_builddir"
make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="$pkgdir" install \
|| return 1
make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="$pkgdir" NLS=no \
install || return 1
rm -rf "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/share/locale
}
md5sums="6742dd1a058b1ce32cb991853d9d6bec ms-sys-2.4.0.tar.gz
18e492b682b13f0f5be11b580bfa7788 nls.patch"
e99ecd149e6e83a60647dbb96409b949 nls.patch"
sha256sums="afcfefb52350f632bbd4671c3f97df09e42a60d0de3e56d42682450c7ebf689e ms-sys-2.4.0.tar.gz
4248b28fed190bd2e99f5a1b98408493a3e19fb1980c6380db39157f1e38bd2d nls.patch"
0cde6bb2fbe958380b2cd058095da3b6da690d9462909a4acf867dab9e19d6e8 nls.patch"
sha512sums="17e2496d2e4815180b9f33fa0f206953fb3484e01c115a2e67d110fb04d421be7e694a434d991a7518579eadb9dce4e907dbd849dbaf6fb506758c425faa14ec ms-sys-2.4.0.tar.gz
0d479c095b896779144fb5b145bfb4a0f13a7c1ddb79bd616b73912a973108c5c5697e5f53f39f6ebbe1c842f180ca984135b94baa55ffe5957c81c3657edef5 nls.patch"
02115f778a74cc8b048872d437745e1b9c272b3c3597dc180ffa9fd6a977bf97d0744bc18ebc4a2ce08942f2ec94a96cda2f85d36289140d53e32aa20f8b75ee nls.patch"
......@@ -13,3 +13,20 @@
#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)/%=%))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment