--- libtabe-0.2.5.ebuild 2005-01-01 15:38:05.000000000 +0100 +++ libtabe-0.2.6.ebuild 2008-04-26 17:19:36.000000000 +0200 @@ -1,37 +1,52 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-i18n/libtabe/libtabe-0.2.5.ebuild,v 1.13 2005/01/01 14:34:01 eradicator Exp $ -inherit eutils +inherit eutils libtool autotools multilib DESCRIPTION="Libtabe provides bimsphone support for xcin-2.5+" -HOMEPAGE="http://libtabe.sourceforge.net/" -SRC_URI="ftp://xcin.linux.org.tw/pub/xcin/libtabe/devel/${P}.tar.gz" +HOMEPAGE="http://packages.qa.debian.org/libt/libtabe.html" +SRC_URI="mirror://debian/pool/main/libt/libtabe/${P/-/_}.orig.tar.gz + mirror://debian/pool/main/libt/libtabe/${P/-/_}-1.1.diff.gz" -LICENSE="XCIN" +LICENSE="BSD" SLOT="0" -KEYWORDS="x86 ppc" -IUSE="" +KEYWORDS="~x86 ~ppc" +IUSE="debug" +DEPEND=">=sys-libs/db-4.5 + x11-libs/libX11" +RDEPEND="${DEPEND}" -DEPEND="=sys-libs/db-3*" - -S=${WORKDIR}/${PN} +S="${WORKDIR}/${P}.orig" src_unpack() { unpack ${A} - epatch ${FILESDIR}/${P}-db3.patch + cd "${S}" + epatch "${WORKDIR}/${P/-/_}-1.1.diff" + epatch "${FILESDIR}/${P}-qa.patch" + rm -f configure + elibtoolize + cd script + eautoreconf + cp script/* ./ + cp configure ../ + cd .. } src_compile() { - econf \ - --with-db-inc=/usr/include/db3 \ - --with-db-lib=/usr/lib \ - --with-db-bin=/usr/bin \ - --enable-shared || die "econf failed" - emake -j1 || die " make failed" + myconf="--with-db-inc=/usr/include + --with-db-lib=/usr/$(get_libdir) + --with-db-bin=/usr/bin + --with-db-name=db + --enable-shared + --disable-static + $(use_enable debug)" + + econf ${myconf} || die "econf failed" + emake -j1 || die "make failed" } src_install() { - einstall || die "install failed" + emake DESTDIR="${D}" install||die "Install failed" dodoc doc/* }