Lukas Linhart avatar Lukas Linhart committed f609150

Private ebuild for django 1.1

Comments (0)

Files changed (2)

dev-python/django/Manifest

 DIST Django-1.1-alpha-1.tar.gz 4748969 RMD160 ebdf370f315007b975ceab5ce05dcbf00f8874fd SHA1 c9d3a4427d5cc34dc2971c38bfe2df4ee74f5685 SHA256 88c40cd620cfef037ccf6ee4b0a0aafb49d123007517938af882ab7fb3273abe
 DIST Django-1.1-beta-1.tar.gz 4902069 RMD160 a29572ff23d7875bf045cb2ea7272f1a4ccfb022 SHA1 9cb2d0ecdb5a307fb67c90287824d7f06b235537 SHA256 7c10fbde5c66c536820aa1b389289dfa599583aaef6e9d35d90db9e833faab75
+DIST Django-1.1.tar.gz 5609609 RMD160 c3ae06b2cd2af3c8aa6058747acbd7646ea83cfd SHA1 690dda39595d70678840e917d712fc916d137c16 SHA256 578338be3288eff853039ad498297decdc3bb20265a0c4dee09efdf8e267c900
+EBUILD django-1.1.ebuild 2755 RMD160 1aaae2564cbd3da942c89a363c5f089c6fa4c583 SHA1 135d5e368035d540fed53fba8aff164263ba0a63 SHA256 8af1e1b85bf655e833a1569133655446841e61fd8c9726f0cbd9d016ae865d71
 EBUILD django-1.1_alpha1.ebuild 2763 RMD160 722fea4979dbe9343cfd7daf33a6a9d6ad1eb6f5 SHA1 960588e7861aa6abc7b97d2d56ce69be1caa3b83 SHA256 72e534d414e8868a9866c63779dc528cb2ac4a9802fc4c7d86124698cda29b47
 EBUILD django-1.1_beta1.ebuild 2762 RMD160 71982d4b7a870f98fba7407c84d248a052930118 SHA1 8fc863ed7a2bd4d440d25ae828eb9997bc4baf8c SHA256 fb5e4390365f3fdd94bf39694c331b99e494b6ac781c331adea9d7e9cfcd70d1

dev-python/django/django-1.1.ebuild

+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.0.2-r1.ebuild,v 1.1 2009/02/15 17:25:42 patrick Exp $
+EAPI=2
+
+inherit bash-completion subversion distutils multilib versionator webapp
+
+MY_P="Django-1.1"
+WEBAPP_MANUAL_SLOT="yes"
+
+DESCRIPTION="High-level python web framework"
+HOMEPAGE="http://www.djangoproject.com/"
+SRC_URI="http://media.djangoproject.com/releases/1.1/${MY_P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="doc examples mysql postgres sqlite3 test"
+
+RDEPEND="dev-python/imaging
+	sqlite3? ( || (
+		( dev-python/pysqlite:2 <dev-lang/python-2.5 )
+		>=dev-lang/python-2.5[sqlite] ) )
+	test? ( || (
+		( dev-python/pysqlite:2 <dev-lang/python-2.5 )
+		>=dev-lang/python-2.5[sqlite] ) )
+	postgres? ( dev-python/psycopg )
+	mysql? ( >=dev-python/mysql-python-1.2.1_p2 )
+	doc? ( >=dev-python/sphinx-0.3 )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="docs/* AUTHORS"
+
+src_unpack() {
+	distutils_src_unpack
+	if use test; then
+		local repo_uri
+		repo_uri="http://code.djangoproject.com/svn/${PN}/tags/releases/${PV}/tests/"
+		subversion_fetch ${repo_uri} tests
+	fi
+}
+
+src_compile() {
+	distutils_src_compile
+	if use doc ; then
+		pushd docs
+		emake html || die "docs failed"
+		popd
+	fi
+}
+
+src_test() {
+	einfo "Running tests."
+	cat >> tests/settings.py << __EOF__
+DATABASE_ENGINE='sqlite3'
+ROOT_URLCONF='tests/urls.py'
+SITE_ID=1
+__EOF__
+	PYTHONPATH="." ${python} tests/runtests.py --settings=settings -v1 \
+		|| die "tests failed"
+}
+
+src_install() {
+	distutils_python_version
+	site_pkgs="$(python_get_sitedir)"
+	export PYTHONPATH="${PYTHONPATH}:${D}/${site_pkgs}"
+	dodir ${site_pkgs}
+
+	distutils_src_install
+
+	dobashcompletion extras/django_bash_completion
+
+	if use examples ; then
+		insinto /usr/share/doc/${PF}
+		doins -r examples
+	fi
+	if use doc ; then
+		mv docs/_build/html/{_,.}sources
+		dohtml txt -r docs/_build/html/*
+	fi
+
+	insinto "${MY_HTDOCSDIR}"
+	doins -r "${D}/${site_pkgs}"/django/contrib/admin/media/*
+
+	#webapp_postinst_txt en "${WORKDIR}"/postinstall-en.txt
+	webapp_src_install
+}
+
+pkg_preinst() {
+	:
+}
+
+pkg_postinst() {
+	bash-completion_pkg_postinst
+	distutils_pkg_postinst
+	einfo "Now, Django has the best of both worlds with Gentoo,"
+	einfo "ease of deployment for production and development."
+	echo
+	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"
+	echo
+	echo
+	ewarn "If you build Django-1.1 without USE=\"vhosts\""
+	ewarn "webapp-config will automatically install the"
+	ewarn "admin media into the localhost webroot."
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.