1 | # Copyright 1999-2010 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/downloadsplugin/0.12/" |
---|
8 | DESCRIPTION="This plugin provides downloads section which may contain releases or other files." |
---|
9 | HOMEPAGE="http://trac-hacks.org/wiki/DownloadsPlugin" |
---|
10 | # SRC_URI="mirror://gentoo/${P}.tar.bz2" |
---|
11 | |
---|
12 | LICENSE="trac" |
---|
13 | KEYWORDS="~amd64 ~arm ~ppc64 ~x86" |
---|
14 | IUSE="" |
---|
15 | |
---|
16 | SLOT="0" |
---|
17 | |
---|
18 | DEPEND="=www-apps/trac-0.12* |
---|
19 | >=dev-python/setuptools-0.6_rc1" |
---|
20 | |
---|
21 | # from marienz's setuptools.eclass: |
---|
22 | src_install() { |
---|
23 | "${python}" setup.py install --root=${D} --no-compile \ |
---|
24 | --single-version-externally-managed "$@" || die "install failed" |
---|
25 | } |
---|
26 | |
---|
27 | src_test() { |
---|
28 | "${python}" setup.py test || die "tests failed" |
---|
29 | } |
---|
30 | |
---|
31 | pkg_postinst() { |
---|
32 | elog "To enable the GitPlugin plugin in your Trac environments, you have to add:" |
---|
33 | elog " [components]" |
---|
34 | elog " tracdownloads.api.DownloadsApi = enabled" |
---|
35 | elog " tracdownloads.core.DownloadsCore = enabled" |
---|
36 | elog " tracdownloads.init.DownloadsInit = enabled" |
---|
37 | elog " tracdownloads.timeline.DownloadsTimeline = enabled" |
---|
38 | elog " tracdownloads.wiki.DownloadsWiki = enabled" |
---|
39 | elog " tracdownloads.admin.DownloadsWebAdmin = enabled # Branch 0.10 and 0.11." |
---|
40 | elog " tracdownloads.webadmin.DownloadsWebAdmin = enabled # Branch 0.12 only." |
---|
41 | elog " tracdownloads.consoleadmin.DownloadsConsoleAdmin = enabled # Branch 0.12 only." |
---|
42 | elog " tracdownloads.core.DownloadsDownloads = enabled # Branch 0.12 only." |
---|
43 | elog " tracdownloads.tags.DownloadsTags = enabled # With TagsPlugin installed." |
---|
44 | elog " [downloads]" |
---|
45 | elog " title = Downloads" |
---|
46 | elog " path = /var/lib/trac/downloads" |
---|
47 | elog " ext = zip gz bz2 rar # For 0.10 and 0.11 branch." |
---|
48 | elog " ext = zip,gz,bz2,rar # For 0.12 branch." |
---|
49 | elog " visible_fields = id file description size time count author tags component version \" |
---|
50 | elog " architecture platform type # For 0.10 and 0.11 branch." |
---|
51 | elog " visible_fields = id,file,description,size,time,count,author,tags,component,version, \" |
---|
52 | elog " architecture,platform,type # For 0.12 branch." |
---|
53 | elog " unique_filename = False" |
---|
54 | elog " consoleadmin_user = anonymous # Branch 0.12 only." |
---|
55 | elog "" |
---|
56 | elog "to your trac.ini files." |
---|
57 | } |
---|