| 1 | = Installing and Running Trac on Gentoo = |
| 2 | |
| 3 | Here is an ebuild that is suitable for installing Trac 0.6.1 on Gentoo Linux. It should include all dependencies listed in the install guide. Since I have only tested on x86, it only includes the ~x86 keyword, so you will have to emerge with ACCEPT_KEYWORDS=~x86 set, or include the following in your /etc/portage/package.keywords: |
| 4 | |
| 5 | {{{ |
| 6 | net-www/trac ~x86 |
| 7 | }}} |
| 8 | |
| 9 | You will probably need to do the same thing for some other packages with ~x86, because at the moment, subversion and clearsilver only have ~x86 ebuilds in the main portage tree. |
| 10 | |
| 11 | Here is the ebuild: |
| 12 | |
| 13 | {{{ |
| 14 | # Copyright 1999-2004 Gentoo Technologies, Inc. |
| 15 | # Distributed under the terms of the GNU General Public License v2 |
| 16 | # $Header: $ |
| 17 | |
| 18 | DESCRIPTION="Software project portal with subversion integration, bug tracking, and wiki" |
| 19 | HOMEPAGE="http://projects.edgewall.com/trac/" |
| 20 | SRC_URI="ftp://ftp.edgewall.com/pub/trac/${P}.tar.gz" |
| 21 | LICENSE="GPL" |
| 22 | SLOT="0" |
| 23 | KEYWORDS="~x86" |
| 24 | IUSE="" |
| 25 | |
| 26 | DEPEND=">=dev-lang/python-2.1 |
| 27 | >=dev-util/subversion-0.37 |
| 28 | dev-db/sqlite |
| 29 | >=dev-python/pysqlite-0.4.3 |
| 30 | >=dev-libs/clearsilver-0.9.3" |
| 31 | |
| 32 | src_compile() { |
| 33 | einfo "No compilation required" |
| 34 | } |
| 35 | |
| 36 | src_install() { |
| 37 | python ./setup.py install --prefix=/usr --root ${D} || die |
| 38 | } |
| 39 | }}} |
| 40 | |
| 41 | The best place to install it would be in your local portage overlay. Uncomment PORTDIR_OVERLAY in your make.conf, and save this ebuild as ${PORTDIR_OVERLAY}/net-www/trac/trac-0.6.1.ebuild. Then run '''ebuild ${PORTDIR_OVERLAY}/net-www/trac/trac-0.6.1.ebuild digest''' to create the md5 sum for the source archive. Then '''emerge trac'''. |
| 42 | |
| 43 | The ebuild has not been submitted to the Gentoo maintainers yet, as I want to make sure it works cleanly. Once I'm sure it works reasonably well, I will submit it so it will be in the main portage tree, and all this extra nonsense won't be necessary. |
| 44 | |
| 45 | Enjoy! |