summaryrefslogtreecommitdiff
blob: 897d0cfc5a95df800ef6ee4301c0f4b71dc79d78 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/perlmagick/perlmagick-5.5.6.ebuild,v 1.4 2003/07/21 20:37:26 mholzer Exp $

inherit perl-module
inherit flag-o-matic
replace-flags k6-3 i586
replace-flags k6-2 i586  
replace-flags k6 i586  

IUSE=""

# Left this the same as ImageMagick for the sake of simplicity
MY_PN=ImageMagick

### PV magic not needed as we dont have a patchlevel yet
#MY_P=${MY_PN}-${PV%.*}-${PV#*.*.*.}
#MY_P2=${MY_PN}-${PV%.*}
MY_P=${MY_PN}-${PV}
MY_P2=${MY_PN}-${PV}

S=${WORKDIR}/${MY_P2}
DESCRIPTION="A Perl module to harness the powers of ImageMagick"
SRC_URI="mirror://sourceforge/imagemagick/${MY_P}.tar.bz2"
HOMEPAGE="http://www.imagemagick.org/"

SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 amd64 ppc ~sparc ~alpha ~mips ~hppa"

DEPEND="=media-gfx/imagemagick-${PV}*
		>=dev-lang/perl-5"

src_compile() {
	#patch to allow building by perl
	patch -p0 < ${FILESDIR}/perlpatch.diff
	
	cd PerlMagick
	perl-module_src_prep
	perl-module_src_compile

}

src_install() {
	cd PerlMagick
	perl-module_src_install
}