Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 121142 | Differences between
and this patch

Collapse All | Expand All

(-)imagemagick-6.2.8.0.ebuild.orig (-3 / +13 lines)
Lines 51-68 Link Here
51
51
52
S=${WORKDIR}/${MY_P}
52
S=${WORKDIR}/${MY_P}
53
53
54
#Avoid that perl-module gets built even if we run ./configure --with-perl
55
#These variabled are taken from PerlMagick/Makefile.am
56
MY_MAKE_OVERRIDE="
57
	PERLMAGICK_ALL_LOCAL_TARGETS=
58
	PERLMAGICK_INSTALL_EXEC_LOCAL_TARGETS=
59
	PERLMAGICK_INSTALL_DATA_LOCAL_TARGETS=
60
"
61
54
src_unpack() {
62
src_unpack() {
55
	unpack ${A}
63
	unpack ${A}
56
	cd "${S}"
64
	cd "${S}"
57
	chmod +x config.sub
65
	chmod +x config.sub
58
	epatch "${FILESDIR}"/${PN}-6.2.5.4-docs.patch
66
	epatch "${FILESDIR}"/${PN}-6.2.5.4-docs.patch
67
	epatch "${FILESDIR}"/imagemagick-perl.patch
59
}
68
}
60
69
61
src_compile() {
70
src_compile() {
62
	econf \
71
	econf \
63
		--with-threads \
72
		--with-threads \
64
		--with-modules \
73
		--with-modules \
65
		--without-perl \
74
		$(use_with perl) \
66
		--with-gs-font-dir=/usr/share/fonts/default/ghostscript \
75
		--with-gs-font-dir=/usr/share/fonts/default/ghostscript \
67
		--with-windows-font-dir=/usr/share/fonts/corefonts \
76
		--with-windows-font-dir=/usr/share/fonts/corefonts \
68
		$(use_with !nocxx magick-plus-plus) \
77
		$(use_with !nocxx magick-plus-plus) \
Lines 83-89 Link Here
83
		$(use_with zlib) \
92
		$(use_with zlib) \
84
		$(use_with X x) \
93
		$(use_with X x) \
85
		|| die "econf failed"
94
		|| die "econf failed"
86
	emake || die "compile problem"
95
96
	emake ${MY_MAKE_OVERRIDE} || die "compile problem"
87
97
88
	if use perl ; then
98
	if use perl ; then
89
		cd PerlMagick
99
		cd PerlMagick
Lines 93-99 Link Here
93
}
103
}
94
104
95
src_install() {
105
src_install() {
96
	make DESTDIR="${D}" install || die
106
	make DESTDIR="${D}" ${MY_MAKE_OVERRIDE} install || die
97
	dosed "s:-I/usr/include ::" /usr/bin/Magick{,++}-config
107
	dosed "s:-I/usr/include ::" /usr/bin/Magick{,++}-config
98
108
99
	# dont need these files with runtime plugins
109
	# dont need these files with runtime plugins

Return to bug 121142