aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ms-sys
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-15 10:11:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-15 10:11:44 +0000
commit854f8d3128f6d95ee72e1d6d320f498531d116f2 (patch)
tree5b37b9b4a72cfe550c27c06a4e0b08d3225830d8 /testing/ms-sys
parent9aac03f3fe02df0d89f1b9422529b8c4272e39cc (diff)
downloadaports-854f8d3128f6d95ee72e1d6d320f498531d116f2.tar.bz2
aports-854f8d3128f6d95ee72e1d6d320f498531d116f2.tar.xz
testing/ms-sys: fix NLS handling
Diffstat (limited to 'testing/ms-sys')
-rw-r--r--testing/ms-sys/APKBUILD14
-rw-r--r--testing/ms-sys/nls.patch17
2 files changed, 24 insertions, 7 deletions
diff --git a/testing/ms-sys/APKBUILD b/testing/ms-sys/APKBUILD
index bede279010..1952ecdaa2 100644
--- a/testing/ms-sys/APKBUILD
+++ b/testing/ms-sys/APKBUILD
@@ -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"
diff --git a/testing/ms-sys/nls.patch b/testing/ms-sys/nls.patch
index 092f64ad30..29c77a62c2 100644
--- a/testing/ms-sys/nls.patch
+++ b/testing/ms-sys/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)/%=%))
+