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

Collapse All | Expand All

(-)/usr/portage/games-sports/xmoto/xmoto-0.3.4.ebuild (-2 / +29 lines)
Lines 31-36 Link Here
31
	>=dev-db/sqlite-3
31
	>=dev-db/sqlite-3
32
	nls? ( sys-devel/gettext )"
32
	nls? ( sys-devel/gettext )"
33
33
34
pkg_setup() {
35
	if has_version ">=dev-lang/lua-5.1.3-r1" && ! built_with_use dev-lang/lua deprecated ; then
36
		eerror "Re-emerge dev-lang/lua with 'depercated' USE flag"
37
		eerror "Check your USE flags, re-emerge the dependencies and then"
38
		eerror "emerge this package."
39
		die
40
	fi
41
}
42
34
src_unpack() {
43
src_unpack() {
35
	unpack ${A}
44
	unpack ${A}
36
	cd "${S}"
45
	cd "${S}"
Lines 51-57 Link Here
51
60
52
src_install() {
61
src_install() {
53
	emake DESTDIR="${D}" install || die "emake install failed"
62
	emake DESTDIR="${D}" install || die "emake install failed"
54
63
	## if it is not working nice way, we'll do it ugly way
64
	if use nls ; then
65
	PD="${PORTAGE_TMPDIR}/portage/${CATEGORY}/${PF}"
66
		if ! [ -d ${PD}/image//usr/share/games/locale ] ; then
67
			mkdir -p ${PD}/image//usr/share/locale/ \
68
				|| die "lang mkdir failed"
69
		fi
70
		cd ${S}/po
71
		for i in `ls -c1 |grep "\.gmo$"` ; do
72
			BASE=$(echo ${i} |sed 's/\.gmo$//g')
73
			if ! [ -d ${PD}/image//usr/share/locale/${BASE}/LC_MESSAGES ] ; then
74
				mkdir -p ${PD}/image//usr/share/locale/${BASE}/LC_MESSAGES \
75
					|| die "lang mkdir failed"
76
			fi
77
			msgfmt -v -o ${BASE}.mo ${BASE}.po
78
			mv ${BASE}.gmo ${PD}/image//usr/share/locale/${BASE}/LC_MESSAGES/xmoto.mo \
79
				|| die "unable to copy lang files"
80
		done;
81
	fi
55
	dodoc README TODO ChangeLog
82
	dodoc README TODO ChangeLog
56
83
57
	doicon extra/xmoto.xpm
84
	doicon extra/xmoto.xpm
Lines 70-76 Link Here
70
	if use editor; then
97
	if use editor; then
71
	  elog "If you want to know how to create Xmoto levels"
98
	  elog "If you want to know how to create Xmoto levels"
72
	  elog "have a look at this Tutorial:"
99
	  elog "have a look at this Tutorial:"
73
	  elog "http://wiki.xmoto.free.fr/index.php?title=Inkscape-0.3.0#Tutorial"
100
	  elog "http://wiki.xmoto.tuxfamily.org/index.php?title=Inkscape-0.4.0"
74
	  elog "You can share your levels on the Xmoto homepage."
101
	  elog "You can share your levels on the Xmoto homepage."
75
	fi
102
	fi
76
}
103
}

Return to bug 212339