From 69832c36aaf715044b978334d4a0ceda102a2754 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 21 May 2009 08:49:47 +0000 Subject: extra/aspell: new aport A spell checker designed to eventually replace Ispell http://aspell.net/ --- extra/aspell/APKBUILD | 31 +++++++++++++++++++++++++++++++ extra/aspell/libmath.patch | 11 +++++++++++ 2 files changed, 42 insertions(+) create mode 100644 extra/aspell/APKBUILD create mode 100644 extra/aspell/libmath.patch diff --git a/extra/aspell/APKBUILD b/extra/aspell/APKBUILD new file mode 100644 index 0000000000..568571aa83 --- /dev/null +++ b/extra/aspell/APKBUILD @@ -0,0 +1,31 @@ +# Maintainer: Natanael Copa +pkgname=aspell +pkgver=0.60.6 +_pkgmajorver=${pkgver%.*} +pkgrel=0 +pkgdesc="A spell checker designed to eventually replace Ispell" +url="http://aspell.net/" +license="LGPL" +subpackages="$pkgname-dev $pkgname-doc" +depends="uclibc ncurses libgcc" +makedepends="ncurses-dev uclibc++" +install= +source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz + libmath.patch" + +build () +{ + cd "$srcdir"/$pkgname-$pkgver + export CXX=${CXX_UC:-g++-uc} + + ./configure --prefix=/usr || return 1 + + # we want add -lm to linker flag for libaspell so wil build that + # separately. this is just an ugly workaround + make libaspell.la LDFLAGS="$LDFLAGS -lm" || return 1 + make || return 1 + make DESTDIR="$pkgdir" install || return 1 + ln -s $pkgname-${_pkgmajorver} "$pkgdir"/usr/lib/$pkgname || return 1 +} +md5sums="bc80f0198773d5c05086522be67334eb aspell-0.60.6.tar.gz +715f4e138ab33b27201d90cbc98b4fb3 libmath.patch" diff --git a/extra/aspell/libmath.patch b/extra/aspell/libmath.patch new file mode 100644 index 0000000000..3fad33a5d2 --- /dev/null +++ b/extra/aspell/libmath.patch @@ -0,0 +1,11 @@ +--- a/Makefile.orig 2009-05-21 08:22:51.000000000 +0000 ++++ b/Makefile 2009-05-21 08:23:06.000000000 +0000 +@@ -568,7 +568,7 @@ + lib/string_list-c.cpp lib/find_speller.cpp lib/speller-c.cpp \ + lib/string_pair_enumeration-c.cpp lib/new_checker.cpp \ + modules/filter/url.cpp $(am__append_3) +-libaspell_la_LIBADD = $(LTLIBINTL) $(PTHREAD_LIB) ++libaspell_la_LIBADD = $(LTLIBINTL) $(PTHREAD_LIB) -lm + libaspell_la_LDFLAGS = -version-info 16:4:1 -no-undefined + #libaspell_la_LDFLAGS = -version-info 16:4:0 -no-undefined + libpspell_la_SOURCES = lib/dummy.cpp -- cgit v1.2.3