From 982db69e8b02d31d242cd00f2a0bc39ebceb39be Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sat, 3 Sep 2016 14:44:46 +0200 Subject: Copy/bump ispell and some libs from gentoo repository to save from removal --- app-text/ispell/ispell-3.3.02-r1.ebuild | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 app-text/ispell/ispell-3.3.02-r1.ebuild (limited to 'app-text/ispell/ispell-3.3.02-r1.ebuild') diff --git a/app-text/ispell/ispell-3.3.02-r1.ebuild b/app-text/ispell/ispell-3.3.02-r1.ebuild new file mode 100644 index 00000000..54d4322e --- /dev/null +++ b/app-text/ispell/ispell-3.3.02-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +RESTRICT="mirror" +inherit eutils multilib toolchain-funcs + +PATCH_VER="0.3" + +DESCRIPTION="fast screen-oriented spelling checker" +HOMEPAGE="https://fmg-www.cs.ucla.edu/geoff/ispell.html" +SRC_URI="https://fmg-www.cs.ucla.edu/geoff/tars/${P}.tar.gz + mirror://gentoo/${P}-gentoo-${PATCH_VER}.diff.bz2" + +LICENSE="HPND" +SLOT="0/3.3.02" +KEYWORDS="alpha amd64 ~arm hppa ~mips ppc sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +RDEPEND=" + sys-apps/miscfiles + sys-libs/ncurses:0= +" +DEPEND="${RDEPEND}" + +src_prepare() { + eapply "${FILESDIR}"/${P}-glibc-2.10.patch + eapply -p0 "${WORKDIR}"/${P}-gentoo-${PATCH_VER}.diff + sed -e "s:GENTOO_LIBDIR:$(get_libdir):" -i local.h || die + sed -e "s:\(^#define CC\).*:\1 \"$(tc-getCC)\":" -i local.h || die + sed -e "s:\(^#define CFLAGS\).*:\1 \"${CFLAGS}\":" -i config.X || die + eapply_user +} + +src_configure() { + # Prepare config.sh for installation phase to avoid twice rebuild + emake -j1 config.sh + sed \ + -e "s:^\(BINDIR='\)\(.*\):\1${ED}\2:" \ + -e "s:^\(LIBDIR='\)\(.*\):\1${ED}\2:" \ + -e "s:^\(MAN1DIR='\)\(.*\):\1${ED}\2:" \ + -e "s:^\(MAN45DIR='\)\(.*\):\1${ED}\2:" \ + < config.sh > config.sh.install +} + +src_compile() { + emake -j1 +} + +src_install() { + mv config.sh.install config.sh + emake -j1 install + dodoc CHANGES Contributors README WISHES +} + +pkg_postinst() { + echo + ewarn "If you just updated from an older version of ${PN} you *have* to re-emerge" + ewarn "all your dictionaries to avoid segmentation faults and other problems." + echo +} -- cgit v1.2.3-65-gdbad