Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69060 Details for
Bug 106774
rox.eclass fails to byte compile all python modules
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
rox.eclass
rox.eclass (text/plain), 3.08 KB, created by
Peter Hyman
on 2005-09-23 03:11:09 UTC
(
hide
)
Description:
rox.eclass
Filename:
MIME Type:
Creator:
Peter Hyman
Created:
2005-09-23 03:11:09 UTC
Size:
3.08 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.6 2005/07/11 15:08:06 swegener Exp $ > ># ROX eclass Version 2 > ># This eclass was created by Sergey Kuleshov (svyatogor@gentoo.org) and ># Alexander Simonov (devil@gentoo.org.ua) to ease installation of ROX desktop ># applications. > ># APPNAME - the actual name of the application as the app folder is named ># ROX_VER - the minimum version of rox filer required. Default is 2.1.0 ># ROX_LIB_VER - version of rox-lib required if any ># ROX_CLIB_VER - version of rox-clib required if any ># SET_PERM - specifies if permisions for arch specific files need to be set > ># For examples refer to ebuilds in rox-extra/ > ># need python to byte compile modules, if any >inherit python > >if [ -z "$ROX_VER" ]; then > ROX_VER="2.1.0" >fi > >DEPEND="${DEPEND} > >=rox-base/rox-$ROX_VER" > >if [ -n "$ROX_LIB_VER" ]; then > DEPEND="${DEPEND} > >=rox-base/rox-lib-$ROX_LIB_VER" >fi > >if [ -n "$ROX_CLIB_VER" ]; then > DEPEND="${DEPEND} > >=rox-base/rox-clib-$ROX_CLIB_VER" >fi > > >rox_src_compile() { > cd ${APPNAME} > #Some packages need to be compiled. > chmod a+x ./AppRun > if [ -d "src/" ]; then > ./AppRun --compile || die "Failed to compile the package" > rm -rf src > fi >} > >rox_src_install() { > if [ -d "$APPNAME/Help/" ]; then > for i in $APPNAME/Help/*; do > dodoc "$i" > done > fi > insinto /usr/lib/rox > doins -r ${APPNAME} > #set correct permissions on files, in case they are wrong > #include all subdirectories in search, just in case > find ${D}/usr/lib/rox/${APPNAME} -name 'AppRun' | xargs chmod a+x >/dev/null 2>&1 > find ${D}/usr/lib/rox/${APPNAME} -name 'AppletRun' | xargs chmod a+x >/dev/null 2>&1 > > # set permissions for programs where we have libdir script > if [ -f ${D}/usr/lib/rox/${APPNAME}/libdir ]; then > chmod a+x ${D}/usr/lib/rox/${APPNAME}/libdir > fi > > # set permissions for programs where we have rox_run script (all who using rox-clib ) > if [ -f ${D}/usr/lib/rox/${APPNAME}/rox_run ]; then > chmod a+x ${D}/usr/lib/rox/${APPNAME}/rox_run > fi > > # some programs have choice_install script > if [ -f ${D}/usr/lib/rox/${APPNAME}/choice_install ]; then > chmod a+x ${D}/usr/lib/rox/${APPNAME}/choice_install > fi > > # set permissions on all binares files for compiled programs per arch > if [ -n "$SET_PERM" ]; then > ARCH="`uname -m`" > case $ARCH in > i?86) ARCH=ix86 ;; > esac > PLATFORM="`uname -s`-$ARCH" > chmod -R a+x ${D}/usr/lib/rox/${APPNAME}/${PLATFORM} > fi > > #create a script in bin to run the application from command line > dodir /usr/bin/ > cat >${D}/usr/bin/${APPNAME} <<EOF >#!/bin/sh >exec /usr/lib/rox/${APPNAME}/AppRun "\$@" >EOF > chmod a+x ${D}/usr/bin/${APPNAME} > > #now compile any and all python files > python_mod_optimize $D/usr/lib/rox/${APPNAME} >/dev/null 2>&1 >} > >rox_pkg_postinst() { > einfo "$APPNAME has been installed into /usr/lib/rox" > einfo "You can run it by enter $APPNAME in command line or" > einfo "can run it by pointing Rox file manage to that location" > einfo "and click on new application" >} > >EXPORT_FUNCTIONS src_compile src_install pkg_postinst
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 106774
:
68927
|
68948
|
69059
| 69060