How would I get this patch into Curses::UI ...

I'd start by looking at section VI of the CPAN FAQ. In this case, the lack of updates since 2011 suggests that you or someone else would probably need to volunteer to take over maintenance of the distribution.

... or how can I set up patches like this so I don't lose them if I reinstall or something?

I don't know how others would do it, but I prefer to keep the installation of packages pretty manual. I create a build script for each module/version that I install, mostly auto-generated by a local script based on the URL of the download package, and then tweak and comment for any idiosyncracies noted when building. So for example I have /src/perl/build/Devel-Debug-DBGp-0.22, which applies the patch from issue #6:

cd /src/perl wget -P archive https://cpan.metacpan.org/authors/id/M/MB/MBARBON/Deve +l-Debug-DBGp-0.22.tar.gz # requires: # ... cd /src/perl zcat archive/Devel-Debug-DBGp-0.22.tar.gz | tar xf - cd /src/perl/Devel-Debug-DBGp-0.22 patch -p0 </src/perl/build/Devel-Debug-DBGp-PUSHMARK.patch cd /src/perl/Devel-Debug-DBGp-0.22 ${PERL} Makefile.PL make all test install cd /src/perl rm -rf Devel-Debug-DBGp-0.22

I usually build things by pasting relevant paragraphs from the build script into a terminal window, but it's easy to stitch these together to recreate a full build.


In reply to Re^4: How to make distribution for simple script with CPAN dependencies? by hv
in thread How to make distribution for simple script with CPAN dependencies? by peteyboy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.