Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 339248
Collapse All | Expand All

(-)a/exact-image-0.8.1.ebuild (-1 / +25 lines)
Lines 6-12 Link Here
6
6
7
PYTHON_DEPEND="python? 2:2.5"
7
PYTHON_DEPEND="python? 2:2.5"
8
8
9
inherit eutils multilib python
9
inherit eutils multilib python toolchain-funcs
10
10
11
DESCRIPTION="A fast, modern and generic image processing library"
11
DESCRIPTION="A fast, modern and generic image processing library"
12
HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
12
HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
Lines 54-59 Link Here
54
	sed -i -e "s:python2.5:python$(python_get_version):" \
54
	sed -i -e "s:python2.5:python$(python_get_version):" \
55
		-e "s:\$(libdir):usr/$(get_libdir):" \
55
		-e "s:\$(libdir):usr/$(get_libdir):" \
56
		"${S}"/api/python/Makefile
56
		"${S}"/api/python/Makefile
57
	# Respect user CFLAGS/CXXFLAGS.
58
	sed -i \
59
		-e '/C\(XX\)\?FLAGS =/s/-O2//' \
60
		-e "\$aCFLAGS += ${CFLAGS}\nCXXFLAGS += ${CXXFLAGS}" \
61
		Makefile || die
62
	# Show commands.  Use qualified CC/CXX.
63
	sed -i \
64
		-e '/^Q =/d' \
65
		-e '/^\t@echo /d' \
66
		-e "\$aCC:=$(tc-getCC)\nCXX:=$(tc-getCXX)" \
67
		build/bottom.make || die
68
	# The copied string fits exactly.  Use memcpy to reflect that a null
69
	# terminator is not needed.
70
	sed -i \
71
		-e 's/strcpy(\([^,]*\)\(,["a-zA-Z -]*\))/memcpy(\1\2, sizeof(\1))/' \
72
		codecs/tga.cc || die
73
	# gcc warns because the array access is technically ill-formed, though it
74
	# happens to work with standard memory layouts.  Rewrite the lookup to stay
75
	# in bounds at all times.
76
	local lengthof='(sizeof(\1) / sizeof(\1[0]))'
77
	sed -i \
78
		-e 's:\(romm_cam\)\[0\]\[i\]:\1[i / '"$lengthof"'][i % '"$lengthof"']:' \
79
		-e 's:\(cam_xyz\)\[0\]\[j\]:\1[j / '"$lengthof"'][j % '"$lengthof"']:' \
80
		codecs/dcraw.h || die
57
}
81
}
58
82
59
src_configure() {
83
src_configure() {

Return to bug 339248