diff --git a/dev-php/phpcaptcha/phpcaptcha-2.0.1.ebuild b/dev-php/phpcaptcha/phpcaptcha-2.0.1.ebuild new file mode 100644 --- /dev/null +++ b/dev-php/phpcaptcha/phpcaptcha-2.0.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/apr-util-1.3.9.ebuild,v 1.12 2009/11/04 12:12:05 arfrever Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="PHP captcha creator and validator library" +HOMEPAGE="http://phpcaptcha.org/" +SRC_URI="mirror://ohnoproto/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-pic.patch + + mkdir securimage-doc || die + mv -v securimage/README* securimage-doc/ || die + + # it's good that the license is distributed, we just don't want to + # install it below. + rm -v securimage/LICENSE.txt || die +} + +src_install() +{ + insinto /usr/share/php + doins -r securimage || die + + dodoc securimage-doc/* || die +}