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

(-)/usr/portage/app-misc/gramps/gramps-3.0.4.ebuild (-2 / +26 lines)
Lines 43-48 Link Here
43
	# file system
43
	# file system
44
	mv "${S}"/py-compile "${S}"/py-compile.orig
44
	mv "${S}"/py-compile "${S}"/py-compile.orig
45
	ln -s $(type -P true) "${S}"/py-compile
45
	ln -s $(type -P true) "${S}"/py-compile
46
47
	python_version
48
49
	# Fix install path.
50
	einfo "Fix installation path"
51
	find . -iname 'Makefile.in' | xargs \
52
		sed "s;\(pkgdatadir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
53
		|| die "Fixing installation path failed"
54
55
	sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
56
		-i src/Makefile.in || die "Fixing ${S}/src/Makefile.in failed"
57
	
58
	sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
59
	-i src/docgen/Makefile.in || die "Fixing ${S}/src/docgen/Makefile.in failed"
60
61
	einfo "Fix wrapper script"
62
	sed "s;@datadir@;$(python_get_sitedir);" \
63
		-i gramps.sh.in || die "Fixing ${S}/gramps.sh.in failed"
64
65
	einfo "Fix icon location"
66
	sed "s;gramps/;pixmap/;g" -i data/gramps.keys.in || \
67
		die "Fixing ${S}/data/gramps.keys.in failed"
46
}
68
}
47
69
48
src_install() {
70
src_install() {
Lines 52-61 Link Here
52
74
53
pkg_postinst() {
75
pkg_postinst() {
54
	gnome2_pkg_postinst
76
	gnome2_pkg_postinst
55
	python_mod_optimize /usr/share/${PN}
77
	python_version
78
	python_mod_optimize $(python_get_sitedir)/${PN}
56
}
79
}
57
80
58
pkg_postrm() {
81
pkg_postrm() {
59
	gnome2_pkg_postrm
82
	gnome2_pkg_postrm
60
	python_mod_cleanup /usr/share/${PN}
83
	python_version
84
	python_mod_cleanup $(python_get_sitedir)/${PN}
61
}
85
}

Return to bug 262644