summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-05-02 11:01:57 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-05-02 11:01:57 +0000
commit50fd8c32b2a8d1e6eaa614354cc9b26a678c8517 (patch)
treed3e672abc9daeef164d5a71974bed3b780868626 /app-text/mecab
parentkeyword ~x86-fbsd (diff)
downloadgentoo-2-50fd8c32b2a8d1e6eaa614354cc9b26a678c8517.tar.gz
gentoo-2-50fd8c32b2a8d1e6eaa614354cc9b26a678c8517.tar.bz2
gentoo-2-50fd8c32b2a8d1e6eaa614354cc9b26a678c8517.zip
Fix link with libiconv for BSD; add missing dep on the virtual, keyword it ~x86-fbsd
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-text/mecab')
-rw-r--r--app-text/mecab/ChangeLog7
-rw-r--r--app-text/mecab/files/mecab-0.98-iconv.patch10
-rw-r--r--app-text/mecab/mecab-0.98.ebuild12
3 files changed, 23 insertions, 6 deletions
diff --git a/app-text/mecab/ChangeLog b/app-text/mecab/ChangeLog
index 073d5f0b80ff..8c004b488cb2 100644
--- a/app-text/mecab/ChangeLog
+++ b/app-text/mecab/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/mecab
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/mecab/ChangeLog,v 1.61 2010/01/14 00:18:06 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/mecab/ChangeLog,v 1.62 2010/05/02 11:01:57 aballier Exp $
+
+ 02 May 2010; Alexis Ballier <aballier@gentoo.org> mecab-0.98.ebuild,
+ +files/mecab-0.98-iconv.patch:
+ Fix link with libiconv for BSD; add missing dep on the virtual, keyword it
+ ~x86-fbsd
14 Jan 2010; Jeroen Roovers <jer@gentoo.org> mecab-0.97-r1.ebuild:
Stable for HPPA too.
diff --git a/app-text/mecab/files/mecab-0.98-iconv.patch b/app-text/mecab/files/mecab-0.98-iconv.patch
new file mode 100644
index 000000000000..76ead6c38f99
--- /dev/null
+++ b/app-text/mecab/files/mecab-0.98-iconv.patch
@@ -0,0 +1,10 @@
+--- mecab-0.98/src/Makefile.am.old 2010-05-02 12:39:07.000000000 +0200
++++ mecab-0.98/src/Makefile.am 2010-05-02 12:39:28.000000000 +0200
+@@ -17,6 +17,7 @@
+ feature_index.cpp feature_index.h lbfgs.cpp \
+ lbfgs.h learner_tagger.cpp learner_tagger.h learner.cpp \
+ learner_node.h libmecab.cpp
++libmecab_la_LIBADD = $(LTLIBICONV)
+
+ include_HEADERS = mecab.h
+ bin_PROGRAMS = mecab
diff --git a/app-text/mecab/mecab-0.98.ebuild b/app-text/mecab/mecab-0.98.ebuild
index 78b35f2c644c..e05c3e1ee184 100644
--- a/app-text/mecab/mecab-0.98.ebuild
+++ b/app-text/mecab/mecab-0.98.ebuild
@@ -1,22 +1,23 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/mecab/mecab-0.98.ebuild,v 1.2 2009/12/27 17:18:09 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/mecab/mecab-0.98.ebuild,v 1.3 2010/05/02 11:01:57 aballier Exp $
EAPI="2"
-inherit autotools
+inherit autotools eutils
DESCRIPTION="Yet Another Part-of-Speech and Morphological Analyzer"
HOMEPAGE="http://mecab.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="|| ( BSD LGPL-2.1 GPL-2 )"
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
SLOT="0"
IUSE="unicode"
RESTRICT="test"
-DEPEND="dev-lang/perl"
+DEPEND="dev-lang/perl
+ virtual/libiconv"
PDEPEND=">=app-dicts/mecab-ipadic-2.7.0.20070610"
src_prepare() {
@@ -24,6 +25,7 @@ src_prepare() {
-e "/CFLAGS/s/-O3/${CFLAGS}/" \
-e "/CXXFLAGS/s/-O3/${CXXFLAGS}/" \
configure.in || die
+ epatch "${FILESDIR}/${P}-iconv.patch"
eautoreconf
}