summaryrefslogtreecommitdiff
blob: 316472d8161ff1421d2516d66ab7e9388781e02b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-zope/plone/plone-3.1.2.ebuild,v 1.1 2008/06/18 09:12:52 tupone Exp $

inherit versionator zproduct

MY_P="Plone-${PV}"
DESCRIPTION="A Zope Content Management System, based on Zope CMF."
HOMEPAGE="http://plone.org/"
SRC_URI="https://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="3.0"
KEYWORDS="~x86 ~sparc ~ppc ~amd64"
IUSE=""

DEPEND="app-admin/zope-config"
RDEPEND=">=dev-python/imaging-1.1.5
	=net-zope/zope-2.10*
	>=net-zope/zope-2.10.5
	dev-python/elementtree
	>=app-admin/zprod-manager-0.3.2"

S="${WORKDIR}/${MY_P}"

ZPROD_LIST="
	Archetypes
	ATContentTypes
	ATReferenceBrowserWidget
	AdvancedQuery
	CMFActionIcons
	CMFCalendar
	CMFCore
	CMFDefault
	CMFDiffTool
	CMFDynamicViewFTI
	CMFEditions
	CMFFormController
	CMFPlacefulWorkflow
	CMFPlone
	CMFQuickInstallerTool
	CMFTestCase
	CMFTopic
	CMFUid
	DCWorkflow
	ExtendedPathIndex
	ExternalEditor
	GenericSetup
	GroupUserFolder
	kupu
	Marshall
	MimetypesRegistry
	NuPlone
	PasswordResetTool
	PlacelessTranslationService
	PloneLanguageTool
	PlonePAS
	PloneTestCase
	PloneTranslations
	PluggableAuthService
	PluginRegistry
	PortalTransforms
	ResourceRegistries
	SecureMailHost
	ZopeVersionControl
	statusmessages
	validation
	"
ZLPROD_LIST="
	archetypes
	borg
	five
	kss
	plone
	wicked
	"
DOT_ZLFOLDER_FPATH="${ZP_DIR}/${PF}/.zlfolder.lst"

src_install() {
	zproduct_src_install
	for N in ${ZLPROD_LIST} ; do
		echo ${N} >> "${D}"/${DOT_ZLFOLDER_FPATH}
	done
}

pkg_postinst() {
	elog "This plone version is a bundled version = contains all necessary zope products"
	elog "You should carefully manage Your zope instance manually(!) with zprod-manager tool"
	elog "If You have simple installation (just zope and plone) you can safely execute:"
	elog "'zprod-manager add' and then mark ${P} to be added to your instance."
}