summaryrefslogtreecommitdiff
blob: e1a75711b0d41244465f71d88085ad2a1d158a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="1"

inherit eutils

DESCRIPTION="LightLang - electronic dictionary system"
HOMEPAGE="http://lightlang.org.ru"
SRC_URI="ftp://ftp.etc.edu.ru/pub/soft/for_linux/lightlang/apps/stable/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=">=dev-python/PyQt4-4.2.2
		>=dev-python/sip-4.6
		dev-python/python-xlib"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	find -name "Makefile.in" -print0 | xargs -0 \
		sed -i -e 's:\(INS_[[:alnum:]_]*=\)\(@prefix@[[:alnum:]\/]\):\1$(DESTDIR)/\2:'
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	# Collision with directory?
	rm -rf "${D}"/usr/share/man/ru/man1
}