--- tomoe-0.6.0.ebuild +++ tomoe-0.6.0.ebuild @@ -2,6 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-i18n/tomoe/tomoe-0.6.0.ebuild,v 1.3 2008/09/23 16:35:42 matsuu Exp $ +EAPI=2 + +inherit autotools base eutils + DESCRIPTION="Japanese handwriting recognition engine" HOMEPAGE="http://tomoe.sourceforge.jp/" SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz" @@ -9,7 +13,7 @@ LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 x86" -IUSE="doc hyperestraier mysql ruby subversion" +IUSE="doc hyperestraier mysql ruby static-libs subversion" RDEPEND=">=dev-libs/glib-2.4 ruby? ( dev-ruby/ruby-glib2 ) @@ -28,16 +32,17 @@ RESTRICT="test" -src_compile() { +DOCS=( "AUTHORS" "ChangeLog" "NEWS" "TODO" ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch + eautoreconf +} + +src_configure() { econf \ $(use_with ruby) \ - $(use_enable doc gtk-doc) || die + $(use_enable doc gtk-doc) \ + $(use_enable static-libs static) # $(use_with python) \ - emake || die -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - - dodoc AUTHORS ChangeLog NEWS TODO }