Merge remote-tracking branch 'origin/dev-python/dj-database-url'
authorW. Trevor King <wking@tremily.us>
Tue, 7 Oct 2014 18:47:27 +0000 (11:47 -0700)
committerW. Trevor King <wking@tremily.us>
Tue, 7 Oct 2014 18:47:27 +0000 (11:47 -0700)
Pull in this per-package branch with a subtree merge [1]:

  $ git merge -s ours --no-commit origin/dev-python/dj-database-url
  $ git read-tree --prefix=dev-python/dev-python/dj-database-url/ -u origin/dev-python/dj-database-url
  $ git commit -v

so folks who aren't using a version of Layman that supports submodules
(currently everybody) can use this modular package.

[1]: https://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html

dev-python/dj-database-url/dj-database-url-9999.ebuild [new file with mode: 0644]

diff --git a/dev-python/dj-database-url/dj-database-url-9999.ebuild b/dev-python/dj-database-url/dj-database-url-9999.ebuild
new file mode 100644 (file)
index 0000000..49c8b6b
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+if [[ "${PV}" == "9999" ]]; then
+       inherit git-2
+       EGIT_REPO_URI="git://github.com/kennethreitz/${PN}.git"
+       SRC_URI=""
+else
+       SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="Use Database URLs in your Django Application"
+HOMEPAGE="http://github.com/kennethreitz/dj-database-url https://pypi.python.org/pypi/dj-database-url"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+       dev-python/django[${PYTHON_USEDEP}]
+       "
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       "
+
+python_test() {
+       "${EPYTHON}" test_dj_database_url.py || die "Tests fail with ${EPYTHON}"
+}