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

Collapse All | Expand All

(-)pythonmagick-0.7.ebuild.old (-25 / +9 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.7.ebuild,v 1.1 2007/11/20 01:03:38 hawking Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.7.ebuild,v 1.1 2007/11/20 01:03:38 hawking Exp $
4
4
5
inherit eutils python multilib toolchain-funcs
5
NEED_PYTHON="2.5"
6
7
inherit python multilib flag-o-matic
6
8
7
MY_PN=PythonMagick
9
MY_PN=PythonMagick
8
MY_P=${MY_PN}-${PV}
10
MY_P=${MY_PN}-${PV}
Lines 16-53 Link Here
16
KEYWORDS="~x86"
18
KEYWORDS="~x86"
17
IUSE=""
19
IUSE=""
18
20
19
RDEPEND=">=media-gfx/imagemagick-1.1.7
21
DEPEND=">=media-gfx/imagemagick-6.2
20
		>=dev-libs/boost-1.34.0"
22
		>=dev-libs/boost-1.34.0"
21
DEPEND="${RDEPEND}
22
		dev-util/scons"
23
23
24
S=${WORKDIR}/${MY_P}
24
S=${WORKDIR}/${MY_P}
25
25
26
src_unpack() {
26
src_compile () {
27
	unpack ${A}
27
	filter-ldflags -Wl,--as-needed --as-needed
28
	cd "${S}"
29
	epatch "${FILESDIR}/${PN}-0.6-gentoo_misc_fixes.patch"
30
}
31
32
src_compile() {
33
	python_version
34
	sed -i \
35
		-e "s#\(BOOST\)=.*#\1='/usr/include/boost'#" \
36
		-e "s#\(BOOSTLIBPATH\)=.*#\1='/usr/lib'#" \
37
		-e "s#\(PYTHON_INCLUDE\)=.*#\1='/usr/include/python${PYVER}'#" \
38
		-e "s#\(Environment(\)#\1 CXX='$(tc-getCXX)',#" \
39
		-e "s#\(CPPFLAGS\)=#\1='${CXXFLAGS}'.split()+#" \
40
		SConstruct || die "sed failed"
41
42
	# FIXME: Until we have a var or function for it
43
	numjobs=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< ${MAKEOPTS})
44
28
45
	scons mode=release ${numjobs} || die "scons failed"
29
	econf || die "econf failed"
30
	emake || die "emake failed"
46
}
31
}
47
32
48
src_install() {
33
src_install() {
49
	insinto /usr/lib/python${PYVER}/site-packages
34
	emake DESTDIR="${D}" install || die "emake install failed"
50
	doins -r PythonMagick
51
}
35
}
52
36
53
pkg_postinst() {
37
pkg_postinst() {

Return to bug 215038