www-apps/trac: cleanup

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2348 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-08-31 19:22:19 +00:00
parent 9230c18a13
commit 2f6ed66453
8 changed files with 6 additions and 812 deletions

View File

@ -2,6 +2,11 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v 1.84 2008/11/17 04:40:58 wrobel Exp $
31 Aug 2010; Mario Fetka <mario.fetka@gmail.com> -trac-0.11.2.1.ebuild,
-trac-0.11.3.ebuild, -trac-0.11.4.ebuild, -trac-0.11.6.ebuild,
-trac-0.11.7.ebuild, -trac-0.12.ebuild:
cleanup
31 Aug 2010; Mario Fetka <mario.fetka@gmail.com> +trac-0.12-r1.ebuild:
ad arm keyword

View File

@ -3,18 +3,7 @@ AUX postupgrade-en.txt 674 RMD160 088b1b590ebd7876347b06e71f9dda549238eda1 SHA1
AUX tracd.confd 359 RMD160 7328dd041576abbc76130ce220041d837289dd00 SHA1 91a6077f1baf9301082826697e8828c6039f7648 SHA256 6ae50c887d18f8eeda7d59c4d3fd1b5e07e407711c4e4679fef3583f7be8ed6e
AUX tracd.initd 881 RMD160 c215a990133d5b655bc94e13ab4de9d1c938a163 SHA1 2c1a9dbae7e4890c2fb71f22091786ba7396c940 SHA256 6e76bfffe7f6928bff24d79b97aa8bbd27dafdfbb16fe8c79b7ad298e202d950
AUX tracd.initd.2 939 RMD160 2991a7a8d2d1a2911a899ed5f356fd88de872b5d SHA1 c8d00dc0e7ca92f17caa4ec1dfa49d3178fbc735 SHA256 9cd796e0fb516a91f5ec69037819144e9b9920af5df4f91839f9fb7fc67823a0
DIST Trac-0.11.2.1.tar.gz 713838 RMD160 aeb8e861f144c2b91698c0e6d25d06778345842c SHA1 30643926822ea2185307ee21993abe59ee357564 SHA256 bc95802880a9a4b430286812ff848f72e652603fc2cc5be05844f70c0fccab3a
DIST Trac-0.11.3.tar.gz 722747 RMD160 39c980f158120e49ccf01a1ac00262bec8f02d43 SHA1 3d0424a065efc16abd8ba50aeefd3926bb2d1056 SHA256 f50a1c1dd0fc10020ef903296846a85276e588036d49a00b1f557ca8f0048ad9
DIST Trac-0.11.4.tar.gz 724708 RMD160 dffe20cb4f1cda2d8feaed5746a9701c24ccaeef SHA1 392f5fc0bc8e29ebea07182707ad31a55b9ec46f SHA256 40a8e633fd05b0468f9bce5e426a83a4ad1e42d1c59c29c6182e238efd811920
DIST Trac-0.11.6.tar.gz 749517 RMD160 ff384a4774da3631b1763efa76943450406710ef SHA1 9bb360cd86dcb16ec139a8ef10dd1b346adcaa18 SHA256 4c4151fecfbf6ed3defdf94be9262a44076e40f544eb191cc6e73c0e4b83e05a
DIST Trac-0.11.7.tar.gz 757073 RMD160 d55cc6095f00df4736b677163405b31cdd285341 SHA1 0a1b756ca580ecaac7e76531e80890728b976122 SHA256 c6af8cc9fa0cb8fd74611896e46a436cef9660b77be1972a99b0d3ddb894232f
DIST Trac-0.12.tar.gz 2107428 RMD160 aca8d024a582519cefef07053517d14722f87609 SHA1 f13a5caf2ab353248f696dc5320df7a27c102e06 SHA256 a1c15c0c3a0c717e6d50d4e4f949b8e8c510a308611013c45c6253c675e805cf
EBUILD trac-0.11.2.1.ebuild 3982 RMD160 c1ac8f67f5b0d27e56ddffcea318516eea010379 SHA1 a708f6a20c767c1e44f6b537b1f816b62682fe3f SHA256 b14eb838a8f3fafec96cf52404ad4383e9a6985957fe3b19acf6aed43c0e3438
EBUILD trac-0.11.3.ebuild 3982 RMD160 c1ac8f67f5b0d27e56ddffcea318516eea010379 SHA1 a708f6a20c767c1e44f6b537b1f816b62682fe3f SHA256 b14eb838a8f3fafec96cf52404ad4383e9a6985957fe3b19acf6aed43c0e3438
EBUILD trac-0.11.4.ebuild 3985 RMD160 779b6ceed8d3e41535f1af95e63b731ad4982fc0 SHA1 ac1c258d789cc0106b80de403e84661e592d9c0e SHA256 c510cdb48f8febd6b49190f41a0396411b1e974bd0e3923a78b1463024e6cbe7
EBUILD trac-0.11.6.ebuild 2340 RMD160 042e571be2de22d7430d7c3be800db853cf741b9 SHA1 b0d57fec8d38cf18fb727a2a2ec40c6b48e8a2ba SHA256 7a6ef0cfc4430ba02733dff0168904930a635ca05f613dc0ee5f503f5d472656
EBUILD trac-0.11.7.ebuild 2517 RMD160 9dd25b2be1e9b5502b2e29e3b5c9fd1b12f4f7c4 SHA1 942cc1950b6922bca50c661380538a8e363800c0 SHA256 54ee7801ecad923fc7edd3e0fe129b62f91da18dcf1614f38fe4402fdf298de7
EBUILD trac-0.12-r1.ebuild 2749 RMD160 fe1579e8d12c94814300f4f2a6970073426fe974 SHA1 899883db033cb8219bc0d939338f4debcb942a94 SHA256 ff6113ad44decce02e359d88d751b84536d96b8c622f58c7f6fece80e1f40098
EBUILD trac-0.12.ebuild 2824 RMD160 2c00e6e493566e3a99c57a68903b7066d79fedb9 SHA1 cc203060026d34203297d4211375e7dda2e1fa8f SHA256 d58b0277ccdde56f8b1e258baedc3fdcd4f1d6ea819b64704393ccbc797c6963
MISC ChangeLog 14790 RMD160 9500da39b252153714170cd9dd695f7e23635831 SHA1 2831e2f9889b81071350e1c5e6a51a45bfcc30e3 SHA256 ef5b240378021611932093116bb60e4c0435ae3804ff7967d964854119dab371
MISC ChangeLog 14982 RMD160 a98050dae5dcf4d9d95792236d3dbeffb6636275 SHA1 de58697e1fef17bf009c8273217393a92520a1e7 SHA256 9a52f91403b0c0af6ddf512dfbf2326d15fb2a223eedd3ba9a604345b137f540
MISC metadata.xml 294 RMD160 583b0b68a78884cf52e3a16a0aa9195dbb50654d SHA1 f73728c47f88df1bd4b4760b28c4f48c63a30ebb SHA256 a77b23b4cddd5cd048cbe2c0fdd3950d53ef2b48d30cdf1b1f501ee25a690e08

