# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-mail/ezmlm-idx/ezmlm-idx-0.40-r2.ebuild,v 1.16 2005/04/24 10:19:58 hansmi Exp $ inherit eutils toolchain-funcs PB=ezmlm-idx EZMLM_P=ezmlm-0.53 IUSE="postgres mysql" S2=${WORKDIR}/${PB}-${PV} S=${WORKDIR}/${EZMLM_P} DESCRIPTION="Simple yet powerful mailing list manager for qmail." SRC_URI="http://www.ezmlm.org/archive/${PV}/${PB}-${PV}.tar.gz http://cr.yp.to/software/${EZMLM_P}.tar.gz" HOMEPAGE="http://www.ezmlm.org" SLOT="0" LICENSE="as-is" KEYWORDS="x86 ~alpha ~hppa ~amd64 ~ppc ~mips ~sparc" DEPEND="sys-apps/grep sys-apps/groff mysql? ( dev-db/mysql ) postgres? ( dev-db/postgresql )" RDEPEND="virtual/qmail" src_unpack() { unpack ${A} cd ${S2} mv ${S2}/* ${S} || die cd ${S} patch < idx.patch || die echo "/usr/bin" > conf-bin echo "/usr/lib/ezmlm" > conf-lib echo "/usr/share/man" > conf-man echo $(tc-getCC) ${CFLAGS} -I/usr/include/mysql > conf-cc echo $(tc-getCC) ${CFLAGS} -s > conf-ld } src_compile() { cd ${S} emake it install || die use mysql && emake mysql || die use postgres && emake pgsql || die } src_install () { dodir /usr/bin ./install ${D}/usr/bin