summaryrefslogtreecommitdiff
blob: 0c091b1aa6c9f917000eaad156a264612ca42196 (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
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils qt3

DESCRIPTION="BSCommander is a QT based file manager"
HOMEPAGE="http://www.beesoft.org/bsc.html"
SRC_URI="http://www.beesoft.org/download/${PN}_${PV}_src.tar.gz"

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

DEPEND="$(qt_min_version 3.3)
	x11-libs/libX11
	x11-libs/libXext"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}"

src_compile() {
	${QTDIR}/bin/qmake -o Makefile bsc.pro \
		QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
		QMAKE_RPATH= \
		|| die "qmake failed"

	emake || die "make failed"
}

src_install() {
	dobin ${PN}

	insinto /usr/share/${PN}/images
	doins images/*

	insinto /usr/share/${PN}/lang
	doins *.qm

	newicon BeesoftCommander.png ${PN}.png
	make_desktop_entry ${PN} BSCommander ${PN}.png "FileManager;Utility;Qt"

	dodoc ChangeLog.txt
}