Line | |
---|
1 | # Copyright 1999-2009 Gentoo Foundation |
---|
2 | # Distributed under the terms of the GNU General Public License v2 |
---|
3 | # $Header: /var/cvsroot/gentoo-x86/www-apps/trac-webadmin/trac-webadmin-0.1.2.ebuild,v 1.4 2007/02/13 20:39:33 corsair Exp $ |
---|
4 | |
---|
5 | inherit distutils subversion |
---|
6 | |
---|
7 | ESVN_REPO_URI="http://trac-hacks.org/svn/simplecaptchaplugin/0.11" |
---|
8 | DESCRIPTION="A simple CAPTCHA for new user registration using Trac's AccountManagerPlugin that uses Skimpy Gimpy." |
---|
9 | HOMEPAGE="http://trac-hacks.org/wiki/SimpleCaptchaPlugin" |
---|
10 | # SRC_URI="mirror://gentoo/${P}.tar.bz2" |
---|
11 | |
---|
12 | LICENSE="trac" |
---|
13 | KEYWORDS="~amd64 ~ppc64 ~x86" |
---|
14 | IUSE="" |
---|
15 | |
---|
16 | SLOT="0" |
---|
17 | |
---|
18 | DEPEND="=www-apps/trac-0.12* |
---|
19 | www-apps/trac-acct_mgr |
---|
20 | dev-python/skimpy |
---|
21 | >=dev-python/setuptools-0.6_rc1" |
---|
22 | |
---|
23 | # from marienz's setuptools.eclass: |
---|
24 | src_install() { |
---|
25 | "${python}" setup.py install --root=${D} --no-compile \ |
---|
26 | --single-version-externally-managed "$@" || die "install failed" |
---|
27 | } |
---|
28 | |
---|
29 | src_test() { |
---|
30 | "${python}" setup.py test || die "tests failed" |
---|
31 | } |
---|
32 | |
---|
33 | pkg_postinst() { |
---|
34 | elog "To enable the SimpleCaptcha plugin in your Trac environments, you have to add:" |
---|
35 | elog " [simplecaptcha]" |
---|
36 | elog " dictionary_file = /path/to/dictionary.txt" |
---|
37 | elog "to your trac.ini files." |
---|
38 | elog |
---|
39 | elog "To be able to see the Admin tab, your users must have the TRAC_ADMIN permission" |
---|
40 | elog "and/or the TICKET_ADMIN permission." |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.