# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="A GUI tool for creating, mooving and resizing partitions."
HOMEPAGE="http://qtparted.sourceforge.net"
VER=`echo ${PV} | awk -F. '{print $1"."$2"."$3}'`
DIR="${PN}-`echo ${PV} | awk -F. '{print $1"."$2"."$3}'`"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${VER}.tar.gz"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="~x86"

IUSE=""

DEPEND=">=parted-1.6.5
		>=qt-3.1.0"

S=${WORKDIR}/${DIR}

src_compile() {
	# I had to set prefix here, cause makefile doesn't handle
	# DESTDIR in any way.
	cd ${S}
	./configure \
		--prefix=${D} || die "./configure failed"
	emake || die
}

src_install() {
	mkdir -p "${D}/sbin"
	make install || die
}