View File

@ -1,153 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.2.ebuild,v 1.3 2008/11/16 17:47:23 maekke Exp $
inherit distutils webapp
MY_PV=${PV/_beta/b}
MY_P=Trac-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
HOMEPAGE="http://trac.edgewall.com/"
LICENSE="trac"
SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
IUSE="cgi fastcgi mysql postgres sqlite subversion"
KEYWORDS="amd64 ~arm ppc ~ppc64 ~sparc x86"
# doing so because tools, python packages... overlap
SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
DEPEND="
${DEPEND}
dev-python/setuptools
"
RDEPEND="
${RDEPEND}
>=dev-python/genshi-0.5
dev-python/pygments
>=dev-python/docutils-0.3.9
dev-python/pytz
cgi? (
virtual/httpd-cgi
)
fastcgi? (
virtual/httpd-fastcgi
)
mysql? (
>=dev-python/mysql-python-1.2.1
>=virtual/mysql-4.1
)
postgres? (
>=dev-python/psycopg-2
)
sqlite? (
>=dev-db/sqlite-3.3.4
|| (
>=dev-lang/python-2.5
>=dev-python/pysqlite-2.3.2
)
)
subversion? (
>=dev-util/subversion-1.4.2
)
!www-apps/trac-webadmin
"
# The following function should be added to eutils.eclass (see bug #143572):
# Generate an standard error message for missing USE flags
# in existing packages, and die.
#
# Usage: built_with_use_die <category/package> <functionality> [<USE flag>]
# ex: built_with_use_die dev-util/subversion python
# or: built_with_use_die www-servers/apache LDAP ldap
#
# Typical usage:
# if ! built_with_use dev-util/subversion python ; then
# built_with_use_die dev-util/subversion python
# fi
#
# Note: when <USE flag> is not specified, <functionality> is used for the USE flag name.
built_with_use_die() {
local package=$1
local func=$2
local use_flag=$3
[[ -z ${use_flag} ]] && use_flag=${func}
eerror "Your ${package} package has been built without"
eerror "${func} support, please enable the '${use_flag}' USE flag and"
eerror "re-emerge ${package}."
elog "You can enable this USE flag either globally in /etc/make.conf,"
elog "or just for specific packages in /etc/portage/package.use."
die "${package} missing ${func} support"
}
pkg_setup() {
webapp_pkg_setup
if ! use mysql && ! use postgres && ! use sqlite ; then
eerror "You must select at least one database backend, by enabling"
eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
die "no database backend selected"
fi
# python has built-in sqlite support starting from 2.5
if use sqlite && \
has_version ">=dev-lang/python-2.5" && \
! has_version ">=dev-python/pysqlite-2.3" && \
! built_with_use dev-lang/python sqlite ; then
eerror "To use the sqlite database backend, you must either:"
eerror "- build dev-lang/python with sqlite support, using the 'sqlite'"
eerror " USE flag, or"
eerror "- emerge dev-python/pysqlite"
die "missing python sqlite support"
fi
if use subversion && \
! built_with_use dev-util/subversion python ; then
built_with_use_die dev-util/subversion python
fi
enewgroup tracd
enewuser tracd -1 -1 -1 tracd
}
src_install() {
webapp_src_preinst
distutils_src_install
# project environments might go in here
keepdir /var/lib/trac
# Use this as the egg-cache for tracd
dodir /var/lib/trac/egg-cache
keepdir /var/lib/trac/egg-cache
fowners tracd:tracd /var/lib/trac/egg-cache
# documentation
cp -r contrib "${D}"/usr/share/doc/${P}/
# tracd init script
newconfd "${FILESDIR}"/tracd.confd tracd
newinitd "${FILESDIR}"/tracd.initd.2 tracd
if use cgi ; then
cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
fi
if use fastcgi ; then
cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
fi
for lang in en; do
webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
done
webapp_src_install
}

