All pastes #385565 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-07 22:26 UTC
rendered paste body
boris@boris ~ $ more /usr/local/portage/media-gfx/bibblelite/bibblelite-4.9.5.ebuild 
# 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="x86 ~x86"
DESCRIPTION="Workflow software for developing RAW files from many cameras"
HOMEPAGE="http://bibblelabs.com/"

SRC_URI="http://munich.worldwind.net/pub/bibble/BibbleLite/4.9.5/bibblelite-4.9.5-1.i586.rpm"

#RESTRICT="fetch"

S=${WORKDIR}

src_install() {
    into /usr
    dobin ${S}/usr/bin/bibblelite
    dodir /usr/lib/bibblelabs
    insinto /usr/lib/bibblelabs
    doins -r ${S}/usr/lib/bibblelabs/*

  fperms a+x /usr/lib/bibblelabs/bibblelite/plugins/Andy.so
  fperms a+x /usr/lib/bibblelabs/bibblelite/plugins/BBlackAndWhite.so
  fperms a+x /usr/lib/bibblelabs/bibblelite/plugins/Gina.so
  fperms a+x /usr/lib/bibblelabs/bibblelite/plugins/Roy.so
  fperms a+x /usr/lib/bibblelabs/bibblelite/plugins/Sadie.so
  fperms a+x /usr/lib/bibblelabs/bibblelite/plugins/Siggy.so
  fperms a+x /usr/lib/bibblelabs/bibblelite/plugins/Tony.so
  fperms a+x /usr/lib/bibblelabs/bibblelite/libs/libkodakcms.so

    insinto /usr/share
    doins -r ${S}/usr/share/*
    
}

pkg_postinst()
{
    # Create the env.d file.
    echo "LDPATH=\"${ROOT}/usr/lib/bibblelabs/bibblelite/libs\"" > ${ROOT}/etc/env.d/99bibblelite
}

pkg_prerm()
{
    # Remove the env.d file.
    if [[ -e ${ROOT}/etc/env.d/99bibblelite ]] ; then
        rm -f ${ROOT}/etc/env.d/99bibblelite
    fi
}