diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2008-03-04 10:25:08 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2008-03-04 10:25:08 +0000 |
commit | 9028bad00eddfbbfbf92f7aeedc5dc946c3a80f4 (patch) | |
tree | 0636fd27ea46f76c4240476e04839a35028b9008 /www-apps | |
parent | Mark ~x86 wrt bug #210769 (diff) | |
download | historical-9028bad00eddfbbfbf92f7aeedc5dc946c3a80f4.tar.gz historical-9028bad00eddfbbfbf92f7aeedc5dc946c3a80f4.tar.bz2 historical-9028bad00eddfbbfbf92f7aeedc5dc946c3a80f4.zip |
fix templates and page order (backported from trunk)
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/trac-webadmin/ChangeLog | 13 | ||||
-rw-r--r-- | www-apps/trac-webadmin/Manifest | 21 | ||||
-rw-r--r-- | www-apps/trac-webadmin/files/trac-webadmin-0.1.2-page_order.patch | 22 | ||||
-rw-r--r-- | www-apps/trac-webadmin/files/trac-webadmin-0.1.2-template.patch | 81 | ||||
-rw-r--r-- | www-apps/trac-webadmin/metadata.xml | 8 | ||||
-rw-r--r-- | www-apps/trac-webadmin/trac-webadmin-0.1.1.ebuild | 6 | ||||
-rw-r--r-- | www-apps/trac-webadmin/trac-webadmin-0.1.2-r1.ebuild | 42 | ||||
-rw-r--r-- | www-apps/trac-webadmin/trac-webadmin-0.1.2.ebuild | 6 |
8 files changed, 183 insertions, 16 deletions
diff --git a/www-apps/trac-webadmin/ChangeLog b/www-apps/trac-webadmin/ChangeLog index 9a91e08ad0ae..878a6710b95b 100644 --- a/www-apps/trac-webadmin/ChangeLog +++ b/www-apps/trac-webadmin/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for www-apps/trac-webadmin -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/trac-webadmin/ChangeLog,v 1.6 2007/02/13 20:39:33 corsair Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac-webadmin/ChangeLog,v 1.7 2008/03/04 10:25:07 hollow Exp $ + +*trac-webadmin-0.1.2-r1 (04 Mar 2008) + + 04 Mar 2008; Benedikt Böhm <hollow@gentoo.org> + +files/trac-webadmin-0.1.2-page_order.patch, + +files/trac-webadmin-0.1.2-template.patch, metadata.xml, + trac-webadmin-0.1.1.ebuild, trac-webadmin-0.1.2.ebuild, + +trac-webadmin-0.1.2-r1.ebuild: + fix templates and page order (backported from trunk) 13 Feb 2007; Markus Rothe <corsair@gentoo.org> trac-webadmin-0.1.2.ebuild: Added ~ppc64; bug #166675 diff --git a/www-apps/trac-webadmin/Manifest b/www-apps/trac-webadmin/Manifest index 8cff01d421c8..97b8f926cb0a 100644 --- a/www-apps/trac-webadmin/Manifest +++ b/www-apps/trac-webadmin/Manifest @@ -1,6 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX trac-webadmin-0.1.2-page_order.patch 881 RMD160 de611b19cd5f2c628bb78da39b352e90b79715b4 SHA1 873d0c1c3090795d0d56733cca1b729957186931 SHA256 4eb6c8c77345606cff98825e9f01de43aa266e61afd1e7bcef89f1f2f199628a +AUX trac-webadmin-0.1.2-template.patch 4111 RMD160 4b4b585c2ea76eee423cee5d2c1eb198f748eca0 SHA1 c1e1342b989645be92b67537a57d6abd80eaedd7 SHA256 2b5c43816fe74cd9cea724cd2cdc283eb4934d684f9109bd0f470e549f68f2e0 DIST trac-webadmin-0.1.1.tar.bz2 12643 RMD160 fe2b43416f0a7248fcedd29a1c26d5966dc33298 SHA1 8ffca67ef8cd93069850ae20e2dc5cbfedb4e341 SHA256 863dad675cdb4e2f9ff8bbae1093b9ca12909617ca8a9b8fe687f35c439106d1 DIST trac-webadmin-0.1.2.tar.bz2 13679 RMD160 afb9d6df94b94c8f0eac7852ec96e2527a973cb5 SHA1 6b4a4c43759fad021a6dbab020d46adec32040da SHA256 48aeecc52287a2f3421ad1f72692b14580cc74b4b1256b5bd65d2a262504f035 -EBUILD trac-webadmin-0.1.1.ebuild 1348 RMD160 d3de497e8ef1b07917b78301688859a80b8423a9 SHA1 188db6d9ea023416053e33e8fffd284844353c99 SHA256 8eae2a5833c9f0bf603323d58b7acea36f269df5f04cd7db1493567763c5d08a -EBUILD trac-webadmin-0.1.2.ebuild 1133 RMD160 bddb34855f5021e20e8632b96aca65d52963c3e8 SHA1 177945e51ef1ce576e4c3a4a3f29c92bbda68381 SHA256 817b2a0659a3eb58b9ca8d2dc201f8b858d6d2a5e6cfe4880a41fc720eeec9dd -MISC ChangeLog 985 RMD160 a4c90afd135ad71763de3bd5e0e67c4fe6d3b3bb SHA1 b051ba6d372beb536f208e0b3ff185142b05a829 SHA256 a7ffbbdf11c87fd0eb6f54dcf7e6e6f68acc767b618e36de272d71add89bcffd -MISC metadata.xml 220 RMD160 dcc7b97d4b6eb6a017014b427fa9fd9c2ce04583 SHA1 2cf693a9408713395fdedb16da9edd6b33e5c2e7 SHA256 09bece3580791397bbf0b4d68ff9ac4abbc37150cf11fe7848f924119ca76b84 +EBUILD trac-webadmin-0.1.1.ebuild 1355 RMD160 e4bd082ccebe56c333ee332e5ff0fc8fd4dc0166 SHA1 79fb15dd7d3af3bd9c9be3f9e57f867d86c613ca SHA256 4db8949994691c089985db4a06ff40650b4d5a28878620af8f98aa594578c542 +EBUILD trac-webadmin-0.1.2-r1.ebuild 1173 RMD160 9aa14039c1eb04ae91d5fe3b0943fd2fbc6bd2fc SHA1 7e2a1016e795289a0eae4dfbdc86f4aa8c84ddd3 SHA256 e1354bf8041310fdc04540b0bfc570e9586c24452aa85f544c81b007055f3af9 +EBUILD trac-webadmin-0.1.2.ebuild 1134 RMD160 e57dc65325913707f359fb9bd0874d08cab95a84 SHA1 73a7540141c0279be865c8e13d20e2f0aefb77ed SHA256 1a3879da3c0d5aecc26b91c4b3d81f1df292e3e646a45135cc0da9adbd31e86c +MISC ChangeLog 1327 RMD160 014553914bcb2fcc997b916a5c636be2b5df6040 SHA1 5c2e95b7ed150a41d5493c1a4fff7d5739810d1b SHA256 b7f6f8d8f7fa1b9d7fec98ff3416a9d8e188423f1b594322fd7002cd98b992ad +MISC metadata.xml 223 RMD160 ba63464666148c7a654bc84d1c35f70d813e4066 SHA1 b13856a75b0719604a570e59f9b79cdc6e7ff2fa SHA256 ca1ba62504fcbe5beb4c0a1098b1625f17846a27e243f60bf1bb1020bfec4247 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.8 (GNU/Linux) + +iEYEARECAAYFAkfNI48ACgkQmPFBzbX68WGkVwCeKLciCH7PGPQj6My5uD2s048+ +atwAnRSmPYvM4eqTe5DN/BtVmLHX8n3d +=4POx +-----END PGP SIGNATURE----- diff --git a/www-apps/trac-webadmin/files/trac-webadmin-0.1.2-page_order.patch b/www-apps/trac-webadmin/files/trac-webadmin-0.1.2-page_order.patch new file mode 100644 index 000000000000..79961c1b8bb4 --- /dev/null +++ b/www-apps/trac-webadmin/files/trac-webadmin-0.1.2-page_order.patch @@ -0,0 +1,22 @@ +diff -NurpP trac-webadmin-0.1.2/webadmin/web_ui.py webadmin/webadmin/web_ui.py +--- trac-webadmin-0.1.2/webadmin/web_ui.py 2006-11-13 23:48:07.000000000 +0100 ++++ webadmin/webadmin/web_ui.py 2008-03-04 11:08:15.533564477 +0100 +@@ -87,7 +87,17 @@ class AdminModule(Component): + for page in p: + providers[(page[0], page[2])] = provider + pages += p +- pages.sort() ++ def _page_order(p1, p2): ++ if p1[0] == 'general': ++ if p2[0] == 'general': ++ return cmp(p1[1:], p2[1:]) ++ return -1 ++ elif p2[0] == 'general': ++ if p1[0] == 'general': ++ return cmp(p1[1:], p2[1:]) ++ return 1 ++ return cmp(p1, p2) ++ pages.sort(_page_order) + return pages, providers + + def process_request(self, req): diff --git a/www-apps/trac-webadmin/files/trac-webadmin-0.1.2-template.patch b/www-apps/trac-webadmin/files/trac-webadmin-0.1.2-template.patch new file mode 100644 index 000000000000..35cd43b53fb5 --- /dev/null +++ b/www-apps/trac-webadmin/files/trac-webadmin-0.1.2-template.patch @@ -0,0 +1,81 @@ +diff -NurpP trac-webadmin-0.1.2/webadmin/templates/admin_basics.cs webadmin/webadmin/templates/admin_basics.cs +--- trac-webadmin-0.1.2/webadmin/templates/admin_basics.cs 2006-11-13 23:48:04.000000000 +0100 ++++ webadmin/webadmin/templates/admin_basics.cs 2008-03-04 11:08:15.525564021 +0100 +@@ -10,7 +10,7 @@ + </div> + <div class="field"> + <label>URL:<br /> +- <input type="text" name="url" size="48 "value="<?cs ++ <input type="text" name="url" size="48" value="<?cs + var:admin.project.url ?>" /> + </label> + </div> +diff -NurpP trac-webadmin-0.1.2/webadmin/templates/admin_enum.cs webadmin/webadmin/templates/admin_enum.cs +--- trac-webadmin-0.1.2/webadmin/templates/admin_enum.cs 2006-11-13 23:48:05.000000000 +0100 ++++ webadmin/webadmin/templates/admin_enum.cs 2008-03-04 11:08:15.525564021 +0100 +@@ -5,7 +5,7 @@ if:admin.enum.name ?> + <fieldset> + <legend>Modify <?cs var:admin.enum.label_singular ?></legend> + <div class="field"> +- <label>Name: <input type="text" name="name"value="<?cs ++ <label>Name: <input type="text" name="name" value="<?cs + var:admin.enum.name ?>" /></label> + </div> + <div class="buttons"> +diff -NurpP trac-webadmin-0.1.2/webadmin/templates/admin_log.cs webadmin/webadmin/templates/admin_log.cs +--- trac-webadmin-0.1.2/webadmin/templates/admin_log.cs 2006-11-13 23:48:06.000000000 +0100 ++++ webadmin/webadmin/templates/admin_log.cs 2008-03-04 11:08:15.529564249 +0100 +@@ -30,7 +30,7 @@ + var:admin.log.dir ?></code>).</p> + </div> + <script type="text/javascript"> +- var logType = document.getElementById("log_type"); ++ var log_type = document.getElementById("log_type"); + var enableLevelAndFile = function() { + enableControl("log_level", log_type.selectedIndex > 0); + enableControl("log_file", +diff -NurpP trac-webadmin-0.1.2/webadmin/templates/admin_milestone.cs webadmin/webadmin/templates/admin_milestone.cs +--- trac-webadmin-0.1.2/webadmin/templates/admin_milestone.cs 2006-11-13 23:48:05.000000000 +0100 ++++ webadmin/webadmin/templates/admin_milestone.cs 2008-03-04 11:08:15.529564249 +0100 +@@ -5,7 +5,7 @@ if:admin.milestone.name ?> + <fieldset> + <legend>Modify Milestone:</legend> + <div class="field"> +- <label>Name:<br /> <input type="text" name="name"value="<?cs ++ <label>Name:<br /> <input type="text" name="name" value="<?cs + var:admin.milestone.name ?>" /></label> + </div> + <div class="field"> +diff -NurpP trac-webadmin-0.1.2/webadmin/templates/admin_plugin.cs webadmin/webadmin/templates/admin_plugin.cs +--- trac-webadmin-0.1.2/webadmin/templates/admin_plugin.cs 2006-11-13 23:48:05.000000000 +0100 ++++ webadmin/webadmin/templates/admin_plugin.cs 2008-03-04 11:08:15.525564021 +0100 +@@ -4,7 +4,7 @@ + <fieldset> + <legend>Install Plugin:</legend> + <div class="field"> +- <label>File: <input type="file" name="egg_file"<?cs ++ <label>File: <input type="file" name="plugin_file"<?cs + if:admin.readonly ?> disabled="disabled"<?cs /if ?> /></label> + </div> + <p class="help"><?cs +@@ -63,7 +63,7 @@ + if:!component.required ?><input type="hidden" name="component" value="<?cs + var:component.module ?>.<?cs var:component.name ?>" /><?cs + /if ?><input type="checkbox" name="enable" value="<?cs +- var:component.module ?>.<?cs var:component.name ?>"<?cs ++ var:component.module ?>.<?cs var:component.name ?>"<?cs + if:component.enabled ?> checked="checked"<?cs + /if ?><?cs + if:component.required ?> disabled="disabled"<?cs +diff -NurpP trac-webadmin-0.1.2/webadmin/templates/admin_version.cs webadmin/webadmin/templates/admin_version.cs +--- trac-webadmin-0.1.2/webadmin/templates/admin_version.cs 2006-11-13 23:48:05.000000000 +0100 ++++ webadmin/webadmin/templates/admin_version.cs 2008-03-04 11:08:15.525564021 +0100 +@@ -5,7 +5,7 @@ if:admin.version.name ?> + <fieldset> + <legend>Modify Version:</legend> + <div class="field"> +- <label>Name:<br /> <input type="text" name="name"value="<?cs ++ <label>Name:<br /> <input type="text" name="name" value="<?cs + var:admin.version.name ?>" /></label> + </div> + <div class="field"> diff --git a/www-apps/trac-webadmin/metadata.xml b/www-apps/trac-webadmin/metadata.xml index f1850ed53c18..1f7848ba097d 100644 --- a/www-apps/trac-webadmin/metadata.xml +++ b/www-apps/trac-webadmin/metadata.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>web-apps</herd> -<maintainer> - <email>dju@gentoo.org</email> -</maintainer> + <herd>web-apps</herd> + <maintainer> + <email>dju@gentoo.org</email> + </maintainer> </pkgmetadata> diff --git a/www-apps/trac-webadmin/trac-webadmin-0.1.1.ebuild b/www-apps/trac-webadmin/trac-webadmin-0.1.1.ebuild index 300f4e6057a2..edd7c4a50f5d 100644 --- a/www-apps/trac-webadmin/trac-webadmin-0.1.1.ebuild +++ b/www-apps/trac-webadmin/trac-webadmin-0.1.1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/trac-webadmin/trac-webadmin-0.1.1.ebuild,v 1.3 2007/01/07 19:44:38 dju Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac-webadmin/trac-webadmin-0.1.1.ebuild,v 1.4 2008/03/04 10:25:07 hollow Exp $ inherit distutils @@ -19,7 +19,7 @@ DEPEND=">=www-apps/trac-0.9.3 # from marienz's setuptools.eclass: src_install() { - ${python} setup.py install --root=${D} --no-compile \ + "${python}" setup.py install --root="${D}" --no-compile \ --single-version-externally-managed "$@" || die DDOCS="CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS PKG-INFO" diff --git a/www-apps/trac-webadmin/trac-webadmin-0.1.2-r1.ebuild b/www-apps/trac-webadmin/trac-webadmin-0.1.2-r1.ebuild new file mode 100644 index 000000000000..75ea45c76cdc --- /dev/null +++ b/www-apps/trac-webadmin/trac-webadmin-0.1.2-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac-webadmin/trac-webadmin-0.1.2-r1.ebuild,v 1.1 2008/03/04 10:25:07 hollow Exp $ + +inherit distutils eutils + +DESCRIPTION="A Trac plugin for administering Trac projects through the web interface." +HOMEPAGE="http://projects.edgewall.com/trac/wiki/WebAdmin" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="trac" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="" + +SLOT="0" + +DEPEND="=www-apps/trac-0.10* + >=dev-python/setuptools-0.6_rc1" + +src_unpack() { + distutils_src_unpack + epatch "${FILESDIR}"/${P}-template.patch + epatch "${FILESDIR}"/${P}-page_order.patch +} + +src_install() { + distutils_src_install --single-version-externally-managed +} + +src_test() { + "${python}" setup.py test || die "tests failed" +} + +pkg_postinst() { + elog "To enable the WebAdmin plugin in your Trac environments, you have to add:" + elog " [components]" + elog " webadmin.* = enabled" + elog "to your trac.ini files." + elog + elog "To be able to see the Admin tab, your users must have the TRAC_ADMIN permission" + elog "and/or the TICKET_ADMIN permission." +} diff --git a/www-apps/trac-webadmin/trac-webadmin-0.1.2.ebuild b/www-apps/trac-webadmin/trac-webadmin-0.1.2.ebuild index fc2f6b92448d..a7aeb52f9efa 100644 --- a/www-apps/trac-webadmin/trac-webadmin-0.1.2.ebuild +++ b/www-apps/trac-webadmin/trac-webadmin-0.1.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $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 $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac-webadmin/trac-webadmin-0.1.2.ebuild,v 1.5 2008/03/04 10:25:07 hollow Exp $ inherit distutils @@ -19,7 +19,7 @@ DEPEND=">=www-apps/trac-0.10 # from marienz's setuptools.eclass: src_install() { - "${python}" setup.py install --root=${D} --no-compile \ + "${python}" setup.py install --root="${D}" --no-compile \ --single-version-externally-managed "$@" || die "install failed" } |