Skip to content

Instantly share code, notes, and snippets.

@tochiz
Created July 25, 2011 07:44
Show Gist options
  • Save tochiz/1103721 to your computer and use it in GitHub Desktop.
Save tochiz/1103721 to your computer and use it in GitHub Desktop.
gettext ebuild diff
--- ../../../../../portage/sys-devel/gettext/gettext-0.18.1.1-r1.ebuild 2011-01-28 04:01:41.000000000 +0900
+++ ./gettext-0.18.1.1-r1.ebuild 2011-07-25 16:40:38.000000000 +0900
@@ -36,6 +36,13 @@
sed -i -e '1c\#!/usr/bin/env sh' \
"${S}"/gettext-tools/misc/convert-archive.in || die
+ if [[ ${CHOST} == *-darwin11 ]] ; then
+ sed -i -e '/^#ifndef weak_alias$/a\# undef __stpncpy' \
+ gettext-tools/gnulib-lib/stpncpy.c
+ sed -i -e '/^# undef __stpncpy$/a\# undef stpncpy' \
+ gettext-tools/gnulib-lib/stpncpy.c
+ fi
+
epunt_cxx
elibtoolize
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment