diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/django | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/django')
-rw-r--r-- | dev-python/django/Manifest | 24 | ||||
-rw-r--r-- | dev-python/django/django-1.10.7.ebuild | 110 | ||||
-rw-r--r-- | dev-python/django/django-1.11.2.ebuild | 110 | ||||
-rw-r--r-- | dev-python/django/django-1.4.22.ebuild | 103 | ||||
-rw-r--r-- | dev-python/django/django-1.5.12.ebuild | 77 | ||||
-rw-r--r-- | dev-python/django/django-1.6.11.ebuild | 105 | ||||
-rw-r--r-- | dev-python/django/django-1.7.11.ebuild | 104 | ||||
-rw-r--r-- | dev-python/django/django-1.8.18.ebuild | 106 | ||||
-rw-r--r-- | dev-python/django/django-1.9.13.ebuild | 110 | ||||
-rw-r--r-- | dev-python/django/files/django-1.4.19-bashcomp.patch | 37 | ||||
-rw-r--r-- | dev-python/django/files/django-1.5-py3tests.patch | 22 | ||||
-rw-r--r-- | dev-python/django/files/django-1.5.4-objects.patch | 31 | ||||
-rw-r--r-- | dev-python/django/files/django-1.6-objects.patch | 18 | ||||
-rw-r--r-- | dev-python/django/files/django-1.6.10-bashcomp.patch | 35 | ||||
-rw-r--r-- | dev-python/django/files/django-1.7.6-bashcomp.patch | 34 | ||||
-rw-r--r-- | dev-python/django/files/django-1.9-bashcomp.patch | 46 | ||||
-rw-r--r-- | dev-python/django/metadata.xml | 12 |
17 files changed, 1084 insertions, 0 deletions
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest new file mode 100644 index 000000000000..5fb25f53e3da --- /dev/null +++ b/dev-python/django/Manifest @@ -0,0 +1,24 @@ +AUX django-1.4.19-bashcomp.patch 1124 BLAKE2B b4bd25df1d11055c93d2812acc18471664bae353144b7c1098abf727a3eef37f01d5a1ec2e834639487a1051ef581842a8079b0446a9696f9c5f60d7a20112e6 SHA512 b1c2382f202dcf290cb8996ea174a1539783478fbf2feab18433f0cedc6c9dd0e088b3241131dc0fb1a5c621a45003ccb62146591ccac42218dbe38cf56f53d4 +AUX django-1.5-py3tests.patch 959 BLAKE2B 6aae57b504e04115fb5cfdfb053daccceef4fdf97fd7685d6e84acabd8248cf159a3d919de864f1c2b027522b0abd3442ee85859ad16fc08fff6877ace175c0b SHA512 cc746d43c2cc1c7f88fbffbf07ffc1f3b3fdcb738547658623c763e302c69372f8c8c014ac2a7196382d21aee0ba2ede92860a59a76ad3e14541015969935a92 +AUX django-1.5.4-objects.patch 1467 BLAKE2B ab1514ba7826823f8534c7d24cbdc9fc08f838f3af1cd53281e0171ad30186d88d8a387a4aaa99023b4379d232f07df142ac3934500a983940705d3d48571262 SHA512 09bdaab452f692679a15d0fbadf3c044417aeda0ce65b30bd2994d86b33ae93c13eb159fdad373a031ab2e0563861e29d1f9935b52c33af34a6afd25461e904d +AUX django-1.6-objects.patch 729 BLAKE2B ec541836130ada6d03aabb28366689c824c914fe120d4d8073bbdc7682bb077f3cc2c935da217f27e5c585bbc458942ee00cc639266a4dfd75e13fc48726007b SHA512 e7dc3cc8e50b4b0d546983dd79f1fa2bf7680d04d1e401267334ce72ee065e0fac2b00f9287ccafc3fabca29bca4c1d6475021b5da19d145a2d90fd491bb7ae7 +AUX django-1.6.10-bashcomp.patch 1090 BLAKE2B 270b1a8d2d536136e03b5e033b64bad17cea7a1d30da414c9dc92df6c47cf0bcfbc4cb19d453bb8525d7dc2127ba3fd1466df6c580657a5ee02dbd31b7517a32 SHA512 43e6a0a23d713dfb2b002ee89f68fc8cfe5f18bbfb84e9addd37ca0aa25aaa704238833c9be781da0b71fe708fbe2831ef61952638874fd3b6d10298d9076118 +AUX django-1.7.6-bashcomp.patch 1090 BLAKE2B 7c3a960ade3b450da853175a7ea4afaab267ff96f4b161fecd7abfd0a534b7feadb1d70cae04f4242574653456fb0c8d1b92594e31dd977f68839b97f5be8cf6 SHA512 e7df516ea276eef06c79db2ec3694bbbbbe6724669281bc97311c9386f943f55bf65c4d41d07a4ecf2dc8abf11fddd0d07fc5a08f357365c67274c74280fc532 +AUX django-1.9-bashcomp.patch 1734 BLAKE2B d65bc505e4096fd8d23619f3d76b76d66fc3e68f408906c30a1a8e97a5ef5c0c9c1b352f8c4f4acd1588c639f7b0a489a53e1dbc9763b395ce2488c463e6d5b4 SHA512 d3caa9b77d6c336e131b706411080aa129df83ac60293a2612eb268d08a6c40096b322715766801e16a641134762174ecefcf2b93698f47b022fc31421597403 +DIST Django-1.10.7.tar.gz 7737654 BLAKE2B 54625d105eff94f64aa6d9e3afbad390a1d63e4d262e5ef8ec47c568438ad756eff1e59450d34139e6a3e3dab0eb2c16aa7fbe71b9a0379625e57ef8da45331c SHA512 2b16de21a1c966942f0d912bde4f5be7004f250e5ce3c56a5ac462f81f82e911da19fa0aeb9058670d663caecc1016ce4bcd93c1fa058675150caa33cfeb0e3b +DIST Django-1.11.2.tar.gz 7865109 BLAKE2B 52b8e91ece9fc9d2541667320d7aeecd7101a16573141cf3f781153eaccbb0e6b0f90fbd4c4d90ae06e8b0e71c1cb4aff8f8eaedc1bef6afa13426d16744905a SHA512 0f1187fd03064b966241d6ed1a869d6f155af2598a7b9c8b2f902585265cb6df7236817e5f14907c362ce7420d08e881ff9461f14d673485be3b3e5c3d980e8e +DIST Django-1.4.22.tar.gz 7802249 BLAKE2B daf3a23c4e863ec9e5ff538f4a0720036e035be0c871fb6342ef9b40b8bb7a3dff9a735a040f4c003bce815f10153f4cf31dfdc181cd69fe4db1ab217ea93d76 SHA512 03e833d95d8ffacf8cb753b8b8c15edc145830add322ad166c574a9a7428ed308082ffea7a73bcdb7315f489270fd84a38d1a8b12c090dfb9d68da5d281cef68 +DIST Django-1.5.12.tar.gz 8202839 BLAKE2B 9f177aa1e06b2d908448022ccd9986074abf66e58f4ab3315f5d3fb28cc45b77e23fc0c3933166e2720d1869b35a596d65350742a8015688f88c5358fa0e3484 SHA512 37736827618737c54e7b63f2376b915d8dc0cdaf1900a2f6c3c9e0edd69e50379f95e3b6a31c930efdca88793b6330e7226175af91951d8637e5db780bc9fd8d +DIST Django-1.6.11.tar.gz 6764000 BLAKE2B 85ea8c37e0728405e0109504e81db92a0a4f31c908daa09fdcb73890df5724d7bea0a8c8322ee62b8b1ee07cf5a01078ba404140991799bc0acf1f31ca5003f5 SHA512 de6024b49e0344bf153f73ec344180fb701e415e4f9c330118821744d0e579436cc265724f7ef7213c9551847022ba9570312633f317b9003db533d06deb9829 +DIST Django-1.7.11.tar.gz 7586798 BLAKE2B b48ba892e7c4830d122f179e7247862ee571b63ff840b9107d3d8ab21700ae744c6f51cfd7cb3606961b454c288c3f73f238301fcb5620b37b6fab4a1bf02ebe SHA512 2e3415295ee6b590e366b09adb261baccb750519b9bcef1bb09bd52a2db705c8082bfc13440c621a5f41dd4f9bd626792eba4a572e78de3b7caf93c951c406ee +DIST Django-1.8.18.tar.gz 7297986 BLAKE2B 3cf777d98bfc278a3b6458cbb1bbd273e6b77e35bdae24e73cd1af6b6ab7e71ef12d36df73d90a3971ac3b6fe6edbb4a2d14a95a6f2200c99419a049eb95cdda SHA512 41959c1012feec579dc991129976a655bc2f1ff7298bd05951c925b3d0a86a67cc32bf8a78273236b3db05cc1eb841a7aba5091bd06a072dd73c55eb0f7ecee8 +DIST Django-1.9.13.tar.gz 7498364 BLAKE2B f65cd9a20e6fa3f2f60e353a74d32f9ef1872a673ec60b1332cedeef99fbdd237a8221e3ff49fbc05bfbe831c6507fb745a63212a6739f76e889fce3445d3347 SHA512 bf642d5c342dd523ceb7a580213255ddf91a24bd5506355325b72c0eb91774d120ddb89d728a4b432ef0a587f8448e915c3217adcaa8ff5aa816873fa01ae7c0 +EBUILD django-1.10.7.ebuild 3166 BLAKE2B eff1f92ab4c4ea4287435e54d72dcd5bbd489927613fdbb6e3bbd92501afebccde739f3291dea6a1bebe149f994187525bd3bb4b5985746beb617b7e69050040 SHA512 3ded882997da3922cc0c590ab07e18a56a0263d841c13c7f24db719dc3fb5f67e447b36997b318e1d25d5b51927f9544fdea28f2dd6d847d9ec2451efb513567 +EBUILD django-1.11.2.ebuild 3172 BLAKE2B 160de7a2a45fc4692155fcb8359e0b2b5c385636800f69a390dcebc5fb4f945a5dfc3b307ede46926ee2db42f9ebc645a871ddacce8b601884c5b5209e3b3847 SHA512 081ec686557410c0b324bab98fa2cbfe992c5474ff1bffea1e69b41c885c5ba09be3395b977ac54fcf05011009c20b5c2590a852d0c63bade4b23b9084139372 +EBUILD django-1.4.22.ebuild 3014 BLAKE2B fcb30dfe5437b9404880a106a893b12c9074c65deb362acb6e51a4615cd5e083635f92d523670624227987bef63f3e0673c08f39f6ee26d1cf30ceaa4bd5bbfa SHA512 65c66f7c430943f883212928c9c8dd73025cb6e46ae7ed1f50f5bf7bcabfaccb844601a024aa1c8b74c73a8e828ac742a795c6e27aa39857fa9edf294ac0115c +EBUILD django-1.5.12.ebuild 2110 BLAKE2B c215c334bcb5c901fbfad946a5b1de4af91004a22038fbca8369374d9d8abdebe2f312846042968bea78ea9c13af106f96965ec2c2eac07618e229d1000a9358 SHA512 38e653e8e3540cca2c576dfb94f1b8761730831624764b54bb8f3d1b4cf09566f77e37185cffd52d794ab012444cfa4d360f70e24e975adeca1b2e66d26fd61b +EBUILD django-1.6.11.ebuild 2835 BLAKE2B 5a61a5e12e828e237db0dcb627ea70c1b245be1ec9c1889438f82eda90c60428ecfaff540b60db58650fab87aeaa6e91b50759dbaa1f1c733b674a15d6000c07 SHA512 cbf4c67a9b57a6bf411da5cc1c1b483751e3b2188924312ce1a21650d243be09c3056a2c317f835e75c71546184a31b2e35e17ccfb9fe1eb7899bb42dcf96ddb +EBUILD django-1.7.11.ebuild 2841 BLAKE2B 7ae8b0587af5aebf5e48ad1dea5605e7030e09b7cd36df532eedd315dbd2055b3e16ff7ac1e19b3a4e64cacba3219ad31656ae61b2feb319958202b3ff7a1ede SHA512 ff53a330d4243ba10c97709c4e4e0dec0c82c7d7f3d9050cb464d0f5b979b302a94398fc1de3fd50ea6d27c42527da74daab8d3209b5d2c2f02157bb8efbdca9 +EBUILD django-1.8.18.ebuild 3037 BLAKE2B fbb57541c06ce4233a1f179c4280ad35c1193ce35a5069d8067554d0a72d1101699f6ac2e7316551412ae07e14f87fc8cfe22181e400b2976c1042346da5f66b SHA512 1600a406796e229dcf10c7172467494a38481a707ebf7d5087a69582b8e38c7eb495f774efe72ffd8daddfcedb01e7e1cab178205467842dcf7e0deb16b67fc2 +EBUILD django-1.9.13.ebuild 3063 BLAKE2B 16cb5ed0e10f6bb36ef6e2d57c46ba61412a56b5dc239ce47ca2c2e9c3c187e262ec2523605cf6adbf888fd59ff5ae568f470dc3d58a7f9fcb275ac1bf4c3e42 SHA512 57655bbd5cb3004852a28875b17e044c4445b6711aa6866ee2952bc3666dbeb6ff9607abd1d23a8445eee5dc69b636ea6c6e353990545214a5c8be7190ef3645 +MISC metadata.xml 374 BLAKE2B 79d646d66b955dfbc419783bcfe7677f92472872292dbe726e55bf873d066be9365664e14ff1d190578b0294fe14dcee1c43e648bf2508cb2ceff4000b6002b8 SHA512 9aa0b388987c115e18e0aaa8747605e67fc8c8b5125d2a634dfae2ba8c6627963029fe913401a0647026adaa4d0037d91075a46d20f924f4d4f8d45bff195cff diff --git a/dev-python/django/django-1.10.7.ebuild b/dev-python/django/django-1.10.7.ebuild new file mode 100644 index 000000000000..1e04f2344036 --- /dev/null +++ b/dev-python/django/django-1.10.7.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_REQ_USE='sqlite?,threads(+)' +WEBAPP_NO_AUTO_INSTALL="yes" + +inherit bash-completion-r1 distutils-r1 eutils versionator webapp + +MY_PN="Django" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI=" + https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz + mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz + " + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc sqlite test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_impl_dep sqlite) + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/numpy[$(python_gen_usedep 'python*')] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +PATCHES=( + "${FILESDIR}"/${PN}-1.9-bashcomp.patch +) + +pkg_setup() { + webapp_pkg_setup +} + +python_prepare_all() { + # Prevent d'loading in the doc build + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 --parallel 1 \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + if use doc; then + rm -fr docs/_build/html/_sources || die + local HTML_DOCS=( docs/_build/html/. ) + fi + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r django/contrib/admin/static/admin/. + distutils-r1_python_install_all +} + +src_install() { + distutils-r1_src_install + webapp_src_install +} + +pkg_postinst() { + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + echo "" + elog "Other features can be enhanced by" + optfeature "GEO Django" sci-libs/gdal[geos] + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt + optfeature "High-level abstractions for Django forms" dev-python/django-formtools + echo "" + elog "A copy of the admin media is available to webapp-config for installation in a" + elog "webroot, as well as the traditional location in python's site-packages dir" + elog "for easy development." + webapp_pkg_postinst +} diff --git a/dev-python/django/django-1.11.2.ebuild b/dev-python/django/django-1.11.2.ebuild new file mode 100644 index 000000000000..d6f33979805d --- /dev/null +++ b/dev-python/django/django-1.11.2.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_REQ_USE='sqlite?,threads(+)' +WEBAPP_NO_AUTO_INSTALL="yes" + +inherit bash-completion-r1 distutils-r1 eutils versionator webapp + +MY_PN="Django" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI=" + https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz + mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz + " + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc sqlite test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_impl_dep sqlite) + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/numpy[$(python_gen_usedep 'python*')] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +PATCHES=( + "${FILESDIR}"/${PN}-1.9-bashcomp.patch +) + +pkg_setup() { + webapp_pkg_setup +} + +python_prepare_all() { + # Prevent d'loading in the doc build + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 --parallel 1 \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + if use doc; then + rm -fr docs/_build/html/_sources || die + local HTML_DOCS=( docs/_build/html/. ) + fi + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r django/contrib/admin/static/admin/. + distutils-r1_python_install_all +} + +src_install() { + distutils-r1_src_install + webapp_src_install +} + +pkg_postinst() { + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + echo "" + elog "Other features can be enhanced by" + optfeature "GEO Django" sci-libs/gdal[geos] + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt + optfeature "High-level abstractions for Django forms" dev-python/django-formtools + echo "" + elog "A copy of the admin media is available to webapp-config for installation in a" + elog "webroot, as well as the traditional location in python's site-packages dir" + elog "for easy development." + webapp_pkg_postinst +} diff --git a/dev-python/django/django-1.4.22.ebuild b/dev-python/django/django-1.4.22.ebuild new file mode 100644 index 000000000000..0f0ba08919dc --- /dev/null +++ b/dev-python/django/django-1.4.22.ebuild @@ -0,0 +1,103 @@ +# 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?,threads(+)' + +inherit bash-completion-r1 distutils-r1 eutils versionator webapp + +MY_P="Django-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="sqlite test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + $(python_gen_impl_dep sqlite) + dev-python/docutils[${PYTHON_USEDEP}] + <dev-python/numpy-1.9[$(python_gen_usedep 'python*')] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + )" + +# app-text/pytextile[${PYTHON_USEDEP}] +# dev-python/markdown[${PYTHON_USEDEP}] +# dev-python/selenium[${PYTHON_USEDEP}] +# dev-python/py-bcrypt[${PYTHON_USEDEP}] + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.19-bashcomp.patch +) + +python_prepare_all() { + # Disable tests requiring network connection. + sed \ + -e "s/test_correct_url_value_passes/_&/" \ + -e "s/test_correct_url_with_redirect/_&/" \ + -i tests/modeltests/validation/tests.py || die + sed \ + -e "s/test_urlfield_3/_&/" \ + -e "s/test_urlfield_4/_&/" \ + -e "s/test_urlfield_10/_&/" \ + -i tests/regressiontests/forms/tests/fields.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ + || die "Tests fail with ${EPYTHON}" +} + +src_install() { + distutils-r1_src_install + webapp_src_install + + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysql-connector-python + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + echo "" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r django/contrib/admin/static/admin/. + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "A copy of the admin media is available to" + elog "webapp-config for installation in a webroot," + elog "as well as the traditional location in python's" + elog "site-packages dir for easy development" + elog + ewarn "If you build Django ${PV} without USE=\"vhosts\"" + + # XXX: call webapp_pkg_postinst? the old ebuild didn't do that... + ewarn "webapp-config will automatically install the" + ewarn "admin media into the localhost webroot." +} diff --git a/dev-python/django/django-1.5.12.ebuild b/dev-python/django/django-1.5.12.ebuild new file mode 100644 index 000000000000..79854907c61a --- /dev/null +++ b/dev-python/django/django-1.5.12.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 pypy ) +PYTHON_REQ_USE='sqlite?,threads(+)' +WEBAPP_NO_AUTO_INSTALL="yes" + +inherit bash-completion-r1 distutils-r1 versionator webapp + +MY_P="Django-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="doc mysql postgres sqlite test" + +PY2_USEDEP=$(python_gen_usedep 'python*') +RDEPEND="dev-python/pillow[${PYTHON_USEDEP}] + postgres? ( dev-python/psycopg:2[${PY2_USEDEP}] ) + mysql? ( >=dev-python/mysql-python-1.2.3[${PY2_USEDEP}] )" +DEPEND="${RDEPEND} + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) + test? ( $(python_gen_impl_dep sqlite) )" + +REQUIRED_USE="mysql? ( $(python_gen_useflags 'python2*') ) + postgres? ( || ( $(python_gen_useflags 'python2*') ) )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +PATCHES=( "${FILESDIR}"/${PN}-1.5.4-objects.patch \ + "${FILESDIR}"/${PN}-1.5-py3tests.patch ) + +python_compile_all() { + if use doc; then + emake -C docs html + fi +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + # https://code.djangoproject.com/ticket/20514 + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v1 \ + || die "Tests fail with ${EPYTHON}" +} + +src_install() { + distutils-r1_src_install + webapp_src_install +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN} + + if use doc; then + rm -fr docs/_build/html/_sources + local HTML_DOCS=( docs/_build/html/. ) + fi + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r django/contrib/admin/static/admin/. + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "A copy of the admin media is available to webapp-config for installation in a" + elog "webroot, as well as the traditional location in python's site-packages dir" + elog "for easy development." + webapp_pkg_postinst +} diff --git a/dev-python/django/django-1.6.11.ebuild b/dev-python/django/django-1.6.11.ebuild new file mode 100644 index 000000000000..a46445f638c1 --- /dev/null +++ b/dev-python/django/django-1.6.11.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_4 pypy ) + +PYTHON_REQ_USE='sqlite?,threads(+)' +WEBAPP_NO_AUTO_INSTALL="yes" + +inherit bash-completion-r1 distutils-r1 eutils versionator webapp + +MY_P="Django-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="doc sqlite test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_impl_dep sqlite) + dev-python/docutils[${PYTHON_USEDEP}] + <dev-python/numpy-1.9[$(python_gen_usedep 'python*')] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + )" + +# dev-python/bcrypt[${PYTHON_USEDEP}] +# dev-python/selenium[${PYTHON_USEDEP}] + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +PATCHES=( + "${FILESDIR}"/${PN}-1.5-py3tests.patch + "${FILESDIR}"/${PN}-1.6-objects.patch + "${FILESDIR}"/${PN}-1.6.10-bashcomp.patch +) + +pkg_setup() { + webapp_pkg_setup +} + +python_prepare_all() { + # Disable tests requiring network connection. + sed \ + -e "s:test_sensitive_cookie_not_cached:_&:g" \ + -i tests/cache/tests.py || die + + distutils-r1_python_prepare_all +} +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ + || die "Tests fail with ${EPYTHON}" +} + +src_install() { + distutils-r1_src_install + webapp_src_install + + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysql-connector-python + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + echo "" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + if use doc; then + rm -fr docs/_build/html/_sources || die + local HTML_DOCS=( docs/_build/html/. ) + fi + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r django/contrib/admin/static/admin/. + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "A copy of the admin media is available to webapp-config for installation in a" + elog "webroot, as well as the traditional location in python's site-packages dir" + elog "for easy development." + webapp_pkg_postinst +} diff --git a/dev-python/django/django-1.7.11.ebuild b/dev-python/django/django-1.7.11.ebuild new file mode 100644 index 000000000000..86ddb5fc5dfc --- /dev/null +++ b/dev-python/django/django-1.7.11.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_4 pypy ) +PYTHON_REQ_USE='sqlite?,threads(+)' +WEBAPP_NO_AUTO_INSTALL="yes" + +inherit bash-completion-r1 distutils-r1 eutils versionator webapp + +MY_P="Django-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="doc sqlite test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_impl_dep sqlite) + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/numpy[$(python_gen_usedep 'python*')] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + )" + +# dev-python/python-sqlparse[${PYTHON_USEDEP}] +# dev-python/bcrypt[${PYTHON_USEDEP}] +# dev-python/selenium[${PYTHON_USEDEP}] +# sci-libs/gdal[geos,${PYTHON_USEDEP}] + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +PATCHES=( + "${FILESDIR}"/${PN}-1.7.6-bashcomp.patch +) + +pkg_setup() { + webapp_pkg_setup +} + +python_prepare_all() { + # Prevent d'loading in the doc build + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ + || die "Tests fail with ${EPYTHON}" +} + +src_install() { + distutils-r1_src_install + webapp_src_install + + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + optfeature "GEO Django" sci-libs/gdal[geos] + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + echo "" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + if use doc; then + rm -fr docs/_build/html/_sources || die + local HTML_DOCS=( docs/_build/html/. ) + fi + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r django/contrib/admin/static/admin/. + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "A copy of the admin media is available to webapp-config for installation in a" + elog "webroot, as well as the traditional location in python's site-packages dir" + elog "for easy development." + webapp_pkg_postinst +} diff --git a/dev-python/django/django-1.8.18.ebuild b/dev-python/django/django-1.8.18.ebuild new file mode 100644 index 000000000000..413258c4600e --- /dev/null +++ b/dev-python/django/django-1.8.18.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_REQ_USE='sqlite?,threads(+)' +WEBAPP_NO_AUTO_INSTALL="yes" + +inherit bash-completion-r1 distutils-r1 eutils versionator webapp + +MY_PN="Django" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI=" + https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz + mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz + " + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc sqlite test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_impl_dep sqlite) + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/numpy[$(python_gen_usedep 'python*')] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +PATCHES=( + "${FILESDIR}"/${PN}-1.7.6-bashcomp.patch +) + +pkg_setup() { + webapp_pkg_setup +} + +python_prepare_all() { + # Prevent d'loading in the doc build + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + if use doc; then + rm -fr docs/_build/html/_sources || die + local HTML_DOCS=( docs/_build/html/. ) + fi + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r django/contrib/admin/static/admin/. + distutils-r1_python_install_all +} + +src_install() { + distutils-r1_src_install + webapp_src_install +} + +pkg_postinst() { + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + echo "" + elog "Other features can be enhanced by" + optfeature "GEO Django" sci-libs/gdal[geos] + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt + optfeature "High-level abstractions for Django forms" dev-python/django-formtools + echo "" + elog "A copy of the admin media is available to webapp-config for installation in a" + elog "webroot, as well as the traditional location in python's site-packages dir" + elog "for easy development." + webapp_pkg_postinst +} diff --git a/dev-python/django/django-1.9.13.ebuild b/dev-python/django/django-1.9.13.ebuild new file mode 100644 index 000000000000..481a4e6cfeb5 --- /dev/null +++ b/dev-python/django/django-1.9.13.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_REQ_USE='sqlite?,threads(+)' +WEBAPP_NO_AUTO_INSTALL="yes" + +inherit bash-completion-r1 distutils-r1 eutils versionator webapp + +MY_PN="Django" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI=" + https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz + mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz + " + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="" +IUSE="doc sqlite test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_impl_dep sqlite) + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/numpy[$(python_gen_usedep 'python*')] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +WEBAPP_MANUAL_SLOT="yes" + +PATCHES=( + "${FILESDIR}"/${PN}-1.9-bashcomp.patch +) + +pkg_setup() { + webapp_pkg_setup +} + +python_prepare_all() { + # Prevent d'loading in the doc build + sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 --parallel 1 \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + if use doc; then + rm -fr docs/_build/html/_sources || die + local HTML_DOCS=( docs/_build/html/. ) + fi + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r django/contrib/admin/static/admin/. + distutils-r1_python_install_all +} + +src_install() { + distutils-r1_src_install + webapp_src_install +} + +pkg_postinst() { + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python + optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + echo "" + elog "Other features can be enhanced by" + optfeature "GEO Django" sci-libs/gdal[geos] + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt + optfeature "High-level abstractions for Django forms" dev-python/django-formtools + echo "" + elog "A copy of the admin media is available to webapp-config for installation in a" + elog "webroot, as well as the traditional location in python's site-packages dir" + elog "for easy development." + webapp_pkg_postinst +} diff --git a/dev-python/django/files/django-1.4.19-bashcomp.patch b/dev-python/django/files/django-1.4.19-bashcomp.patch new file mode 100644 index 000000000000..26d5f7ee1405 --- /dev/null +++ b/dev-python/django/files/django-1.4.19-bashcomp.patch @@ -0,0 +1,37 @@ + extras/django_bash_completion | 17 +---------------- + 1 file changed, 1 insertion(+), 16 deletions(-) + +diff --git a/extras/django_bash_completion b/extras/django_bash_completion +old mode 100755 +new mode 100644 +index 1c3887e..748227d +--- a/extras/django_bash_completion ++++ b/extras/django_bash_completion +@@ -37,7 +37,7 @@ _django_completion() + COMP_CWORD=$COMP_CWORD \ + DJANGO_AUTO_COMPLETE=1 $1 ) ) + } +-complete -F _django_completion -o default django-admin.py manage.py django-admin ++complete -F _django_completion -o default django-admin.py django-admin + + _python_django_completion() + { +@@ -55,18 +55,3 @@ _python_django_completion() + fi + fi + } +- +-# Support for multiple interpreters. +-unset pythons +-if command -v whereis &>/dev/null; then +- python_interpreters=$(whereis python | cut -d " " -f 2-) +- for python in $python_interpreters; do +- pythons="${pythons} $(basename -- $python)" +- done +- pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ") +-else +- pythons=python +-fi +- +-complete -F _python_django_completion -o default $pythons +- diff --git a/dev-python/django/files/django-1.5-py3tests.patch b/dev-python/django/files/django-1.5-py3tests.patch new file mode 100644 index 000000000000..16b2cc209c0c --- /dev/null +++ b/dev-python/django/files/django-1.5-py3tests.patch @@ -0,0 +1,22 @@ +https://code.djangoproject.com/ticket/20514 +diff -ur Django-1.5.orig/django/contrib/gis/tests/test_measure.py Django-1.5/django/contrib/gis/tests/test_measure.py +--- django/contrib/gis/tests/test_measure.py 2013-02-27 03:04:14.000000000 +0800 ++++ django/contrib/gis/tests/test_measure.py 2013-05-28 04:40:18.983011224 +0800 +@@ -40,7 +40,7 @@ + "Testing access in different units" + d = D(m=100) + self.assertEqual(d.km, 0.1) +- self.assertAlmostEqual(d.ft, 328.084, 3) ++ self.assertAlmostEqual(d.ft, 328.084, places=3) + + def testAccessInvalid(self): + "Testing access in invalid units" +@@ -172,7 +172,7 @@ + "Testing access in different units" + a = A(sq_m=100) + self.assertEqual(a.sq_km, 0.0001) +- self.assertAlmostEqual(a.sq_ft, 1076.391, 3) ++ self.assertAlmostEqual(a.sq_ft, 1076.391, places=3) + + def testAccessInvaliA(self): + "Testing access in invalid units" diff --git a/dev-python/django/files/django-1.5.4-objects.patch b/dev-python/django/files/django-1.5.4-objects.patch new file mode 100644 index 000000000000..48e649081d34 --- /dev/null +++ b/dev-python/django/files/django-1.5.4-objects.patch @@ -0,0 +1,31 @@ +Remove un-needed objects.inv files from d'loading during doc build +diff -ur Django-1.5.1.orig/docs/conf.py Django-1.5.1/docs/conf.py +--- docs/conf.py 2013-03-29 04:10:14.000000000 +0800 ++++ docs/conf.py 2013-05-28 01:54:49.695008477 +0800 +@@ -91,12 +91,6 @@ + + # Links to Python's docs should reference the most recent version of the 2.x + # branch, which is located at this URL. +-intersphinx_mapping = { +- 'python': ('http://docs.python.org/2.7', None), +- 'sphinx': ('http://sphinx.pocoo.org/', None), +- 'six': ('http://pythonhosted.org/six/', None), +- 'simplejson': ('http://simplejson.readthedocs.org/en/latest/', None), +-} + + # Python's docs don't change every week. + intersphinx_cache_limit = 90 # days +# Fix creation of html docs on python 3 +# https://github.com/django/django/commit/a5733fcd7be7adb8b236825beff4ccda19900f9e +diff -ur Django-1.5.1.orig/docs/_ext/djangodocs.py Django-1.5.1/docs/_ext/djangodocs.py +--- docs/_ext/djangodocs.py 2013-03-29 04:07:21.000000000 +0800 ++++ docs/_ext/djangodocs.py 2013-05-28 02:34:59.057009144 +0800 +@@ -204,7 +204,7 @@ + if t == "templatefilter" and l == "ref/templates/builtins"], + } + outfilename = os.path.join(self.outdir, "templatebuiltins.js") +- with open(outfilename, 'wb') as fp: ++ with open(outfilename, 'w') as fp: + fp.write('var django_template_builtins = ') + json.dump(templatebuiltins, fp) + fp.write(';\n') diff --git a/dev-python/django/files/django-1.6-objects.patch b/dev-python/django/files/django-1.6-objects.patch new file mode 100644 index 000000000000..597da6e6bb1c --- /dev/null +++ b/dev-python/django/files/django-1.6-objects.patch @@ -0,0 +1,18 @@ +#Remove un-needed objects.inv files from d'loading during doc build +diff -ur Django-1.6.1.orig/docs/conf.py Django-1.6.1/docs/conf.py +--- docs/conf.py 2013-12-12 14:37:59.000000000 -0500 ++++ docs/conf.py 2014-01-16 20:57:36.253670094 -0500 +@@ -109,12 +109,6 @@ + + # Links to Python's docs should reference the most recent version of the 2.x + # branch, which is located at this URL. +-intersphinx_mapping = { +- 'python': ('http://docs.python.org/2.7', None), +- 'sphinx': ('http://sphinx.pocoo.org/', None), +- 'six': ('http://pythonhosted.org/six/', None), +- 'simplejson': ('http://simplejson.readthedocs.org/en/latest/', None), +-} + + # Python's docs don't change every week. + intersphinx_cache_limit = 90 # days + diff --git a/dev-python/django/files/django-1.6.10-bashcomp.patch b/dev-python/django/files/django-1.6.10-bashcomp.patch new file mode 100644 index 000000000000..7c6ceff076a4 --- /dev/null +++ b/dev-python/django/files/django-1.6.10-bashcomp.patch @@ -0,0 +1,35 @@ + extras/django_bash_completion | 17 +---------------- + 1 file changed, 1 insertion(+), 16 deletions(-) + +diff --git a/extras/django_bash_completion b/extras/django_bash_completion +index 8f85211..ab13755 100755 +--- a/extras/django_bash_completion ++++ b/extras/django_bash_completion +@@ -37,7 +37,7 @@ _django_completion() + COMP_CWORD=$COMP_CWORD \ + DJANGO_AUTO_COMPLETE=1 $1 ) ) + } +-complete -F _django_completion -o default django-admin.py manage.py django-admin ++complete -F _django_completion -o default django-admin.py django-admin + + _python_django_completion() + { +@@ -55,18 +55,3 @@ _python_django_completion() + fi + fi + } +- +-# Support for multiple interpreters. +-unset pythons +-if command -v whereis &>/dev/null; then +- python_interpreters=$(whereis python | cut -d " " -f 2-) +- for python in $python_interpreters; do +- pythons="${pythons} ${python##*/}" +- done +- pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ") +-else +- pythons=python +-fi +- +-complete -F _python_django_completion -o default $pythons +- diff --git a/dev-python/django/files/django-1.7.6-bashcomp.patch b/dev-python/django/files/django-1.7.6-bashcomp.patch new file mode 100644 index 000000000000..ef76f8a873c7 --- /dev/null +++ b/dev-python/django/files/django-1.7.6-bashcomp.patch @@ -0,0 +1,34 @@ + extras/django_bash_completion | 16 +--------------- + 1 file changed, 1 insertion(+), 15 deletions(-) + +diff --git a/extras/django_bash_completion b/extras/django_bash_completion +index 3e02d8e..5a33938 100755 +--- a/extras/django_bash_completion ++++ b/extras/django_bash_completion +@@ -37,7 +37,7 @@ _django_completion() + COMP_CWORD=$COMP_CWORD \ + DJANGO_AUTO_COMPLETE=1 $1 ) ) + } +-complete -F _django_completion -o default django-admin.py manage.py django-admin ++complete -F _django_completion -o default django-admin.py django-admin + + _python_django_completion() + { +@@ -55,17 +55,3 @@ _python_django_completion() + fi + fi + } +- +-# Support for multiple interpreters. +-unset pythons +-if command -v whereis &>/dev/null; then +- python_interpreters=$(whereis python | cut -d " " -f 2-) +- for python in $python_interpreters; do +- pythons="${pythons} ${python##*/}" +- done +- pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ") +-else +- pythons=python +-fi +- +-complete -F _python_django_completion -o default $pythons diff --git a/dev-python/django/files/django-1.9-bashcomp.patch b/dev-python/django/files/django-1.9-bashcomp.patch new file mode 100644 index 000000000000..8618dbef920d --- /dev/null +++ b/dev-python/django/files/django-1.9-bashcomp.patch @@ -0,0 +1,46 @@ + extras/django_bash_completion | 35 +---------------------------------- + 1 file changed, 1 insertion(+), 34 deletions(-) + +diff --git a/extras/django_bash_completion b/extras/django_bash_completion +index 06a2321..abe76e5 100755 +--- a/extras/django_bash_completion ++++ b/extras/django_bash_completion +@@ -37,37 +37,4 @@ _django_completion() + COMP_CWORD=$COMP_CWORD \ + DJANGO_AUTO_COMPLETE=1 $1 ) ) + } +-complete -F _django_completion -o default django-admin.py manage.py django-admin +- +-_python_django_completion() +-{ +- if [[ ${COMP_CWORD} -ge 2 ]]; then +- local PYTHON_EXE=${COMP_WORDS[0]##*/} +- echo $PYTHON_EXE | egrep "python([2-9]\.[0-9])?" >/dev/null 2>&1 +- if [[ $? == 0 ]]; then +- local PYTHON_SCRIPT=${COMP_WORDS[1]##*/} +- echo $PYTHON_SCRIPT | egrep "manage\.py|django-admin(\.py)?" >/dev/null 2>&1 +- if [[ $? == 0 ]]; then +- COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]:1}" \ +- COMP_CWORD=$(( COMP_CWORD-1 )) \ +- DJANGO_AUTO_COMPLETE=1 ${COMP_WORDS[*]} ) ) +- fi +- fi +- fi +-} +- +-# Support for multiple interpreters. +-unset pythons +-if command -v whereis &>/dev/null; then +- python_interpreters=$(whereis python | cut -d " " -f 2-) +- for python in $python_interpreters; do +- [[ $python != *-config ]] && pythons="${pythons} ${python##*/}" +- done +- unset python_interpreters +- pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ") +-else +- pythons=python +-fi +- +-complete -F _python_django_completion -o default $pythons +-unset pythons ++complete -F _django_completion -o default django-admin.py django-admin diff --git a/dev-python/django/metadata.xml b/dev-python/django/metadata.xml new file mode 100644 index 000000000000..ca9edb307f40 --- /dev/null +++ b/dev-python/django/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">Django</remote-id> + <remote-id type="github">django/django</remote-id> + </upstream> +</pkgmetadata> |