Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#43037 closed submission (fixed)

[NEW] p5-plack

Reported by: jul_bsd@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mojca (Mojca Miklavec)
Port: p5-plack

Description

Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)

Attachments (2)

Portfile.2 (1.4 KB) - added by mf2k (Frank Schima) 6 years ago.
Portfile (1.5 KB) - added by jul_bsd@… 6 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Requires #43038.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

This portfile is very different than the output of cpan2port.

Changed 6 years ago by mf2k (Frank Schima)

Attachment: Portfile.2 added

comment:3 Changed 6 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:4 Changed 6 years ago by jul_bsd@…

when I do a cpan2port

$ cpan2port -t Plack
[...]
All tests successful.
Files=11, Tests=110,  3 wallclock secs ( 0.08 usr  0.03 sys +  1.59 cusr  0.42 csys =  2.12 CPU)
Result: PASS
STFUError bootstrapping local::lib: Can't locate object method "optprint" via package "STFU" at /opt/local/lib/perl5/5.16.3/CPAN.pm line 1348.

Plack is not perl porter
Plack (no description available)
Plack will show deps
(((Can't locate object method "optprint" via package "STFU" at /opt/local/lib/perl5/5.16.3/CPAN.pm line 1348.
))) at /opt/local/bin/cpan2port line 343.
        main::foreach_pkg('CODE(0x7fc5bb004ee8)') called at /opt/local/bin/cpan2port line 368

manually adding depencies get a hell of new one ... at least, discovering cpan2port helps a lot (would be a nice addition to macports guide) joined Portfile. I will create other tickets in coming days

comment:5 Changed 6 years ago by mojca (Mojca Miklavec)

Btw: I'm having some problems with dependencies acquired from cpan2port. I'm not sure they are fully reliable. I also opened a ticket to suggest some changes to cpan2port, but further improvements are needed.

I need to go to bed now, but for the future:

  • delete revision 0; it's usually never added unless revision is > 0
  • please try to split dependencies into one dependency per line, for example:
        depends_lib-append \
                        port:p${perl5.major}-file-sharedir-install \
                        port:p${perl5.major}-psgi \
                        port:p${perl5.major}-test-requires \
                        ...
    

comment:6 Changed 6 years ago by jul_bsd@…

ok. here another Portfile with requested changes (really need a documentation update to know all that at first...)

comment:7 Changed 6 years ago by jul_bsd@…

  • v1.0033

Changed 6 years ago by jul_bsd@…

Attachment: Portfile added

comment:8 Changed 6 years ago by mf2k (Frank Schima)

$ sudo port install p5.16-plack
--->  Computing dependencies for p5.16-plack
Error: Dependency 'p5.16-apache-logformat-compiler' not found.

comment:9 Changed 6 years ago by jul_bsd@…

Ticket #44687

comment:10 Changed 6 years ago by mojca (Mojca Miklavec)

I had problems testing the module because of missing dependency on p${perl5.major}-file-sharedir.

comment:11 Changed 6 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed

I committed r129327. Someone should figure out what to do about file-sharedir though.

comment:12 Changed 6 years ago by dbevans (David B. Evans)

Dependencies updated using META.json as a guide in r129547. This revealed that p5-file-sharedir-install is required for configuration and p5-file-sharedir is required at run time and for testing. Now passes all tests. Revision incremented to force rebuild with updated depenedencies.

comment:13 Changed 6 years ago by jul_bsd@…

Thanks Mojca & Devans!

Note: See TracTickets for help on using tickets.