View File

@ -1,153 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.2.ebuild,v 1.3 2008/11/16 17:47:23 maekke Exp $
inherit distutils webapp
MY_PV=${PV/_beta/b}
MY_P=Trac-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
HOMEPAGE="http://trac.edgewall.com/"
LICENSE="trac"
SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
IUSE="cgi fastcgi mysql postgres sqlite subversion"
KEYWORDS="amd64 ~arm ppc ~ppc64 ~sparc x86"
# doing so because tools, python packages... overlap
SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
DEPEND="
${DEPEND}
dev-python/setuptools
"
RDEPEND="
${RDEPEND}
>=dev-python/genshi-0.5
dev-python/pygments
>=dev-python/docutils-0.3.9
dev-python/pytz
cgi? (
virtual/httpd-cgi
)
fastcgi? (
virtual/httpd-fastcgi
)
mysql? (
>=dev-python/mysql-python-1.2.1
>=virtual/mysql-4.1
)
postgres? (
>=dev-python/psycopg-2
)
sqlite? (
>=dev-db/sqlite-3.3.4
|| (
>=dev-lang/python-2.5
>=dev-python/pysqlite-2.3.2
)
)
subversion? (
>=dev-util/subversion-1.4.2
)
!www-apps/trac-webadmin
"
# The following function should be added to eutils.eclass (see bug #143572):
# Generate an standard error message for missing USE flags
# in existing packages, and die.
#
# Usage: built_with_use_die <category/package> <functionality> [<USE flag>]
# ex: built_with_use_die dev-util/subversion python
# or: built_with_use_die www-servers/apache LDAP ldap
#
# Typical usage:
# if ! built_with_use dev-util/subversion python ; then
# built_with_use_die dev-util/subversion python
# fi
#
# Note: when <USE flag> is not specified, <functionality> is used for the USE flag name.
built_with_use_die() {
local package=$1
local func=$2
local use_flag=$3
[[ -z ${use_flag} ]] && use_flag=${func}
eerror "Your ${package} package has been built without"
eerror "${func} support, please enable the '${use_flag}' USE flag and"
eerror "re-emerge ${package}."
elog "You can enable this USE flag either globally in /etc/make.conf,"
elog "or just for specific packages in /etc/portage/package.use."
die "${package} missing ${func} support"
}
pkg_setup() {
webapp_pkg_setup
if ! use mysql && ! use postgres && ! use sqlite ; then
eerror "You must select at least one database backend, by enabling"
eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
die "no database backend selected"
fi
# python has built-in sqlite support starting from 2.5
if use sqlite && \
has_version ">=dev-lang/python-2.5" && \
! has_version ">=dev-python/pysqlite-2.3" && \
! built_with_use dev-lang/python sqlite ; then
eerror "To use the sqlite database backend, you must either:"
eerror "- build dev-lang/python with sqlite support, using the 'sqlite'"
eerror " USE flag, or"
eerror "- emerge dev-python/pysqlite"
die "missing python sqlite support"
fi
if use subversion && \
! built_with_use dev-util/subversion python ; then
built_with_use_die dev-util/subversion python
fi
enewgroup tracd
enewuser tracd -1 -1 -1 tracd
}
src_install() {
webapp_src_preinst
distutils_src_install
# project environments might go in here
keepdir /var/lib/trac
# Use this as the egg-cache for tracd
dodir /var/lib/trac/egg-cache
keepdir /var/lib/trac/egg-cache
fowners tracd:tracd /var/lib/trac/egg-cache
# documentation
cp -r contrib "${D}"/usr/share/doc/${P}/
# tracd init script
newconfd "${FILESDIR}"/tracd.confd tracd
newinitd "${FILESDIR}"/tracd.initd.2 tracd
if use cgi ; then
cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
fi
if use fastcgi ; then
cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
fi
for lang in en; do
webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
done
webapp_src_install
}

