Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69902 Details for
Bug 108157
rox.eclass enhancements and fixups
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rox.eclass.patch
rox.eclass.patch (text/plain), 3.31 KB, created by
Peter Hyman
on 2005-10-05 01:51:02 UTC
(
hide
)
Description:
rox.eclass.patch
Filename:
MIME Type:
Creator:
Peter Hyman
Created:
2005-10-05 01:51:02 UTC
Size:
3.31 KB
patch
obsolete
>--- /usr/portage/eclass/rox.eclass 2005-09-25 12:05:36.000000000 -0400 >+++ rox.eclass 2005-10-05 04:40:24.000000000 -0400 >@@ -6,34 +6,36 @@ > > # This eclass was created by Sergey Kuleshov (svyatogor@gentoo.org) and > # Alexander Simonov (devil@gentoo.org.ua) to ease installation of ROX desktop >-# applications. >+# applications. Enhancements and python additions by Peter Hyman. > > # 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 >+# note: user no longer has to set SET_PERM in ebuild files since the eclass >+# will now detect when it has to chmod on-the-fly > > # For examples refer to ebuilds in rox-extra/ > > # need python to byte compile modules, if any > inherit python > >-if [ -z "$ROX_VER" ]; then >+if [ -z "${ROX_VER}" ]; then > ROX_VER="2.1.0" > fi > > DEPEND="${DEPEND} >- >=rox-base/rox-$ROX_VER" >+ >=rox-base/rox-${ROX_VER}" > >-if [ -n "$ROX_LIB_VER" ]; then >+if [ -n "${ROX_LIB_VER}" ]; then > DEPEND="${DEPEND} >- >=rox-base/rox-lib-$ROX_LIB_VER" >+ >=rox-base/rox-lib-${ROX_LIB_VER}" > fi > >-if [ -n "$ROX_CLIB_VER" ]; then >+if [ -n "${ROX_CLIB_VER}" ]; then > DEPEND="${DEPEND} >- >=rox-base/rox-clib-$ROX_CLIB_VER" >+ >=rox-base/rox-clib-${ROX_CLIB_VER}" > fi > > >@@ -44,20 +46,23 @@ > if [ -d "src/" ]; then > ./AppRun --compile || die "Failed to compile the package" > rm -rf src >+ # set permissions flag here! >+ SET_PERM=true > fi > } > > rox_src_install() { >- if [ -d "$APPNAME/Help/" ]; then >- for i in $APPNAME/Help/*; do >- dodoc "$i" >+ 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 755 >/dev/null 2>&1 >+ find ${D}/usr/lib/rox/${APPNAME} -name 'AppRun' | xargs chmod 755 >/dev/null 2>&1 > find ${D}/usr/lib/rox/${APPNAME} -name 'AppletRun' | xargs chmod 755 >/dev/null 2>&1 > > # set permissions for programs where we have libdir script >@@ -76,12 +81,12 @@ > fi > > # set permissions on all binares files for compiled programs per arch >- if [ -n "$SET_PERM" ]; then >+ if [ -n "${SET_PERM}" ]; then > ARCH="`uname -m`" >- case $ARCH in >+ case ${ARCH} in > i?86) ARCH=ix86 ;; > esac >- PLATFORM="`uname -s`-$ARCH" >+ PLATFORM="`uname -s`-${ARCH}" > chmod -R 755 ${D}/usr/lib/rox/${APPNAME}/${PLATFORM} > fi > >@@ -98,10 +103,11 @@ > } > > 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" >+ einfo "${APPNAME} has been installed into /usr/lib/rox" >+ einfo "You can run it by typing ${APPNAME} at the command line." >+ einfo "Or, you can run it by pointing the ROX file manager to the" >+ einfo "install location -- /usr/lib/rox/${APPNAME} -- and click" >+ einfo "on ${APPNAME}'s icon, drag it to a panel, desktop, etc." > } > > 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 108157
:
69901
|
69902
|
71796