Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bibblepro keyword problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Thu Jul 31, 2008 12:23 pm    Post subject: bibblepro keyword problem Reply with quote

Hello, ok i am playing with bibblepro-bin ebuild to allow auto install of plugins via keywords but am having issue with one plugin.

Ok i have created an ebuild fro gradpro that works Smile but am having issues with andypro, every time i try and build andypro plug i get errors:


Code:

 emerge -av andypro

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N f  ] media-plugins/andypro-1.4  0 kB [1]

Total: 1 package (1 new), Size of downloads: 0 kB
Fetch Restriction: 1 package
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) media-plugins/andypro-1.4 to /
 * AndyPRO-1.4.zip RMD160 SHA1 SHA256 size ;-) ...                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                             [ ok ]
 * checking auxfile checksums ;-) ...                                                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                                                           [ ok ]
 * checking AndyPRO-1.4.zip ;-) ...                                                                                              [ ok ]
 * Please add 'andypro' to your USE flags, and re-emerge bibblepro-bin.
 *
 * ERROR: media-plugins/andypro-1.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *      andypro-1.4.ebuild, line   32:  Called die
 * The specific snippet of code:
 *              die "bibblepro-bin needs andypro USE flag to avoid collisions"
 *  The die message:
 *   bibblepro-bin needs andypro USE flag to avoid collisions



bibblepro ebuild has keyword andypro and that is also set in USE=


Code:

emerge -av bibblepro-bin

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N f  ] media-plugins/andypro-1.4  0 kB [1]
[ebuild   R   ] media-gfx/bibblepro-bin-4.10.1  USE="andypro* gradpro spectrum -ndgrad" 0 kB [1]



bibblepro-bin ebuild

Code:

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: bibblepro-bin-4.10.1.ebuild 1121 2008-07-30 09:03:50Z casta $

inherit eutils rpm multilib versionator

# derived from http://bugs.gentoo.org/show_bug.cgi?id=147816
# with customizations and repoman fixes
DESCRIPTION="Professional photo workflow and RAW conversion software"
HOMEPAGE="http://www.bibblelabs.com"
RESTRICT="mirror strip"
MY_P="bibblepro"
RPM_VERSION="1"
MAJOR_VERSION=$(get_version_component_range 1-2)
SRC_URI="mirror://bibble/pub/${MAJOR_VERSION}/BibblePro/${MY_P}-${PV}-${RPM_VERSION}.i386.rpm"

LICENSE="bibblepro"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="andypro gradpro ndgrad spectrum"

DEPEND="app-arch/rpm2targz"
RDEPEND="virtual/libc
   media-libs/fontconfig
   media-libs/freetype
   sys-libs/zlib
   dev-libs/expat
   amd64? (
      >=app-emulation/emul-linux-x86-baselibs-1.0
      app-emulation/emul-linux-x86-compat
   )"
PDEPEND="andypro? ( media-plugins/andypro )
   ndgrad? ( media-plugins/ndgrad )
   gradpro? ( media-plugins/gradpro )
   spectrum? ( media-plugins/spectrum )"

# Skip some QA checks we cannot fix
QA_EXECSTACK="usr/bin/bibblepro"
QA_TEXTRELS="usr/lib/bibblelabs/bibblepro/plugins/*.so"

pkg_setup() {
   has_multilib_profile && ABI="x86"
}

src_unpack() {
   rpm_src_unpack

   # if using andypro remove the demo plugin to avoid collisions
   if use andypro; then
      rm "${WORKDIR}/usr/lib/bibblelabs/bibblepro/plugins/Andy.so"
      rm "${WORKDIR}/usr/lib/bibblelabs/bibblepro/tools/Plugins/Andy.ui"
   fi
}

src_install() {
   cd "${WORKDIR}"

   dobin ./usr/bin/bibblepro

   dodir "/usr/lib/bibblelabs"
   insinto "/usr/lib/bibblelabs"
   doins -r ./usr/lib/bibblelabs/*

   # libs must be executable so that plugins works
   fperms 0755 /usr/lib/bibblelabs/bibblepro/libs/libkodakcms.so
   fperms 0755 /usr/lib/bibblelabs/bibblepro/libs/NoiseNinja/libnoiseninja.so.2.0.0
   use andypro || fperms 0755 /usr/lib/bibblelabs/bibblepro/plugins/Andy.so
   fperms 0755 /usr/lib/bibblelabs/bibblepro/plugins/BBlackAndWhite.so
   fperms 0755 /usr/lib/bibblelabs/bibblepro/plugins/Gina.so
   fperms 0755 /usr/lib/bibblelabs/bibblepro/plugins/Roy.so
   fperms 0755 /usr/lib/bibblelabs/bibblepro/plugins/Sadie.so
   fperms 0755 /usr/lib/bibblelabs/bibblepro/plugins/Siggy.so
   fperms 0755 /usr/lib/bibblelabs/bibblepro/plugins/Tony.so

   dodoc ./usr/share/doc/bibblepro/README.txt

   dodir /usr/share/pixmaps
   insinto /usr/share/pixmaps
   doins ./usr/share/pixmaps/bibblelogo.png

   # Add a fancy .desktop file
   insinto /usr/share/applications
   doins "${FILESDIR}/bibblepro.desktop"

   insinto /etc/env.d
   doins "${FILESDIR}/80bibblepro-bin"
}



andypro ebuild
Code:

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: andypro-1.4.ebuild 1117 2008-07-29 09:16:16Z casta $

inherit eutils multilib

DESCRIPTION="AndyPRO - Pro B&W Film Simulation"
HOMEPAGE="http://nexi.com/andy"
SRC_URI="AndyPRO-${PV}.zip"

LICENSE="bibblepro"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND="=media-gfx/bibblepro-bin-4.10*"

RESTRICT="fetch strip"

QA_TEXTRELS="usr/lib/bibblelabs/bibblepro/plugins/Andy.so"

pkg_nofetch() {
   elog "Please first purchase and download AndyPRO plugin from the site:"
   elog "http://nexi.com/software/paid/"
   elog "then put the AndyPRO-${PV}.zip file in ${DISTDIR}"
}

pkg_setup() {
   if ! built_with_use --missing true media-gfx/bibblepro-bin andypro; then
      eerror "Please add 'andypro' to your USE flags, and re-emerge bibblepro-bin."
      die "bibblepro-bin needs andypro USE flag to avoid collisions"
   fi

   has_multilib_profile && ABI="x86"
}

src_install() {
   cd "${WORKDIR}"

   insinto /usr/lib/bibblelabs/bibblepro/tools/Plugins/
   doins Andy.ui
   doins Andy-Tweaks.ui

   # libs must be executable so that plugins works
   insinto /usr/lib/bibblelabs/bibblepro/plugins/
   insopts -m0755
   doins Andy.so


cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Thu Jul 31, 2008 1:20 pm    Post subject: Reply with quote

Hello, ok it seem that andypro is a PDEPEND on bibblepro-bin, so portage should emerge it AFTER bibblepro-bin but it appears not to be doing that?
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum