Changeset 671


Ignore:
Timestamp:
Mar 1, 2013, 6:02:20 PM (8 years ago)
Author:
zerodeux
Message:

Replace old make+wget+cpan method with modern local::lib + cpanminus

Location:
bearmail
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • bearmail/Makefile

    r646 r671  
    3333deb:
    3434        dpkg-buildpackage -rfakeroot -uc -us -A
    35 
    36 
    37 CPAN_MODULES= \
    38     http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/CGI-Application-4.31.tar.gz \
    39     http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/CGI-Application-Dispatch-2.17.tar.gz \
    40     http://search.cpan.org/CPAN/authors/id/T/TH/THILO/CGI-Application-Plugin-AutoRunmode-0.17.tar.gz \
    41     http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/CGI-Application-Plugin-ConfigAuto-1.32.tar.gz \
    42     http://search.cpan.org/CPAN/authors/id/W/WO/WONKO/CGI-Application-Plugin-ViewCode-1.02.tar.gz \
    43     http://search.cpan.org/CPAN/authors/id/C/CE/CEESHEK/CGI-Application-Plugin-Redirect-1.00.tar.gz \
    44     http://search.cpan.org/CPAN/authors/id/C/CE/CEESHEK/CGI-Application-Plugin-Session-1.03.tar.gz \
    45     http://search.cpan.org/CPAN/authors/id/N/NE/NEKOKAK/CGI-Application-Plugin-DebugScreen-0.06.tar.gz \
    46     http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/UNIVERSAL-require-0.13.tar.gz \
    47     http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Exception-Class-1.30.tar.gz \
    48     http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Exception-Class-TryCatch-1.12.tar.gz \
    49     http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz \
    50     http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Devel-StackTrace-1.22.tar.gz \
    51     http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/CGI-Session-4.42.tar.gz \
    52     http://search.cpan.org/CPAN/authors/id/S/SA/SAMTREGAR/HTML-Template-2.9.tar.gz
    53 
    54 cpan_fetch:
    55         mkdir -p .cache
    56         cd .cache; \
    57             for url in $(CPAN_MODULES); do test -e `basename $$url` || wget -nv -c $$url; done
    58 
    59 cpan_unpack: cpan_fetch
    60         cd .cache; \
    61             for mod in *.tar.gz; do test -d $${mod/.tar.gz/} || tar xzf $$mod; done
    62 
    63 cpan_fixes: cpan_unpack
    64         cd .cache; \
    65         cd CGI-Application-Plugin-AutoRunmode-0.17 && \
    66             mkdir -p lib/CGI/Application/Plugin && \
    67             mv AutoRunmode* lib/CGI/Application/Plugin 2>/dev/null; true
    68         cd .cache; \
    69         cd HTML-Template-2.9 && \
    70             mkdir -p lib/HTML && \
    71             mv Template* lib/HTML 2>/dev/null; true
    72 
    73 cpan_update: cpan_fixes
    74         cd .cache; \
    75         for mod in */lib; do cp -rf $$mod/* ../lib; done
    76 
    77 cpan_clean:
    78         rm -fr .cache
Note: See TracChangeset for help on using the changeset viewer.