View File

@ -1,153 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.2.ebuild,v 1.3 2008/11/16 17:47:23 maekke Exp $
inherit distutils webapp
MY_PV=${PV/_beta/b}
MY_P=Trac-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
HOMEPAGE="http://trac.edgewall.com/"
LICENSE="trac"
SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
IUSE="cgi fastcgi mysql postgres sqlite subversion"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
# doing so because tools, python packages... overlap
SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
DEPEND="
${DEPEND}
dev-python/setuptools
"
RDEPEND="
${RDEPEND}
>=dev-python/genshi-0.5
dev-python/pygments
>=dev-python/docutils-0.3.9
dev-python/pytz
cgi? (
virtual/httpd-cgi
)
fastcgi? (
virtual/httpd-fastcgi
)
mysql? (
>=dev-python/mysql-python-1.2.1
>=virtual/mysql-4.1
)
postgres? (
>=dev-python/psycopg-2
)
sqlite? (
>=dev-db/sqlite-3.3.4
|| (
>=dev-lang/python-2.5
>=dev-python/pysqlite-2.3.2
)
)
subversion? (
>=dev-util/subversion-1.4.2
)
!www-apps/trac-webadmin
"
# The following function should be added to eutils.eclass (see bug #143572):
# Generate an standard error message for missing USE flags
# in existing packages, and die.
#
# Usage: built_with_use_die <category/package> <functionality> [<USE flag>]
# ex: built_with_use_die dev-util/subversion python
# or: built_with_use_die www-servers/apache LDAP ldap
#
# Typical usage:
# if ! built_with_use dev-util/subversion python ; then
# built_with_use_die dev-util/subversion python
# fi
#
# Note: when <USE flag> is not specified, <functionality> is used for the USE flag name.
built_with_use_die() {
local package=$1
local func=$2
local use_flag=$3
[[ -z ${use_flag} ]] && use_flag=${func}
eerror "Your ${package} package has been built without"
eerror "${func} support, please enable the '${use_flag}' USE flag and"
eerror "re-emerge ${package}."
elog "You can enable this USE flag either globally in /etc/make.conf,"
elog "or just for specific packages in /etc/portage/package.use."
die "${package} missing ${func} support"
}
pkg_setup() {
webapp_pkg_setup
if ! use mysql && ! use postgres && ! use sqlite ; then
eerror "You must select at least one database backend, by enabling"
eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
die "no database backend selected"
fi
# python has built-in sqlite support starting from 2.5
if use sqlite && \
has_version ">=dev-lang/python-2.5" && \
! has_version ">=dev-python/pysqlite-2.3" && \
! built_with_use dev-lang/python sqlite ; then
eerror "To use the sqlite database backend, you must either:"
eerror "- build dev-lang/python with sqlite support, using the 'sqlite'"
eerror " USE flag, or"
eerror "- emerge dev-python/pysqlite"
die "missing python sqlite support"
fi
if use subversion && \
! built_with_use dev-util/subversion python ; then
built_with_use_die dev-util/subversion python
fi
enewgroup tracd
enewuser tracd -1 -1 -1 tracd
}
src_install() {
webapp_src_preinst
distutils_src_install
# project environments might go in here
keepdir /var/lib/trac
# Use this as the egg-cache for tracd
dodir /var/lib/trac/egg-cache
keepdir /var/lib/trac/egg-cache
fowners tracd:tracd /var/lib/trac/egg-cache
# documentation
cp -r contrib "${D}"/usr/share/doc/${P}/
# tracd init script
newconfd "${FILESDIR}"/tracd.confd tracd
newinitd "${FILESDIR}"/tracd.initd.2 tracd
if use cgi ; then
cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
fi
if use fastcgi ; then
cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
fi
for lang in en; do
webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
done
webapp_src_install
}

