Commits

Anonymous committed c994b08

update goldendict git ebuild

  • Participants
  • Parent commits d8671be

Comments (0)

Files changed (2)

app-text/goldendict/Manifest

+EBUILD goldendict-9999.ebuild 888 RMD160 fff201bf8228986afb0c66d2aa032b45eb3b78ac SHA1 d03f5ab51983bb501a719d466631816350b7228f SHA256 3b29de2ce27bf4a273f8fac883a57cb94cbfccae7e81d20f3b46281331074dd7

app-text/goldendict/goldendict-9999.ebuild

 # 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"
+EAPI="3"
+EGIT_REPO_URI="https://github.com/goldendict/goldendict.git"
 
 inherit git qt4-r2
 
 DESCRIPTION="Feature-rich dictionary lookup program"
-HOMEPAGE="http://goldendict.berlios.de/"
+HOMEPAGE="http://goldendict.org"
 
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS=""
-IUSE=""
+IUSE="debug kde"
 
-RDEPEND=">=app-text/hunspell-1.2
+RDEPEND="
+	>=app-text/hunspell-1.2
 	media-libs/libogg
 	media-libs/libvorbis
 	sys-libs/zlib
 	>=x11-libs/qt-core-4.5:4[exceptions]
 	>=x11-libs/qt-gui-4.5:4[exceptions]
 	>=x11-libs/qt-webkit-4.5:4[exceptions]
-	media-libs/phonon
-	"
+	!kde? ( || (
+		>=x11-libs/qt-phonon-4.5:4[exceptions]
+		media-libs/phonon
+	) )
+	kde? ( media-libs/phonon )
+"
 DEPEND="${RDEPEND}
-	dev-util/pkgconfig"
+	dev-util/pkgconfig
+"
+S="${WORKDIR}"
 
-src_unpack() {
-	S=${WORKDIR}/${P} git_src_unpack
+
+src_prepare() {
+	git_fetch
+	qt4-r2_src_prepare
 }
 
-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_configure() {
+	PREFIX="${EPREFIX}"/usr eqmake4
 }
 
 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
 }