| # Distributed under the terms of the GNU General Public License v2 |
# Distributed under the terms of the GNU General Public License v2 |
| # $Header$ |
# $Header$ |
| |
|
| inherit flag-o-matic eutils libtool toolchain-funcs |
inherit eutils libtool toolchain-funcs |
| |
|
| DEB_VER=11 |
DEB_VER=11 |
| DESCRIPTION="Convert files between various character sets" |
DESCRIPTION="Convert files between various character sets" |
| unpack ${A} |
unpack ${A} |
| cd "${S}" |
cd "${S}" |
| epatch "${FILESDIR}"/${P}-debian-${DEB_VER}.patch |
epatch "${FILESDIR}"/${P}-debian-${DEB_VER}.patch |
| |
epatch "${FILESDIR}"/${P}-gcc43.patch #209036 |
| |
sed -i '1i#include <stdlib.h>' src/argmatch.c || die |
| |
|
| # Needed under FreeBSD, too |
# Needed under FreeBSD, too |
| epatch "${FILESDIR}"/${P}-ppc-macos.diff |
epatch "${FILESDIR}"/${P}-ppc-macos.diff |
| } |
} |
| |
|
| src_install() { |
src_install() { |
| make DESTDIR="${D}" install || die "make install failed" |
emake DESTDIR="${D}" install || die "make install failed" |
| dodoc AUTHORS BACKLOG ChangeLog NEWS README THANKS TODO |
dodoc AUTHORS BACKLOG ChangeLog NEWS README THANKS TODO |
| rm -f "${D}"/usr/lib/charset.alias |
rm -f "${D}"/usr/lib/charset.alias |
| } |
} |