--- a/lrzsz-0.12.20-r2.ebuild 2009-04-29 08:06:30.000000000 -0500 +++ a/lrzsz-0.12.20-r2.ebuild 2009-07-06 13:55:22.000000000 -0500 @@ -4,7 +4,7 @@ EAPI="2" -inherit flag-o-matic eutils toolchain-funcs +inherit autotools flag-o-matic eutils toolchain-funcs DESCRIPTION="Communication package providing the X, Y, and ZMODEM file transfer protocols" HOMEPAGE="http://www.ohse.de/uwe/software/lrzsz.html" @@ -19,8 +19,29 @@ RDEPEND="${DEPEND}" src_prepare() { + sed -i -e '/^CFLAGS=/d' lib/Makefile.am src/Makefile.am epatch "${FILESDIR}"/${PN}-makefile-smp.patch epatch "${FILESDIR}"/${PN}-implicit-decl.patch + sed -i \ + -e '/^AC_AIX$/d' \ + -e 's/strings\.h /&locale.h /' \ + -e '/^AM_GNU_GETTEXT$/d' \ + -e 's/^AC_MINIX$/AC_USE_SYSTEM_EXTENSIONS\nAM_GNU_GETTEXT/' \ + -e 's/\(AC_DEFINE\(_UNQUOTED\)\?(.*\)\(LOCALEDIR\|PUBDIR\|ENABLE_SYSLOG\)\(,.*\))/\1\3\4, [\3])/' \ + -e 's/\(AC_DEFINE(\)\(ENABLE_MKDIR\|ENABLE_SYSLOG_DEFAULT\|ENABLE_SYSLOG_FORCE\|ENABLE_TIMESYNC\|HAVE_FTIME\|HAVE_STRUCT_UTIMBUF\|HAVE_TIMEZONE_VAR\|STRICT_PROTOTYPES\))/\1\2, 1, [\2])/' \ + configure.in + sed -i \ + -e 's/\(AC_DEFINE(\)\(SYS_TIME_WITHOUT_SYS_SELECT\))/\1\2, 1, [\2])/' \ + -e 's/\(AC_DEFINE(\)\(\[HAVE_ERRNO_DECLARATION\]\))/\1\2, 1, [\2])/' \ + -e '/AC_DEFINE(\[speed_t\]/s/)/, [speed_t])/' \ + acinclude.m4 + # automake is unhappy if this is missing + >> config.rpath + # This is too old. Remove it so automake puts in a newer copy. + rm -f missing + # Autoheader does not like seeing this file. + rm -f acconfig.h + eautoreconf } src_configure() { @@ -36,9 +57,8 @@ } src_install() { - make \ - prefix="${D}/usr" \ - mandir="${D}/usr/share/man" \ + emake \ + DESTDIR="${D}" \ install || die "make install failed" local x