diff -r 7dff671e7461 net-irc/anope/anope-1.8.0.ebuild --- a/net-irc/anope/anope-1.8.0.ebuild Tue Feb 16 11:41:31 2010 -0500 +++ b/net-irc/anope/anope-1.8.0.ebuild Tue Feb 16 11:57:31 2010 -0500 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-irc/anope/anope-1.8.0.ebuild,v 1.1 2009/06/27 11:04:34 patrick Exp $ +EAPI="2" + inherit eutils versionator MY_PV=$(replace_version_separator 3 '-') @@ -14,9 +16,10 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="mysql" +IUSE="mysql atheme" -DEPEND="mysql? ( virtual/mysql )" +DEPEND="atheme? ( >=net-irc/atheme-5.0.1 ) + mysql? ( virtual/mysql )" INSTALL_DIR="/opt/anope" @@ -31,11 +34,12 @@ fi } -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { + epatch "${FILESDIR}"/pid-patch.diff - epatch "${FILESDIR}"/pid-patch.diff + if use atheme; then + cp /usr/share/doc/atheme*/contrib/anope_convert.c src/modules/ || die + fi } src_compile() {