Anonymous avatar Anonymous committed 3488627

add goldendict-9999 ebuild

Comments (0)

Files changed (2)

app-text/goldendict/Manifest

+EBUILD goldendict-9999.ebuild 1356 RMD160 075fac6a78cddd766d0f9f78cf9be60091c5e2e8 SHA1 ee605f7b1f1e9f9023d6fce17e2af69db89936c9 SHA256 c519be406eca037857f2dc61e15b969552d79d19eea66df84a4f1af9720c5e99

app-text/goldendict/goldendict-9999.ebuild

+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+EGIT_REPO_URI="git://gitorious.org/goldendict/goldendict.git"
+LANGSLONG="ar_SA bg_BG cs_CZ de_DE el_GR lt_LT ru_RU zh_CN"
+
+inherit git qt4-r2
+
+DESCRIPTION="Feature-rich dictionary lookup program"
+HOMEPAGE="http://goldendict.berlios.de/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug kde"
+
+RDEPEND=">=app-text/hunspell-1.2
+	media-libs/libogg
+	media-libs/libvorbis
+	sys-libs/zlib
+	x11-libs/libXtst
+	>=x11-libs/qt-core-4.5:4[exceptions]
+	>=x11-libs/qt-gui-4.5:4[exceptions]
+	>=x11-libs/qt-webkit-4.5:4[exceptions]
+	!kde? ( || (
+		>=x11-libs/qt-phonon-4.5:4[exceptions]
+		media-sound/phonon
+	) )
+	kde? ( media-sound/phonon )"
+DEPEND="${RDEPEND}
+	dev-util/pkgconfig"
+
+src_unpack() {
+	S=${WORKDIR}/${P} git_src_unpack
+}
+
+src_prepare() {
+	qt4-r2_src_prepare
+
+	# don't install duplicated stuff and fix installation path
+	sed -i \
+		-e '/desktops2/d' \
+		-e '/icons2/d' \
+		-e '/PREFIX = /s:/usr/local:/usr:' \
+		${PN}.pro || die
+
+	# add trailing semicolon
+	sed -i -e '/^Categories/s/$/;/' redist/${PN}.desktop || die
+}
+
+src_install() {
+	qt4-r2_src_install
+
+	# install translations
+	insinto /usr/share/apps/${PN}/locale
+	for lang in ${LANGSLONG}; do
+		if use linguas_${lang%_*}; then
+			doins locale/${lang}.qm || die
+		fi
+	done
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.