# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.12.3.ebuild,v 1.1 2010/01/18 16:36:41 arfrever Exp $ EAPI="2" inherit eutils multilib python versionator MY_PN="Zope2" MY_P="${MY_PN}-${PV}" DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites" HOMEPAGE="http://www.zope.org http://pypi.python.org/pypi/Zope2" SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="ZPL" SLOT="$(get_version_component_range 1-2)" KEYWORDS="~amd64 ~x86" IUSE="doc" RESTRICT="test" RDEPEND="|| ( dev-lang/python:2.7 dev-lang/python:2.6 ) dev-python/docutils dev-python/restrictedpython dev-python/setuptools net-zope/acquisition net-zope/datetime net-zope/extensionclass net-zope/five-formlib net-zope/persistence net-zope/tempstorage net-zope/transaction net-zope/zdaemon net-zope/zconfig net-zope/zlog >=net-zope/zodb-3.9 net-zope/zope-app-form net-zope/zope-app-publication net-zope/zope-app-publisher net-zope/zope-app-schema net-zope/zope-component net-zope/zope-configuration net-zope/zope-container net-zope/zope-contentprovider net-zope/zope-contenttype net-zope/zope-deferredimport net-zope/zope-event net-zope/zope-exceptions net-zope/zope-formlib net-zope/zope-i18n net-zope/zope-i18nmessageid net-zope/zope-interface net-zope/zope-lifecycleevent net-zope/zope-location net-zope/zope-pagetemplate net-zope/zope-processlifetime net-zope/zope-proxy net-zope/zope-publisher net-zope/zope-schema net-zope/zope-security /dev/null dodoc _sources/* || die "Installation of documentation failed" docinto html dohtml -r [A-Za-z]* _static || die "Installation of documentation failed" popd > /dev/null fi # Copy the init script skeleton to skel directory of our installation. insinto "${ZSERVDIR}/skel" doins "${FILESDIR}/zope.initd" || die "doins failed" } pkg_postinst() { python_mod_optimize "${ZSERVDIR}/lib/python" # Create the zope user and group for backward compatibility. enewgroup ${ZGID} 261 usermod -g ${ZGID} ${ZUID} 2>&1 >/dev/null || \ enewuser ${ZUID} 261 -1 /var/$(get_libdir)/zope ${ZGID} einfo "Be warned that you need at least one zope instance to run zope." einfo "Please emerge zope-config for further instance management." } pkg_postrm() { python_mod_cleanup "${ZSERVDIR}/lib/python" }