View File

@ -1,104 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.5.ebuild,v 1.5 2009/10/17 08:26:29 djc Exp $
EAPI="2"
inherit distutils webapp
MY_PV=${PV/_beta/b}
MY_P=Trac-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
HOMEPAGE="http://trac.edgewall.com/"
LICENSE="trac"
SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
IUSE="cgi fastcgi mysql postgres +sqlite subversion"
KEYWORDS="amd64 ~arm ppc ~ppc64 ~sparc x86"
# doing so because tools, python packages... overlap
SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
RDEPEND="
dev-python/setuptools
>=dev-python/genshi-0.5
dev-python/pygments
>=dev-python/docutils-0.3.9
dev-python/pytz
cgi? (
virtual/httpd-cgi
)
fastcgi? (
virtual/httpd-fastcgi
)
mysql? (
>=dev-python/mysql-python-1.2.1
>=virtual/mysql-4.1
)
postgres? (
>=dev-python/psycopg-2
)
sqlite? (
>=dev-db/sqlite-3.3.4
|| (
>=dev-lang/python-2.5[sqlite]
>=dev-python/pysqlite-2.3.2
)
)
subversion? (
>=dev-util/subversion-1.4.2[python]
)
!www-apps/trac-webadmin
"
DEPEND="${RDEPEND}"
pkg_setup() {
webapp_pkg_setup
if ! use mysql && ! use postgres && ! use sqlite; then
eerror "You must select at least one database backend, by enabling"
eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
die "no database backend selected"
fi
enewgroup tracd
enewuser tracd -1 -1 -1 tracd
}
src_install() {
webapp_src_preinst
distutils_src_install
# project environments might go in here
keepdir /var/lib/trac
# Use this as the egg-cache for tracd
dodir /var/lib/trac/egg-cache
keepdir /var/lib/trac/egg-cache
fowners tracd:tracd /var/lib/trac/egg-cache
# documentation
cp -r contrib "${D}"/usr/share/doc/${P}/
# tracd init script
newconfd "${FILESDIR}"/tracd.confd tracd
newinitd "${FILESDIR}"/tracd.initd.2 tracd
if use cgi; then
cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
fi
if use fastcgi; then
cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
fi
for lang in en; do
webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
done
webapp_src_install
}

View File

