Useful for setting global properties and customising language styling.
I interpret this as suggestion to invoke epatch_user at the end of src_prepare, like this: src_prepare() { cd "${WORKDIR}/scintilla/gtk" sed -i makefile \ -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \ -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \ -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \ -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \ -e "s#-Os##" \ || die "error patching makefile" cd "${WORKDIR}/scite/gtk" sed -i makefile \ -e "s#-rdynamic#-rdynamic ${LDFLAGS}#" \ || die "error patching makefile" cd "${S}" sed -i makefile \ -e 's#usr/local#usr#g' \ -e 's#/gnome/apps/Applications#/applications#' \ -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \ -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \ -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \ -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \ -e 's#${D}##' \ -e 's#-g root#-g 0#' \ -e "s#-Os##" \ || die "error patching makefile" epatch_user # suggested in bug #576162 } Alright? I'd like to provide it with the 3.6.4 ebuild. ervin
Made sense but when I actually tried the new 3.6.5 ebuild found I couldn't get it to work because S="${WORKDIR}/${PN}/gtk" and relative to that directory the file I want to patch is ../src/python.properties. I found that changing src_prepare to: cd "${WORKDIR}" eapply_user worked for me. (unless there is a way to set the patch file path for sibling directories?)
applied in suggested scite-3.6.5-r1 ( bug #583204 ) ervin
Don't think cd "${WORKDIR}" made it into the tree with scite-3.6.5-r1.
(In reply to Chris Mayo from comment #4) > Don't think cd "${WORKDIR}" made it into the tree with scite-3.6.5-r1. Which directory does eapply_user expect?
eapply_user is operating in the current directory, $S for src_prepare. eapply_user doesn't take any arguments leaving the use of cd, or else going back to defining $S as "${WORKDIR}/${PN}".
cd "${WORKDIR}" eapply_user made it in the current 4.0.2 ebuild, too ${WORKDIR} as cwd makes sense, because it allows to patch scintilla too, the basic component - although one might want to patch only scite from ${WORKDIR}/scite as mentioned at the bottom here: https://github.com/gentoo/gentoo/pull/6190 I'd like to close this bug for now as resolved. Thanks to chris. If there is an idea for a better solution, reopen it. Ervin