# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit rpm SLOT="0" LICENSE="as-is" KEYWORDS="amd64 ~amd64" DESCRIPTION="Workflow software for developing RAW files from many cameras" HOMEPAGE="http://bibblelabs.com/" SRC_URI="bibblepro-${PV}-1.i586.rpm" # NOTE: Qt is not necessary since Bibble is statically linked to a commercial version of it. RDEPEND="app-emulation/emul-linux-x86-xlibs" RESTRICT="fetch" S=${WORKDIR} src_install() { into /usr dobin ${S}/usr/bin/bibblepro dodir /usr/lib/bibblelabs insinto /usr/lib/bibblelabs doins -r ${S}/usr/lib/bibblelabs/* fperms a+x /usr/lib/bibblelabs/bibblepro/plugins/Andy.so fperms a+x /usr/lib/bibblelabs/bibblepro/plugins/BBlackAndWhite.so fperms a+x /usr/lib/bibblelabs/bibblepro/plugins/Gina.so fperms a+x /usr/lib/bibblelabs/bibblepro/plugins/Roy.so fperms a+x /usr/lib/bibblelabs/bibblepro/plugins/Sadie.so fperms a+x /usr/lib/bibblelabs/bibblepro/plugins/Siggy.so fperms a+x /usr/lib/bibblelabs/bibblepro/plugins/Tony.so fperms a+x /usr/lib/bibblelabs/bibblepro/libs/libkodakcms.so insinto /usr/share doins -r ${S}/usr/share/* } pkg_postinst() { # Create the env.d file. if ! [[ -e ${ROOT}/etc/env.d/99bibblepro ]] ; then echo "LDPATH=\"${ROOT}/usr/lib/bibblelabs/bibblepro/libs\"" > ${ROOT}/etc/env.d/99bibblepro fi } pkg_postrm() { # Remove the env.d file. if [[ -e ${ROOT}/etc/env.d/99bibblepro ]] && ! [[ -d ${ROOT}/usr/lib/bibblelabs/bibblepro/libs ]]; then rm -f ${ROOT}/etc/env.d/99bibblepro fi }