diff options
Diffstat (limited to 'abs/extra')
-rw-r--r-- | abs/extra/recode/PKGBUILD | 37 | ||||
-rw-r--r-- | abs/extra/recode/recode-3.6-as-if.patch | 19 | ||||
-rw-r--r-- | abs/extra/recode/recode-3.6-gcc43.patch | 20 | ||||
-rw-r--r-- | abs/extra/recode/recode-3.6-gettextfix.diff | 23 | ||||
-rw-r--r-- | abs/extra/recode/recode.install | 20 |
5 files changed, 119 insertions, 0 deletions
diff --git a/abs/extra/recode/PKGBUILD b/abs/extra/recode/PKGBUILD new file mode 100644 index 0000000..f7fd237 --- /dev/null +++ b/abs/extra/recode/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 84692 2010-07-03 16:19:26Z ibiru $ +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=recode +pkgver=3.6 +pkgrel=5 +pkgdesc="Converts files between various character sets and usages" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/recode/recode.html" +license=('GPL' 'LGPL') +depends=('glibc' 'texinfo') +options=('!libtool') +install=recode.install +source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz + http://ftp.de.debian.org/debian/pool/main/r/recode/recode_3.6-15.diff.gz + recode-3.6-as-if.patch recode-3.6-gettextfix.diff) +md5sums=('be3f40ad2e93dae5cd5f628264bf1877' + '95ca772e367a7ef56d3f46d724b6f86e' + 'fca7484ba332c8ad59eb02334883cd92' + 'eb602e80a24b5448604bfebeacc55304') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i ${srcdir}/recode-3.6-as-if.patch + patch -Np1 -i ${srcdir}/recode-3.6-gettextfix.diff + patch -Np1 -i ${srcdir}/recode_3.6-15.diff + sed -i '1i#include <stdlib.h>' src/argmatch.c + rm -f acinclude.m4 + autoreconf -fi + libtoolize + ./configure --prefix=/usr --mandir=/usr/share/man \ + --infodir=/usr/share/info --without-included-gettext + make || return 1 + make DESTDIR=${pkgdir} install || return 1 + rm ${pkgdir}/usr/share/info/dir + gzip ${pkgdir}/usr/share/info/* +} diff --git a/abs/extra/recode/recode-3.6-as-if.patch b/abs/extra/recode/recode-3.6-as-if.patch new file mode 100644 index 0000000..c7bcc27 --- /dev/null +++ b/abs/extra/recode/recode-3.6-as-if.patch @@ -0,0 +1,19 @@ +http://bugs.gentoo.org/283029 + +--- a/m4/flex.m4 ++++ b/m4/flex.m4 +@@ -8,11 +8,11 @@ dnl ad_AC_PROG_FLEX + dnl Look for flex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT + AC_DEFUN(ad_AC_PROG_FLEX, + [AC_CHECK_PROGS(LEX, flex, missing) +-if test "$LEX" = missing; then ++AS_IF([test "$LEX" = missing], [dnl + LEX="\$(top_srcdir)/$ac_aux_dir/missing flex" + LEX_OUTPUT_ROOT=lex.yy + AC_SUBST(LEX_OUTPUT_ROOT)dnl +-else ++], [: + AC_PROG_LEX + AC_DECL_YYTEXT +-fi]) ++])]) diff --git a/abs/extra/recode/recode-3.6-gcc43.patch b/abs/extra/recode/recode-3.6-gcc43.patch new file mode 100644 index 0000000..beaf26e --- /dev/null +++ b/abs/extra/recode/recode-3.6-gcc43.patch @@ -0,0 +1,20 @@ +http://bugs.gentoo.org/209036 + +fix building with gcc-4.3 + +--- src/recodext.h 2008-04-03 18:35:42 +0000 ++++ src/recodext.h 2008-04-03 18:36:32 +0000 +@@ -215,10 +215,10 @@ + struct recode_single *unsurfacer; + + /* Non zero if this is an acceptable charset (not only a surface). */ +- enum recode_symbol_type type : 3; ++ enum recode_symbol_type type : 2; + + /* Non zero if this one should be ignored. */ +- bool ignore : 2; ++ bool ignore : 1; + }; + + struct recode_surface_list + diff --git a/abs/extra/recode/recode-3.6-gettextfix.diff b/abs/extra/recode/recode-3.6-gettextfix.diff new file mode 100644 index 0000000..3b7eb8b --- /dev/null +++ b/abs/extra/recode/recode-3.6-gettextfix.diff @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/239372 + +patch by Dmitry Karasik + +--- recode-3.6/m4/gettext.m4 ++++ recode-3.6/m4/gettext.m4 +@@ -109,12 +109,12 @@ + else + ac_items="$LINGUAS" + for ac_item in $ac_items; do +- case "$ALL_LINGUAS" in +- *$ac_item*) ++ for supported_item in $ALL_LINGUAS; do ++ if test "$ac_item" = "$supported_item"; then + ac_print="$ac_print $ac_item" + MOFILES="$MOFILES $ac_item.mo" +- ;; +- esac ++ fi ++ done + done + fi + AC_SUBST(MOFILES) diff --git a/abs/extra/recode/recode.install b/abs/extra/recode/recode.install new file mode 100644 index 0000000..6304d59 --- /dev/null +++ b/abs/extra/recode/recode.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(recode.info-5.gz recode.info-3.gz recode.info-7.gz recode.info-6.gz recode.info-2.gz recode.info-4.gz recode.info.gz recode.info-1.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} |