Opened 13 years ago

Last modified 12 years ago

#33816 new submission

Port Request: Perl DateTime::Format::ICal

Reported by: mac@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: p5-datetime-format-ical

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi, I'd really appreciate a port of the Perl module "DateTime::Format::ICal".

I tried following the instructions on the Wiki page "howto/cpan2port", but to no avail. I've generated a portfile, but it fails with this error:

$ port build
Warning: MacPorts running without privileges. You may be unable to complete certain actions (e.g. install).
--->  Computing dependencies for p5-datetime-format-ical
Error: Dependency 'p5.12-datetime-format-ical' not found.
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

In case it helps, I've attached the portfile that I generated with cpan2port.

I'd appreciate a port, of course, but also any pointers on what I did wrong when trying to port it myself. I'd happily contribute any (successful) port if I run into another Perl module in the future.

Attachments (2)

Portfile (974 bytes) - added by mac@… 13 years ago.
portfile generated with "./cpan2port -t DateTime::Format::ICal"
portfiles.zip (4.3 KB) - added by mac@… 13 years ago.
.zip file containing portfiles for Datetime::Event::ICal and its dependencies that haven't yet been ported

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by mac@…

Attachment: Portfile added

portfile generated with "./cpan2port -t DateTime::Format::ICal"

comment:1 in reply to:  description Changed 13 years ago by mac@…

Grr, sorry about the formatting. I should have read the guide a bit better.

I can do one better; I tried to track down unsatisfied dependencies that weren't ported yet. I'll attach a .zip file of all of the resulting portfiles. Note that I still can't seem to build any of them; each time, it fails because it can't find a "p5.12-*" dependency...

For pedantry's sake, this was the error message I originally got:

$ port build
Warning: MacPorts running without privileges. You may be unable to complete certain actions (e.g. install).
--->  Computing dependencies for p5-datetime-format-ical
Error: Dependency 'p5.12-datetime-format-ical' not found.
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Changed 13 years ago by mac@…

Attachment: portfiles.zip added

.zip file containing portfiles for Datetime::Event::ICal and its dependencies that haven't yet been ported

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Try:

sudo port build subport=p5.12-datetime-format-ical

comment:4 Changed 13 years ago by mac@…

Thanks for that tip! I was able to build and install the Perl module and the modules which it depends on, but I had to modify the portfiles to change the "depends_lib-append" list to refer to "p5.12-*" ports instead of more-generic "p5-*" ports for all the modules that I built.

Is there a better way to have done this, so that the modules are "p5-" prefixed? I'm not sure what the preferred way of doing things is.

Also, should I submit all the portfiles to this one ticket, or open a new ticket for each one? There are five dependencies total, all needed to build DateTime::Format::ICal. Hoping that my work can lead to these being added to the default ports tree...

comment:5 Changed 12 years ago by jmroot (Joshua Root)

I guess cpan2port doesn't know about subports yet. You need to do the dependencies like this:

if {${perl5.major} != ""} {
    depends_lib-append  port:p${perl5.major}-datetime \
	                    port:p${perl5.major}-datetime-event-ical \
                            ...
}

comment:6 Changed 12 years ago by jmroot (Joshua Root)

Type: requestsubmission
Version: 2.0.4
Note: See TracTickets for help on using tickets.