# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils kde-functions MY_P="CdCat" DESCRIPTION="The cdcat is graphical (QT based) multiplatform catalog program" HOMEPAGE="http://cdcat.sourceforge.net/" SRC_URI="http://cdcat.sourceforge.net/${P}.tar.bz2" LICENSE="GPL" IUSE="nls" #This is because there are other app with the same name... SLOT="" KEYWORDS="~x86" DEPEND=">=x11-libs/qt-2.3.0 >=dev-libs/expat-1.95.2 >=dev-libs/libpcre-3.9 >=sys-libs/zlib-1.1.4" need-qt 3 S=${WORKDIR}/${MY_P}-${PV}/src DOCS="../README_CSV_IMPORT ../Authors ../README ../ChangeLog \ ../COPYING ../TRANSLATORS_README" src_unpack() { unpack ${A} cd ${S} sed -i -e s~/usr/local~/usr~g ${S}/cdcat.pro || die "sed broke" qmake cdcat.pro || die "qmake failed" } src_install(){ dobin cdcat dodocs ${DOCS} if use nls; then insinto /usr/share/cdcat/translations doins lang/*.qm fi insinto /usr/share/pixmaps doins ../${PN}.png make_desktop_entry ${PN} "CD/DVD Catalog" cdcat.png AudioVideo || die "desktop entry failed" }