diff options
author | Martin Väth <martin@mvath.de> | 2016-09-03 14:44:46 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2016-09-03 14:44:46 +0200 |
commit | 982db69e8b02d31d242cd00f2a0bc39ebceb39be (patch) | |
tree | bd9109ac1e8d4e5426afe0e9de55d5f08e9c35a8 /app-text | |
parent | x11-misc/redshift: Copy old from gentoo repo to aovid gtk+3/introspection dep (diff) | |
download | mv-982db69e8b02d31d242cd00f2a0bc39ebceb39be.tar.gz mv-982db69e8b02d31d242cd00f2a0bc39ebceb39be.tar.bz2 mv-982db69e8b02d31d242cd00f2a0bc39ebceb39be.zip |
Copy/bump ispell and some libs from gentoo repository to save from removal
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/ispell/Manifest | 3 | ||||
-rw-r--r-- | app-text/ispell/files/ispell-3.3.02-glibc-2.10.patch | 48 | ||||
-rw-r--r-- | app-text/ispell/ispell-3.3.02-r1.ebuild | 61 | ||||
-rw-r--r-- | app-text/ispell/ispell-3.4.00.ebuild | 62 | ||||
-rw-r--r-- | app-text/ispell/metadata.xml | 4 |
5 files changed, 178 insertions, 0 deletions
diff --git a/app-text/ispell/Manifest b/app-text/ispell/Manifest new file mode 100644 index 00000000..b801e23b --- /dev/null +++ b/app-text/ispell/Manifest @@ -0,0 +1,3 @@ +DIST ispell-3.3.02-gentoo-0.3.diff.bz2 5912 SHA256 2ab38d0228b2aa4ec98f69ee1890c314c8d4e4f76d0614fb874e15ac60964d9d +DIST ispell-3.3.02.tar.gz 619813 SHA256 7ff5aad2722ad80fa86766218b7bc622b25bad2d765ea942ba93c996b113ecb4 +DIST ispell-3.4.00.tar.gz 638770 SHA256 5dc42e458635f218032d3ae929528e5587b1e7247564f0e9f9d77d5ccab7aec2 diff --git a/app-text/ispell/files/ispell-3.3.02-glibc-2.10.patch b/app-text/ispell/files/ispell-3.3.02-glibc-2.10.patch new file mode 100644 index 00000000..8ccd5cc7 --- /dev/null +++ b/app-text/ispell/files/ispell-3.3.02-glibc-2.10.patch @@ -0,0 +1,48 @@ +diff -ur ispell-3.3.02.orig/correct.c ispell-3.3.02/correct.c +--- ispell-3.3.02.orig/correct.c 2009-08-06 18:28:32.000000000 +0300 ++++ ispell-3.3.02/correct.c 2009-08-06 18:28:57.000000000 +0300 +@@ -247,7 +247,7 @@ + struct flagent * sufent, + ichar_t savearea[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN], + int * nsaved)); +-static char * getline P ((char * buf, int bufsize)); ++static char * get_line P ((char * buf, int bufsize)); + void askmode P ((void)); + void copyout P ((unsigned char ** cc, int cnt)); + static void lookharder P ((unsigned char * string)); +@@ -573,7 +573,7 @@ + + imove (li - 1, 0); + (void) putchar ('!'); +- if (getline ((char *) buf, sizeof buf) == NULL) ++ if (get_line ((char *) buf, sizeof buf) == NULL) + { + (void) putchar (7); + ierase (); +@@ -598,7 +598,7 @@ + (void) printf ("%s ", CORR_C_READONLY); + } + (void) printf (CORR_C_REPLACE_WITH); +- if (getline ((char *) ctok, ctokl) == NULL) ++ if (get_line ((char *) ctok, ctokl) == NULL) + { + (void) putchar (7); + /* Put it back */ +@@ -666,7 +666,7 @@ + unsigned char buf[100]; + imove (li - 1, 0); + (void) printf (CORR_C_LOOKUP_PROMPT); +- if (getline ((char *) buf, sizeof buf) == NULL) ++ if (get_line ((char *) buf, sizeof buf) == NULL) + { + (void) putchar (7); + ierase (); +@@ -1585,7 +1585,7 @@ + return; + } + +-static char * getline (s, len) ++static char * get_line (s, len) + register char * s; + register int len; + { 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 +} diff --git a/app-text/ispell/ispell-3.4.00.ebuild b/app-text/ispell/ispell-3.4.00.ebuild new file mode 100644 index 00000000..4916709b --- /dev/null +++ b/app-text/ispell/ispell-3.4.00.ebuild @@ -0,0 +1,62 @@ +# Copyright 2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +RESTRICT="mirror" +inherit toolchain-funcs + +DESCRIPTION="fast screen-oriented spelling checker" +HOMEPAGE="http://fmg-www.cs.ucla.edu/geoff/ispell.html" +SRC_URI="http://fmg-www.cs.ucla.edu/geoff/tars/${P}.tar.gz" + +LICENSE="HPND" +SLOT="0/3.4.00" +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() { + sed -i \ + -e 's:/usr/local/man:'"${EPREFIX}"'/usr/share/man:' \ + -e 's:/usr/local/lib:'"${EPREFIX}"'/usr/'"$(get_libdir)/${PN}:" \ + -e 's:/usr/local:'"${EPREFIX}"'/usr:' \ + -- "${S}"/local.h.* || die + sed -i \ + -e 's:\(^#define CC\).*:\1 "'"$(tc-getCC)"'":' \ + -e 's:\(^#define CFLAGS\).*:\1 "'"${CFLAGS}"'":' \ + -- "${S}"/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='\)${EPREFIX}\(/usr.*\):\1${ED}\2:" \ + -e "s:^\(LIBDIR='\)${EPREFIX}\(/usr.*\):\1${ED}\2:" \ + -e "s:^\(MAN1DIR='\)${EPREFIX}\(/usr.*\):\1${ED}\2:" \ + -e "s:^\(MAN45DIR='\)${EPREFIX}\(/usr.*\):\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 +} diff --git a/app-text/ispell/metadata.xml b/app-text/ispell/metadata.xml new file mode 100644 index 00000000..097975e3 --- /dev/null +++ b/app-text/ispell/metadata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +</pkgmetadata> |