summaryrefslogtreecommitdiff
blob: f1934fea5d11aabbafab543886648b35bffa4cb4 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Template-Toolkit/Template-Toolkit-2.19.ebuild,v 1.1 2007/05/12 14:48:06 mcummings Exp $

inherit perl-module

DESCRIPTION="The Template Toolkit"
SRC_URI="mirror://cpan/authors/id/A/AB/ABW/${P}.tar.gz"
HOMEPAGE="http://search.cpan.org/~abw/"
IUSE="xml gd mysql postgres latex"
SLOT="0"
LICENSE="Artistic GPL-2"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"

DEPEND="dev-perl/text-autoformat
	mysql? ( dev-perl/DBD-mysql )
	postgres? ( dev-perl/DBD-Pg )
	>=dev-perl/AppConfig-1.55
	dev-lang/perl"
PDEPEND="dev-perl/text-autoformat
	xml? ( dev-perl/Template-XML )
	gd? ( dev-perl/Template-GD )
	mysql? ( dev-perl/Template-DBI )
	latex? ( dev-perl/Template-Latex )
	postgres? ( dev-perl/Template-DBI )"

#The installer tries to install to /usr/local/tt2...,
#and asks for user input, so we change myconf to ensure that
# 1) make install doesn't violate the sandbox rule
# 2) perl Makefile.pl just uses reasonable defaults, and doesn't ask for input
myconf="${myconf} TT_PREFIX=${D}/usr/share/template-toolkit2"
myconf="${myconf} TT_IMAGES=/usr/share/template-toolkit2/images"
myconf="${myconf} TT_ACCEPT='y'"

mydoc="README"

#  You have version $Template::VERSION of the Template Toolkit installed.
#
#    There are some minor incompatabilities between version 1 and 2
#    of the Template Toolkit which you should be aware of.  Installing
#    this version will overwrite your version $Template::VERSION files
#    unless you take measures to install one or the other version in a
#    different location (i.e. perl Makefile.PL PREFIX=/other/path).  
#
#    Please consult the README and Changes file for further details.
#    Most of the changes are in the more obscure features and
#    directives so hopefully you will find the upgrade process fairly
#    painless.  If you're feeling brave, then answer 'y', otherwise 'n'.