summaryrefslogtreecommitdiff
blob: c76da04f852e7508861b680b3e3fb76783b4f8bc (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-zope/portaltransforms/portaltransforms-1.0.4.ebuild,v 1.8 2009/03/30 14:07:53 loki_val Exp $

inherit zproduct

MY_PN="PortalTransforms"
MY_PV=1.0.4
MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="MIME-type based transformations for Archetypes"
HOMEPAGE="http://www.sf.net/projects/archetypes"
SRC_URI="mirror://sourceforge/archetypes/${MY_P}.tgz"

LICENSE="GPL-1"
KEYWORDS="ppc x86"

DEPEND_BOTH="dev-python/docutils
	www-client/lynx
	virtual/poppler-utils"

RDEPEND="app-text/htmltidy
	app-text/wv
	dev-libs/libxslt
	app-text/xlhtml
	app-text/unrtf
	${DEPEND_BOTH}"

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

ZPROD_LIST="${MY_PN}"
MYDOC="${MYDOC} TODO README ChangeLog"

src_compile() {
	python setup.py build
}

src_install() {
	dodoc docs/*.rst
	dohtml docs/*.html
	DIR=`ls -d build/scripts*`
	S=${S}/build dobin ${DIR}/transform
	S=${S}/build/lib/Products zproduct_src_install all
	cp -a "${S}"/{zope,www,skins} "${D}"/${ZP_DIR}/${PF}/${MY_PN}
	cp "${S}"/tool.gif "${D}"/${ZP_DIR}/${PF}/${MY_PN}
}