John Ridgway wrote: > No, you can't use %p in a patch file. The preferred method, > apparently, is to put something like: > @PREFIX@ in the patch file where you would want %p, then use: > > PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1 > > OK, that's "righter" than what I had. :-) I think you'd need
PatchScript: sed -i -e 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1 though. > in your .info file. > > See the packaging manual. > > Peace > - John > > > On Sep 18, 2007, at 11:10 AM, Koen van der Drift wrote: > > >> Hi, >> >> Is it possible to use %p in a patch file? I vaguely remember a >> while ago there was a reason not to do this, but I forgot exactly >> what. I haven't been following the latest developments of the >> project either, so I don't know if this has been changed. >> >> Basically, what I need to do is to update some paths in makefile.pl >> so that it can find the right headers and libraries. Adding a patch >> file in this case (IMHO) is much easier than to add a Patch field >> in the info file. Unless someone knows a good way to change using >> the Patch field: >> >> if (-d "$EMB_ROOT/include") { >> $EMB_INC = "-I$EMB_ROOT/include"; >> } >> >> into this: >> >> if (-d "$EMB_ROOT/include") { >> $EMB_INC = "-I/%p/include/EMBOSS -I/%p/include/eplplot"; >> } >> >> >> thanks, >> >> - Koen. >> >> >> >> -- Alexander K. Hansen Fink User Liaison/Documenter akh AT finkproject DOT org ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel