Skip to content

Commit

Permalink
main/gettext: libintl_*printf fix in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
vakartel authored and ncopa committed Feb 10, 2016
1 parent c8390b4 commit 4ef70b4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
26 changes: 20 additions & 6 deletions main/gettext/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,36 @@
# Maintainer: Carlo Landmeter <[email protected]>
pkgname=gettext
pkgver=0.19.7
pkgrel=0
pkgrel=1
pkgdesc="GNU locale utilities"
url="http://www.gnu.org/software/gettext/gettext.html"
arch="all"
license="GPL"
depends=
makedepends="perl ncurses-dev libxml2-dev glib-dev libcroco-dev libunistring-dev"
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz
dont-override-gnulib.patch
"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang libintl $pkgname-asprintf $pkgname-libs"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}

build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-threads=posix \
--with-pic \
--disable-java \
--disable-static \
|| return 1
Expand All @@ -46,6 +57,9 @@ asprintf() {
mv "$pkgdir"/usr/lib/libasprintf.so.* "$subpkgdir"/usr/lib
}

md5sums="f81e50556da41b44c1d59ac93474dca5 gettext-0.19.7.tar.xz"
sha256sums="378fa86a091cec3acdece3c961bb8d8c0689906287809a8daa79dc0c6398d934 gettext-0.19.7.tar.xz"
sha512sums="a8ed47fc38d8730ccd46bfa6620c0b42efcfcbfa39fa94ddecb2fa3b62b377827f29e702dc327fbc682b98534e1f54783d21a3bb5ba629f6358be00bfb4da009 gettext-0.19.7.tar.xz"
md5sums="f81e50556da41b44c1d59ac93474dca5 gettext-0.19.7.tar.xz
f8af0b8a26dae0f054200adfef1f146a dont-override-gnulib.patch"
sha256sums="378fa86a091cec3acdece3c961bb8d8c0689906287809a8daa79dc0c6398d934 gettext-0.19.7.tar.xz
17e5edb5128609476b1102a1ef2a9a6445d89c3f475d02ea23949f065bc0fb50 dont-override-gnulib.patch"
sha512sums="a8ed47fc38d8730ccd46bfa6620c0b42efcfcbfa39fa94ddecb2fa3b62b377827f29e702dc327fbc682b98534e1f54783d21a3bb5ba629f6358be00bfb4da009 gettext-0.19.7.tar.xz
9e15b4d0ec0f39031072d8c06a20922c3c02845dbccb3455fba59f9423d970ea19baabb36d21823048a08249f148aa1e5c5e038001bffb8aa2a40051f2138f1e dont-override-gnulib.patch"
12 changes: 12 additions & 0 deletions main/gettext/dont-override-gnulib.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/gettext-runtime/intl/libgnuintl.in.h
+++ b/gettext-runtime/intl/libgnuintl.in.h
@@ -317,6 +317,9 @@
#include <stdio.h>
#include <stddef.h>

+#ifndef _GL_STDIO_H
+#define _GL_STDIO_H
+#endif
/* Get va_list. */
#if (defined __STDC__ && __STDC__) || defined __cplusplus || defined _MSC_VER
# include <stdarg.h>

0 comments on commit 4ef70b4

Please sign in to comment.