2009-03-21 15:12:23 +01:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI="2"
|
2009-03-21 18:27:06 +01:00
|
|
|
inherit qt4 cmake-utils multilib
|
2009-03-21 15:12:23 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Qt lightScribe - OS labeler for Linux"
|
|
|
|
HOMEPAGE="http://sourceforge.net/projects/qlscribe/"
|
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${PF}.tar.gz"
|
|
|
|
|
2009-03-21 16:48:34 +01:00
|
|
|
LICENSE="GPL-2"
|
2009-03-21 15:12:23 +01:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2009-03-21 17:09:51 +01:00
|
|
|
IUSE="debug multilib"
|
2009-03-21 15:12:23 +01:00
|
|
|
|
|
|
|
DEPEND="x11-libs/qt-gui:4
|
|
|
|
app-cdr/liblightscribe
|
2009-03-21 17:09:51 +01:00
|
|
|
amd64? ( app-emulation/emul-linux-x86-baselibs )"
|
2009-03-21 15:12:23 +01:00
|
|
|
RDEPEND="${DEPEND}
|
|
|
|
dev-util/cmake[qt4]"
|
|
|
|
|
2009-03-21 15:53:44 +01:00
|
|
|
mycmakeargs="-DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d
|
|
|
|
-DDBUS_SYSTEM_SERVICE_DIR=/usr/share/dbus-1/services"
|
|
|
|
|
2009-03-21 15:12:23 +01:00
|
|
|
src_prepare() {
|
2009-03-21 15:53:44 +01:00
|
|
|
epatch "${FILESDIR}"/${P}-gentoo-2.patch || die "Error applying patch"
|
2009-03-21 15:12:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2009-03-21 18:27:06 +01:00
|
|
|
# hack in Library path cant use get_libdir as it would change vars used in the build
|
|
|
|
# format not match
|
|
|
|
# so add both dirs for lib32 (amd64) and lib (x86)
|
|
|
|
export LD_LIBRARY_PATH="/usr/lib32/libstdc++-v3:/usr/lib/libstdc++-v3:${LD_LIBRARY_PATH}"
|
2009-03-21 15:12:23 +01:00
|
|
|
cmake-utils_src_make
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake-utils_src_install
|
2009-03-21 18:27:06 +01:00
|
|
|
|
|
|
|
has_multilib_profile && ABI="x86"
|
|
|
|
make_wrapper lscribed-wrapper "/usr/sbin/lscribed" /usr/bin /usr/$(get_libdir)/libstdc++-v3
|
|
|
|
dosed "s%sbin/lscribed%bin/lscribed-wrapper%" /usr/share/dbus-1/services/org.lightscribe.Manager.service
|
2009-03-21 15:12:23 +01:00
|
|
|
}
|