blob: 0bc4958b6b8c097e4d6dcceae1962725b19446d3 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit versionator zproduct
MY_PV="$(replace_all_version_separators '-' )"
MY_PN="PloneMultimediaBundle"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Products to improve Plone's support for multimedia such as audio, video and photos."
HOMEPAGE="http://plone.org/products/plonemultimedia"
SRC_URI="http://plone.org/products/plonemultimedia/releases/${PV:0:3}/${MY_P}-tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE=""
DEPEND=">=net-zope/plone-2.1
>=net-zope/zope-2.8"
RDEPEND="${DEPEND}
dev-python/mmpython"
S="${WORKDIR}/${MY_PN}"
ZPROD_LIST="ATAudio
ATMediaFile
ATPhoto
ATVideo
ExternalStorage
FileSystemStorage
LinguaPlone
mod_limewire
PloneJUpload"
src_unpack() {
# this has to be done manually since $A is incorrect, and readonly
# unpack function does not work either
tar xzf "${DISTDIR}"/${MY_P}-tar.gz -C "${WORKDIR}" || die 'unpack failed'
}
src_install() {
dodoc README.txt
# then move the Products into $WORKDIR, and install from there
for Product in ${ZPROD_LIST}; do
mv "${Product}" "${WORKDIR}"
done
# remove now Productless ${PN}..
cd "${WORKDIR}"
rm -rf "${S}"
S="${WORKDIR}"
# install Products
zproduct_src_install all
}
pkg_postinst() {
elog
elog "The PloneMultimedia 1.0-alpha1 bundle includes:"
elog " * ATAudio 0.6"
elog " * ATVideo 1.0-alpha1"
elog " * ATPhoto 1.0-alpha1"
elog " * ATMediaFile 1.0-alpha1"
elog " * PloneJUpload 1.0-alpha2"
elog " * ExternalStorage 0.7"
elog " * FileSystemStorage"
elog " * mod_limewire"
elog
}
|