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

(-)bitpim-1.0.6-r1.ebuild (-5 / +12 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/app-mobilephone/bitpim/bitpim-1.0.6-r1.ebuild,v 1.8 2012/09/05 07:16:37 jlec Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/bitpim-1.0.6-r1.ebuild,v 1.8 2012/09/05 07:16:37 jlec Exp $
4
4
5
EAPI="3"
5
EAPI="4"
6
PYTHON_DEPEND="2:2.5"
6
PYTHON_DEPEND="2:2.5"
7
7
8
inherit distutils eutils fdo-mime multilib
8
inherit distutils eutils fdo-mime multilib
Lines 42-48 Link Here
42
	epatch "${FILESDIR}/${P}-gentoo.patch"
42
	epatch "${FILESDIR}/${P}-gentoo.patch"
43
	epatch "${FILESDIR}/${P}-ffmpeg_quality.patch"
43
	epatch "${FILESDIR}/${P}-ffmpeg_quality.patch"
44
	epatch "${FILESDIR}/${P}-gcc43.patch"
44
	epatch "${FILESDIR}/${P}-gcc43.patch"
45
	sed -i "s/^PYTHONVER=.*/PYTHONVER=$(PYTHON)/" src/native/usb/build.sh
45
	sed -i "s/^PYTHONVER=.*/PYTHONVER=$(PYTHON)/" \
46
		src/native/usb/build.sh || die "sed failed"
47
	sed -i "s/\$(EXTRADEFINES) -O2/\$(CXXFLAGS) \$(LDFLAGS)/" \
48
		src/native/av/bmp2avi/Makefile || die "sed failed"
46
}
49
}
47
50
48
src_compile() {
51
src_compile() {
Lines 58-64 Link Here
58
61
59
	# bmp2avi
62
	# bmp2avi
60
	cd "${S}/src/native/av/bmp2avi"
63
	cd "${S}/src/native/av/bmp2avi"
61
	PLATFORM=linux make || die "compilation of native/bmp2avi failed"
64
	PLATFORM=linux emake CXX="$(tc-getCXX)"
62
}
65
}
63
66
64
src_install() {
67
src_install() {
Lines 133-140 Link Here
133
	fi
136
	fi
134
137
135
	# Desktop file
138
	# Desktop file
136
	sed -i -e "s|%%INSTALLBINDIR%%|/usr/bin|" -e "s|%%INSTALLLIBDIR%%|${RLOC}|" \
139
	sed -i \
137
		packaging/bitpim.desktop
140
		-e "s|%%INSTALLBINDIR%%|/usr/bin|" \
141
		-e "s|%%INSTALLLIBDIR%%|${RLOC}|" \
142
		-e "s|Terminal=0|Terminal=true|" \
143
		-e "s|Application;Calendar;ContactManagement;Utility;|Calendar;ContactManagement;Utility;|" \
144
		packaging/bitpim.desktop || die "sed failed"
138
	domenu packaging/bitpim.desktop
145
	domenu packaging/bitpim.desktop
139
}
146
}
140
147

Return to bug 336233