diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/trac |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/trac')
-rw-r--r-- | www-apps/trac/Manifest | 16 | ||||
-rw-r--r-- | www-apps/trac/files/postinst-en.txt | 41 | ||||
-rw-r--r-- | www-apps/trac/files/postupgrade-en.txt | 19 | ||||
-rw-r--r-- | www-apps/trac/files/tracd.confd | 13 | ||||
-rw-r--r-- | www-apps/trac/files/tracd.initd | 26 | ||||
-rw-r--r-- | www-apps/trac/metadata.xml | 17 | ||||
-rw-r--r-- | www-apps/trac/trac-1.0.13.ebuild | 128 | ||||
-rw-r--r-- | www-apps/trac/trac-1.0.9.ebuild | 128 | ||||
-rw-r--r-- | www-apps/trac/trac-1.2-r1.ebuild | 114 | ||||
-rw-r--r-- | www-apps/trac/trac-1.2.1.ebuild | 114 | ||||
-rw-r--r-- | www-apps/trac/trac-1.2.ebuild | 128 |
11 files changed, 744 insertions, 0 deletions
diff --git a/www-apps/trac/Manifest b/www-apps/trac/Manifest new file mode 100644 index 000000000000..205af169f54d --- /dev/null +++ b/www-apps/trac/Manifest @@ -0,0 +1,16 @@ +AUX postinst-en.txt 1331 SHA256 1799cf63e70e2ed7c3b1a1148b29ce456dda8e84ef137605549de7f1e2856a95 SHA512 6bde40a16545462ef0d8654ffc860e031f5978a253b0fe68df24b18a281f396fd560e4b39a6c53ecee52c9be941ca83dccd1aee9a98dccf570a9f5b0f0c6bbaf WHIRLPOOL d082aec44d057e3e0a7ccae6989a09c6c2e259bcc896cdd2bbea650c69c069fb9cbae7abd0db46f6c1cf6888cc36656a6a7271e2dfc962e21c5fa74708740ad8 +AUX postupgrade-en.txt 665 SHA256 aec1179a04056a650a4f7429a927f510cd0e7256f889fdae2575ef471634ba41 SHA512 bc4684dff491d6140d7d97a1de6cc2773d5f834054bc3d8c122c5d6777f543a08f93e4142c50dcbda862d75ba5c19ffd49ca37876e57df4ee19869099a346a4f WHIRLPOOL 512578b971cee45e0699e7461dd12ee37844bda48e69018d8956f81768e13a31ff30f91421697228410e61fa7159dc1a07e0831d8f4941e6d1bf1855d8d08207 +AUX tracd.confd 359 SHA256 6ae50c887d18f8eeda7d59c4d3fd1b5e07e407711c4e4679fef3583f7be8ed6e SHA512 38a961fe59b690eb91e20143aaea6aa1becda8c2afa103599d14ff86c7aae88f06b57b342302de1f067dac5d99024b9cc72896a84349e09b3ff40c9a20f97bb1 WHIRLPOOL 591394e732d39bc13f97004cfb3c18128aa16a55557172d872797b5ca5c69e5f15d1420e697a4e40215b2a893ed684ba6b6388abacd97874fd6f04953b579e1a +AUX tracd.initd 823 SHA256 e36edaface1199cb677184815876de1778695b136580e0de294150b932d17495 SHA512 88a2c92fc1f947d794e68b158db1786cd9c2891de5d3d0d5b738e1245f35998e17741176ecd2a9562d21058f480668cfa61628c7a7b4bccf62e1373728db5be6 WHIRLPOOL b10df072a219c73b8498129826c7664ae0f0f8aab756f3ab229168d16d9d318b1871afdb90fe68428d49256acdd6e6058e436ae27a1cef618f711d800fbe429d +DIST Trac-1.0.13.tar.gz 3671741 SHA256 48ea3a9a23bb6bc7a9a643b90a7d7d274affedd344f21b73b81b421841cd527d SHA512 b4b2066482bdd6ba16183f2021bc069d1054177462726de1d844a28eccdc0b32405a0c510143f6ff84caaebebc571114e81cc0acc679ce94f8046b49d6854c1e WHIRLPOOL fc4151b5dc375a93413e3e1f23109644221eee6d741e442d03bccff6492c9cb816644783ec663b460279661fa8b50111456041094e531c8f24588af362ec4357 +DIST Trac-1.0.9.tar.gz 3642845 SHA256 9ed3f0a2039c46132d10f35c211f9f6ee953339cc08492a41d1bf8741d6eebfa SHA512 af429db720049ab344ce3c3b430dcf0ab7530013f59ccd2334633de9babc3f31b14829b9b5aa48aa05f614ca72d1d557953c58bbfb93faae2267afeac72e6304 WHIRLPOOL 4005102b1109aac94728d22151c2192a38f9ab91af0227a24dff1a2e2097e67ceafa0cef0f307f1a1ddb1999c109d142bbb739107d4047dc296e6a8396a9427a +DIST Trac-1.2.1.tar.gz 6212917 SHA256 0af71c555f4617849432bba1fc59c1654cd13d030ebbcdbef814d82d7a8bb0c3 SHA512 0ee008ce0d890873eb6db7eca60e362760c4a4857dd74bda67c30e566dcb5bd64ccd6d5e7317da904e8dcfb7d4a017004d3bb794dd405936c94803b2fcc4829f WHIRLPOOL e2b17393dea34f39a030099b3fd02c68bfacfb7a7247008cc84cda5bc5807752dcef52ae345b39ab2aee02eef4aab04477d5b76d30bcf649991c2a53f5a7dd6c +DIST Trac-1.2.tar.gz 3821867 SHA256 fd3cf3a9d2113d94f4f153995e737bc747e8d48cc40ac5171a114266ba4d2b0b SHA512 0655723a6727df389d66bb9c752436a81c820750659e5bf7a64485c4362fa1b1c1cb6dcdaa9936003838ce5874b20bbc5a8d8fc1034b96ff31b3bbc6f7fca105 WHIRLPOOL d347dac1eeb426d25b15a7c0f34da4363fb9f5d424d3be311750dfae9dbd515d54ab8c72b408ae6f7fe2182da10b9c4f0057b28bc3b52c7fd2ca7bfaa00f14a6 +EBUILD trac-1.0.13.ebuild 2949 SHA256 0d89de16312e81875bff972d395ca789023b5a4ae55889e4b5b95b9e4679d3ce SHA512 6fd1b0d2cb2df809849934db5b925c151d28b62963a7223d2c4bae24304f1c856a98679eb008841aaefbb849a7ed66ef4d7743fb653c6dc559c28d54b47c4372 WHIRLPOOL 61fb5946c779731c14372c955a0193eb5f1910c6aff1c266bb7d4ad1770d3bba64fd441189da2cf9fdaba202373984446c6e743dff7f88e2abd2928a12c4008a +EBUILD trac-1.0.9.ebuild 2960 SHA256 98714bdb22e723dd73284a127e01130d54b953333a949941174e0806d55e54dd SHA512 9c6a0c4d20adc5cf4164894883088580fd5eac246def41535bda9b19f7661c5559150cbd28fec1ce0ad592061a7ef1b9ce247e89ba68929c5162995e1f033602 WHIRLPOOL e23a658d2408d5285e5e7d84d0761a565d58296095a1e7161fc08a58c2f2d7e49c7df000e59ae5a256ecac87fd66d0d6d199a7343f23195b64798007f42c1612 +EBUILD trac-1.2-r1.ebuild 2623 SHA256 4b50880204f586f1d36db9d08175fadd911b1332ad75bd1ae62817532e6d0d46 SHA512 65260592ffb0460e74324f9f588de53185896c154dac5cefed88b9bb304e03af76496352d7d5bc5f3b5144680274ad877328d30d8cd7bcca57730e0070c2e9a3 WHIRLPOOL e21a155c7f83874bd1a6edc2e2cd77ffcc3b9fedb44e2ab858c930d431b48a681d1320017c01cdd7f38f904fb7b5a98040498dfe88c5e257956e740360d86514 +EBUILD trac-1.2.1.ebuild 2623 SHA256 867baa5503c07ddb7e5d0876fc9016b314a6626511e6b329e1866b3048dba4af SHA512 c7f70dcc0b23d169b087e6aee3d65e1fbb14f9c5038f1aca60d5c9480364c98aa5ac4dc2f3ed8352539d2c4a4cd7b742743f2113670d94581526b81b16b09967 WHIRLPOOL 415febe373c73a21e59a60a1a75024c47e7a99c4e00ee9defd1e19558da8fae12e8ac1efae46eb25c00dd1ee7a565e6cd5d4b0bc718e5335a1792c0f2b7b55ac +EBUILD trac-1.2.ebuild 2949 SHA256 0d89de16312e81875bff972d395ca789023b5a4ae55889e4b5b95b9e4679d3ce SHA512 6fd1b0d2cb2df809849934db5b925c151d28b62963a7223d2c4bae24304f1c856a98679eb008841aaefbb849a7ed66ef4d7743fb653c6dc559c28d54b47c4372 WHIRLPOOL 61fb5946c779731c14372c955a0193eb5f1910c6aff1c266bb7d4ad1770d3bba64fd441189da2cf9fdaba202373984446c6e743dff7f88e2abd2928a12c4008a +MISC ChangeLog 5309 SHA256 b8179be3cd2f0b269f9664f4dea4824c632b29ecc90e657f375348ce45313286 SHA512 81ec4a6926212ae6b9a77b1c011606f17b7118c176180a246eae7ea968fcd1e1e0c5570a945c5c3dfefd9ee523bc10bfbce709505a8e42a482630cd6345d6805 WHIRLPOOL 42bfc195e656dfa2c1b6db2587ff022fb13ec569e5fe68a6524ada1757f51b31887219fa0c2238ab6c5c2cac3738c6cf8dac9e9ecfad41e47e2f69a6ef718595 +MISC ChangeLog-2015 22580 SHA256 4a955291ff7f4745ebb548b91c7cc5c870dfe2eb1845d9ab91fb5efaab428f10 SHA512 920c010085427f38e2912b5bad9abb6e6b4dbc5bd2d646eb3de022a2f1b62d607a8576156504c8dd7dfc1cd42fd6efb60b734111ddbe88debb9918d574411ca3 WHIRLPOOL c3c2eb32bee587963a9bb531def1cc1096716640f3db27eb19bc9862f540a4019038d26b7c6b1462ee052d14ad36a20ae0652562080b289ec787d6939d3fca77 +MISC metadata.xml 618 SHA256 c9f47f62c8a0e8165a449c61615714af03243180643d19d60a8d7901d02100a6 SHA512 aaaf6264f4d7a7a61ae01757f270d248574f8e30da18bc84be33c5ac54441933c419fd309c9d9beb439112189de860043f045cd0f0ceb0f6100e0583ff99d8c5 WHIRLPOOL 391921bbbb204ac77047f0c0d216a97506e5b5957ab2908dec6621deb5651495cf1fecb433f1531cf4903c9c450627ffd5183e7190aa356248e7895a67156e0e diff --git a/www-apps/trac/files/postinst-en.txt b/www-apps/trac/files/postinst-en.txt new file mode 100644 index 000000000000..2a4012b9034d --- /dev/null +++ b/www-apps/trac/files/postinst-en.txt @@ -0,0 +1,41 @@ +Install Instructions +==================== + +This is brief and generic information about Trac. + +See the releases notes at http://trac.edgewall.org/wiki/TracDev/ReleaseNotes +for the Trac version you have installed to learn about software changes and +possible caveats. + +Web Server +---------- + +Trac installation depends on the web server you are using. + +FastCGI users: see http://trac.edgewall.org/wiki/TracFastCgi + +CGI users: see http://trac.edgewall.org/wiki/TracCgi + +Apache 2 and mod_python users: you have to manually emerge +www-apache/mod_python. See http://trac.edgewall.org/wiki/TracModPython + +You can also use Trac without having to install a web server. See +http://trac.edgewall.org/wiki/TracStandalone to know more. + +Trac relies on the web server for users authentication. Please refer to the +Trac wiki and to your web server documentation to set up authentication. + +Trac environments +----------------- + +To complete the install, create your first Trac environment by running this +command: + + trac-admin /var/lib/trac/<project-name> initenv + +Don't forget to review the configuration file! It is located at +/var/lib/trac/<project-name>/conf/trac.ini. Consult its reference at +http://trac.edgewall.org/wiki/TracIni + +See http://trac.edgewall.org/wiki/TracEnvironment to know more about Trac +environments and how to configure them. diff --git a/www-apps/trac/files/postupgrade-en.txt b/www-apps/trac/files/postupgrade-en.txt new file mode 100644 index 000000000000..1f5c8ea21a05 --- /dev/null +++ b/www-apps/trac/files/postupgrade-en.txt @@ -0,0 +1,19 @@ +Upgrade Instructions +==================== + +This is brief and generic information about Trac. + +See the releases notes at http://trac.edgewall.org/wiki/TracDev/ReleaseNotes +for the Trac version you have installed to learn about software changes and +possible caveats. + +If you are upgrading from a previous Trac version, please follow the +instructions here: + + http://trac.edgewall.org/wiki/TracUpgrade + +You will need to run trac-admin commands (upgrade, wiki upgrade...) for each +Trac environment you have. + +You might also want to check for new configuration options by comparing trac.ini +file with trac.ini.sample file in the conf/ directory in each Trac environment. diff --git a/www-apps/trac/files/tracd.confd b/www-apps/trac/files/tracd.confd new file mode 100644 index 000000000000..2cb9d292a7cb --- /dev/null +++ b/www-apps/trac/files/tracd.confd @@ -0,0 +1,13 @@ +# The commented variables in this file are the defaults that are used +# in the init-script. You don't need to uncomment them except to +# customize them to different values. + +# Port for tracd +#TRACD_PORT="8000" + +# Options for tracd +#TRACD_OPTS="--env-parent-dir /var/lib/trac/" + +# User and group as which to run tracd +#TRACD_USER="tracd" +#TRACD_GROUP="tracd" diff --git a/www-apps/trac/files/tracd.initd b/www-apps/trac/files/tracd.initd new file mode 100644 index 000000000000..c5a5432f2c06 --- /dev/null +++ b/www-apps/trac/files/tracd.initd @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need net +} + +start() { + ebegin "Starting tracd" + # tracd fails to create pidfile if started as non-root user, thus we are asking + # s-s-d to do that. To have correct pid we avoid -d option of tracd and use + # --background option of s-s-d. + start-stop-daemon --start --user ${TRACD_USER:-tracd} --group ${TRACD_GROUP:-tracd} \ + --pidfile /var/run/tracd.pid --make-pidfile --background \ + --env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \ + --exec /usr/bin/tracd -- \ + -p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/} + eend $? +} + +stop() { + ebegin "Stopping tracd" + start-stop-daemon --stop --quiet --pidfile /var/run/tracd.pid + eend $? +} diff --git a/www-apps/trac/metadata.xml b/www-apps/trac/metadata.xml new file mode 100644 index 000000000000..56eb0c0a14f4 --- /dev/null +++ b/www-apps/trac/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>djc@gentoo.org</email> + <name>Dirkjan Ochtman</name> + </maintainer> + <maintainer type="project"> + <email>web-apps@gentoo.org</email> + <name>Gentoo Webapps</name> + </maintainer> + <use> + <flag name="i18n">Enable support for i18n with dev-python/Babel</flag> + <flag name="highlight">Enable syntax highlighting</flag> + <flag name="restructuredtext">Enable support for reStructuredText for wiki formatting</flag> + </use> +</pkgmetadata> diff --git a/www-apps/trac/trac-1.0.13.ebuild b/www-apps/trac/trac-1.0.13.ebuild new file mode 100644 index 000000000000..3520f7bc0ea5 --- /dev/null +++ b/www-apps/trac/trac-1.0.13.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE='sqlite?' + +DISTUTILS_SINGLE_IMPL=Yes + +inherit distutils-r1 eutils user webapp + +MY_PV=${PV/_p/.post} +MY_P=Trac-${MY_PV} + +DESCRIPTION="Enhanced wiki and issue tracking system for software development projects" +HOMEPAGE="http://trac.edgewall.com/ https://pypi.python.org/pypi/Trac" +SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="cgi fastcgi i18n +highlight +restructuredtext mysql postgres +sqlite subversion test" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/genshi[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + i18n? ( >=dev-python/Babel-0.9.5[${PYTHON_USEDEP}] ) + highlight? ( + || ( + dev-python/pygments[${PYTHON_USEDEP}] + app-text/silvercity + app-text/pytextile + app-text/enscript + ) + ) + restructuredtext? ( dev-python/docutils[${PYTHON_USEDEP}] ) + cgi? ( virtual/httpd-cgi ) + fastcgi? ( virtual/httpd-fastcgi ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] ) + sqlite? ( >=dev-db/sqlite-3.3.4:3 ) + subversion? ( dev-vcs/subversion[python,${PYTHON_USEDEP}] ) + " +DEPEND="${RDEPEND} + test? ( + dev-python/twill[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +pkg_setup() { + python-single-r1_pkg_setup + webapp_pkg_setup + + enewgroup tracd + enewuser tracd -1 -1 -1 tracd +} + +python_prepare_all() { + distutils-r1_python_prepare_all +} + +src_test() { + distutils-r1_src_test +} + +python_test() { + PYTHONPATH=. "${PYTHON}" trac/test.py || die "Tests fail with ${EPYTHON}" +} + +python_test_all() { + if use i18n; then + make check + fi +} + +python_install() { + if use cgi; then + python_scriptinto "${MY_CGIBINDIR}" + python_doscript contrib/cgi-bin/trac.cgi + fi + if use fastcgi; then + python_scriptinto "${MY_CGIBINDIR}" + python_doscript contrib/cgi-bin/trac.fcgi + fi + distutils-r1_python_install +} + +# 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-r1_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 + dodoc -r contrib + + # tracd init script + newconfd "${FILESDIR}"/tracd.confd tracd + newinitd "${FILESDIR}"/tracd.initd tracd + + 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() { + webapp_pkg_postinst +} diff --git a/www-apps/trac/trac-1.0.9.ebuild b/www-apps/trac/trac-1.0.9.ebuild new file mode 100644 index 000000000000..3e262e03464f --- /dev/null +++ b/www-apps/trac/trac-1.0.9.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE='sqlite?' + +DISTUTILS_SINGLE_IMPL=Yes + +inherit distutils-r1 eutils user webapp + +MY_PV=${PV/_p/.post} +MY_P=Trac-${MY_PV} + +DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system" +HOMEPAGE="http://trac.edgewall.com/ https://pypi.python.org/pypi/Trac" +SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 x86 ~x86-fbsd" +IUSE="cgi fastcgi i18n +highlight +restructuredtext mysql postgres +sqlite subversion test" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/genshi[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + i18n? ( >=dev-python/Babel-0.9.5[${PYTHON_USEDEP}] ) + highlight? ( + || ( + dev-python/pygments[${PYTHON_USEDEP}] + app-text/silvercity + app-text/pytextile + app-text/enscript + ) + ) + restructuredtext? ( dev-python/docutils[${PYTHON_USEDEP}] ) + cgi? ( virtual/httpd-cgi ) + fastcgi? ( virtual/httpd-fastcgi ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] ) + sqlite? ( >=dev-db/sqlite-3.3.4:3 ) + subversion? ( dev-vcs/subversion[python,${PYTHON_USEDEP}] ) + " +DEPEND="${RDEPEND} + test? ( + dev-python/twill[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +pkg_setup() { + python-single-r1_pkg_setup + webapp_pkg_setup + + enewgroup tracd + enewuser tracd -1 -1 -1 tracd +} + +python_prepare_all() { + distutils-r1_python_prepare_all +} + +src_test() { + distutils-r1_src_test +} + +python_test() { + PYTHONPATH=. "${PYTHON}" trac/test.py || die "Tests fail with ${EPYTHON}" +} + +python_test_all() { + if use i18n; then + make check + fi +} + +python_install() { + if use cgi; then + python_scriptinto "${MY_CGIBINDIR}" + python_doscript contrib/cgi-bin/trac.cgi + fi + if use fastcgi; then + python_scriptinto "${MY_CGIBINDIR}" + python_doscript contrib/cgi-bin/trac.fcgi + fi + distutils-r1_python_install +} + +# 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-r1_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 + dodoc -r contrib + + # tracd init script + newconfd "${FILESDIR}"/tracd.confd tracd + newinitd "${FILESDIR}"/tracd.initd tracd + + 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() { + webapp_pkg_postinst +} diff --git a/www-apps/trac/trac-1.2-r1.ebuild b/www-apps/trac/trac-1.2-r1.ebuild new file mode 100644 index 000000000000..ebdc5c23e93f --- /dev/null +++ b/www-apps/trac/trac-1.2-r1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE='sqlite?' + +DISTUTILS_SINGLE_IMPL=Yes + +inherit distutils-r1 eutils user webapp + +MY_PV=${PV/_p/.post} +MY_P=Trac-${MY_PV} + +DESCRIPTION="Enhanced wiki and issue tracking system for software development projects" +HOMEPAGE="http://trac.edgewall.com/ https://pypi.python.org/pypi/Trac" +SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="cgi fastcgi i18n +highlight +restructuredtext mysql postgres +sqlite subversion test" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/genshi[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + i18n? ( >=dev-python/Babel-0.9.5[${PYTHON_USEDEP}] ) + highlight? ( + || ( + dev-python/pygments[${PYTHON_USEDEP}] + app-text/silvercity + app-text/pytextile + app-text/enscript + ) + ) + restructuredtext? ( dev-python/docutils[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] ) + sqlite? ( >=dev-db/sqlite-3.3.4:3 ) + subversion? ( dev-vcs/subversion[python,${PYTHON_USEDEP}] ) + " +DEPEND="${RDEPEND} + test? ( + dev-python/twill[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +pkg_setup() { + python-single-r1_pkg_setup + webapp_pkg_setup + + enewgroup tracd + enewuser tracd -1 -1 -1 tracd +} + +python_prepare_all() { + distutils-r1_python_prepare_all +} + +src_test() { + distutils-r1_src_test +} + +python_test() { + PYTHONPATH=. "${PYTHON}" trac/test.py || die "Tests fail with ${EPYTHON}" +} + +python_test_all() { + 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-r1_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 + dodoc -r contrib + + # tracd init script + newconfd "${FILESDIR}"/tracd.confd tracd + newinitd "${FILESDIR}"/tracd.initd tracd + + 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() { + webapp_pkg_postinst +} diff --git a/www-apps/trac/trac-1.2.1.ebuild b/www-apps/trac/trac-1.2.1.ebuild new file mode 100644 index 000000000000..f11b18c6bc42 --- /dev/null +++ b/www-apps/trac/trac-1.2.1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE='sqlite?' + +DISTUTILS_SINGLE_IMPL=Yes + +inherit distutils-r1 eutils user webapp + +MY_PV=${PV/_p/.post} +MY_P=Trac-${MY_PV} + +DESCRIPTION="Enhanced wiki and issue tracking system for software development projects" +HOMEPAGE="http://trac.edgewall.com/ https://pypi.python.org/pypi/Trac" +SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="cgi fastcgi i18n +highlight +restructuredtext mysql postgres +sqlite subversion test" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/genshi[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + i18n? ( >=dev-python/Babel-0.9.5[${PYTHON_USEDEP}] ) + highlight? ( + || ( + dev-python/pygments[${PYTHON_USEDEP}] + app-text/silvercity + app-text/pytextile + app-text/enscript + ) + ) + restructuredtext? ( dev-python/docutils[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] ) + sqlite? ( >=dev-db/sqlite-3.3.4:3 ) + subversion? ( dev-vcs/subversion[python,${PYTHON_USEDEP}] ) + " +DEPEND="${RDEPEND} + test? ( + dev-python/twill[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +pkg_setup() { + python-single-r1_pkg_setup + webapp_pkg_setup + + enewgroup tracd + enewuser tracd -1 -1 -1 tracd +} + +python_prepare_all() { + distutils-r1_python_prepare_all +} + +src_test() { + distutils-r1_src_test +} + +python_test() { + PYTHONPATH=. "${PYTHON}" trac/test.py || die "Tests fail with ${EPYTHON}" +} + +python_test_all() { + 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-r1_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 + dodoc -r contrib + + # tracd init script + newconfd "${FILESDIR}"/tracd.confd tracd + newinitd "${FILESDIR}"/tracd.initd tracd + + 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() { + webapp_pkg_postinst +} diff --git a/www-apps/trac/trac-1.2.ebuild b/www-apps/trac/trac-1.2.ebuild new file mode 100644 index 000000000000..3520f7bc0ea5 --- /dev/null +++ b/www-apps/trac/trac-1.2.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE='sqlite?' + +DISTUTILS_SINGLE_IMPL=Yes + +inherit distutils-r1 eutils user webapp + +MY_PV=${PV/_p/.post} +MY_P=Trac-${MY_PV} + +DESCRIPTION="Enhanced wiki and issue tracking system for software development projects" +HOMEPAGE="http://trac.edgewall.com/ https://pypi.python.org/pypi/Trac" +SRC_URI="http://ftp.edgewall.com/pub/trac/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="cgi fastcgi i18n +highlight +restructuredtext mysql postgres +sqlite subversion test" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/genshi[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + i18n? ( >=dev-python/Babel-0.9.5[${PYTHON_USEDEP}] ) + highlight? ( + || ( + dev-python/pygments[${PYTHON_USEDEP}] + app-text/silvercity + app-text/pytextile + app-text/enscript + ) + ) + restructuredtext? ( dev-python/docutils[${PYTHON_USEDEP}] ) + cgi? ( virtual/httpd-cgi ) + fastcgi? ( virtual/httpd-fastcgi ) + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) + postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] ) + sqlite? ( >=dev-db/sqlite-3.3.4:3 ) + subversion? ( dev-vcs/subversion[python,${PYTHON_USEDEP}] ) + " +DEPEND="${RDEPEND} + test? ( + dev-python/twill[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +pkg_setup() { + python-single-r1_pkg_setup + webapp_pkg_setup + + enewgroup tracd + enewuser tracd -1 -1 -1 tracd +} + +python_prepare_all() { + distutils-r1_python_prepare_all +} + +src_test() { + distutils-r1_src_test +} + +python_test() { + PYTHONPATH=. "${PYTHON}" trac/test.py || die "Tests fail with ${EPYTHON}" +} + +python_test_all() { + if use i18n; then + make check + fi +} + +python_install() { + if use cgi; then + python_scriptinto "${MY_CGIBINDIR}" + python_doscript contrib/cgi-bin/trac.cgi + fi + if use fastcgi; then + python_scriptinto "${MY_CGIBINDIR}" + python_doscript contrib/cgi-bin/trac.fcgi + fi + distutils-r1_python_install +} + +# 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-r1_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 + dodoc -r contrib + + # tracd init script + newconfd "${FILESDIR}"/tracd.confd tracd + newinitd "${FILESDIR}"/tracd.initd tracd + + 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() { + webapp_pkg_postinst +} |