@ -1,114 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.7.ebuild,v 1.6 2010/06/22 18:55:13 arfrever Exp $
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils webapp
MY_PV=${PV/_beta/b}
MY_P=Trac-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
HOMEPAGE="http://trac.edgewall.com/"
LICENSE="BSD"
SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
IUSE="cgi fastcgi mysql postgres +sqlite subversion"
KEYWORDS="amd64 ~arm ppc ~ppc64 ~sparc x86"
# doing so because tools, python packages... overlap
SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
RDEPEND="
dev-python/setuptools
>=dev-python/docutils-0.3.9
dev-python/flup
>=dev-python/genshi-0.5
dev-python/pygments
dev-python/pytz
cgi? (
virtual/httpd-cgi
)
fastcgi? (
virtual/httpd-fastcgi
)
mysql? (
>=dev-python/mysql-python-1.2.1
>=virtual/mysql-4.1
)
postgres? (
>=dev-python/psycopg-2
)
sqlite? (
>=dev-db/sqlite-3.3.4
|| (
>=dev-lang/python-2.5[sqlite]
>=dev-python/pysqlite-2.3.2
)
)
subversion? (
>=dev-vcs/subversion-1.4.2[python]
)
!www-apps/trac-webadmin
"
DEPEND="${RDEPEND}"
RESTRICT_PYTHON_ABIS="3.*"
pkg_setup() {
python_pkg_setup
webapp_pkg_setup
if ! use mysql && ! use postgres && ! use sqlite; then
eerror "You must select at least one database backend, by enabling"
eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
die "no database backend selected"
fi
enewgroup tracd
enewuser tracd -1 -1 -1 tracd
}
src_install() {
webapp_src_preinst
distutils_src_install
# project environments might go in here
keepdir /var/lib/trac
# Use this as the egg-cache for tracd
dodir /var/lib/trac/egg-cache
keepdir /var/lib/trac/egg-cache
fowners tracd:tracd /var/lib/trac/egg-cache
# documentation
cp -r contrib "${D}"/usr/share/doc/${P}/
# tracd init script
newconfd "${FILESDIR}"/tracd.confd tracd
newinitd "${FILESDIR}"/tracd.initd tracd
if use cgi; then
cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
fi
if use fastcgi; then
cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
fi
for lang in en; do
webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
done
webapp_src_install
}
pkg_postinst() {
distutils_pkg_postinst
webapp_pkg_postinst
}

View File

@ -1,123 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.12.ebuild,v 1.4 2010/07/22 04:18:10 phajdan.jr Exp $
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils webapp
MY_PV=${PV/_beta/b}
MY_P=Trac-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
HOMEPAGE="http://trac.edgewall.com/"
LICENSE="BSD"
SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz"
IUSE="cgi fastcgi i18n mysql postgres +sqlite subversion"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc x86"
# doing so because tools, python packages... overlap
SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
RDEPEND="
dev-python/setuptools
>=dev-python/docutils-0.3.9
dev-python/flup
>=dev-python/genshi-0.6
dev-python/pygments
dev-python/pytz
i18n? ( >=dev-python/Babel-0.9.5 )
cgi? ( virtual/httpd-cgi )
fastcgi? ( virtual/httpd-fastcgi )
mysql? (
>=dev-python/mysql-python-1.2.1
>=virtual/mysql-4.1
)
postgres? ( >=dev-python/psycopg-2 )
sqlite? (
>=dev-db/sqlite-3.3.4
|| (
>=dev-lang/python-2.5[sqlite]
>=dev-python/pysqlite-2.3.2
)
)
subversion? ( >=dev-vcs/subversion-1.4.2[python] )
!www-apps/trac-webadmin
"
DEPEND="${RDEPEND}"
RESTRICT_PYTHON_ABIS="3.*"
pkg_setup() {
python_pkg_setup
webapp_pkg_setup
if ! use mysql && ! use postgres && ! use sqlite; then
eerror "You must select at least one database backend, by enabling"
eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
die "no database backend selected"
fi
enewgroup tracd
enewuser tracd -1 -1 -1 tracd
}
src_test() {
testing() {
PYTHONPATH=. "$(PYTHON)" trac/test.py
}
python_execute_function testing
if use i18n; then
make check
fi
}
# the default src_compile just calls setup.py build
# currently, this switches i18n catalog compilation based on presence of Babel
src_install() {
webapp_src_preinst
distutils_src_install
# project environments might go in here
keepdir /var/lib/trac
# Use this as the egg-cache for tracd
dodir /var/lib/trac/egg-cache
keepdir /var/lib/trac/egg-cache
fowners tracd:tracd /var/lib/trac/egg-cache
# documentation
cp -r contrib "${D}"/usr/share/doc/${P}/
# tracd init script
newconfd "${FILESDIR}"/tracd.confd tracd
newinitd "${FILESDIR}"/tracd.initd tracd
if use cgi; then
cp cgi-bin/trac.cgi "${D}"/${MY_CGIBINDIR} || die
fi
if use fastcgi; then
cp cgi-bin/trac.fcgi "${D}"/${MY_CGIBINDIR} || die
fi
for lang in en; do
webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
done
webapp_src_install
}
pkg_postinst() {
distutils_pkg_postinst
webapp_pkg_postinst
}