Bug 96173 - [MAINTAINER] devel/p5-Locale-Maketext-Simple: fix build on 4.x
Summary: [MAINTAINER] devel/p5-Locale-Maketext-Simple: fix build on 4.x
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cheng-Lung Sung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 03:20 UTC by Rong-En Fan
Modified: 2006-04-24 07:05 UTC (History)
0 users

See Also:


Attachments
p5-Locale-Maketext-Simple-0.13.patch (540 bytes, patch)
2006-04-23 03:20 UTC, Rong-En Fan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rong-En Fan 2006-04-23 03:20:13 UTC
On 4.x, we have Perl 5.005 and it fails on Makefile.PL.
Though this module does not advertise it requires newer perl,
I think it's better to make it build on old 4.x than simply mark
BROKEN.

Generated with FreeBSD Port Tools 0.63

Fix: Require perl from ports on 4.x (and 5.x before perl is removed 
from base).
Comment 1 Cheng-Lung Sung freebsd_committer freebsd_triage 2006-04-23 16:12:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

Grab.
Comment 2 Rong-En Fan 2006-04-23 17:28:17 UTC
Oops, I sent think wrong one. What I mean is the following one.
This forces user to use perl >= 5.6 to use this module.
Note that this module does not advertise it requires newer perl,
but it fails. The author has been informed, until a fix is found.
Make this port requires newer perl as workaround.

diff -ruN --exclude=CVS /usr/ports/devel/p5-Locale-Maketext-Simple/Makefile /home/rafan/tmp/ports/p5-Locale-Maketext-Simple/Makefile
--- /usr/ports/devel/p5-Locale-Maketext-Simple/Makefile	Wed Apr 19 03:50:11 2006
+++ /home/rafan/tmp/ports/p5-Locale-Maketext-Simple/Makefile	Sun Apr 23 23:23:32 2006
@@ -19,4 +19,10 @@
 
 MAN3=		Locale::Maketext::Simple.3
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE=		requires Perl 5.6.x or later. Install lang/perl5 then try again.
+.endif
+
+.include <bsd.port.post.mk>
Comment 3 Cheng-Lung Sung freebsd_committer freebsd_triage 2006-04-24 07:05:30 UTC
State Changed
From-To: open->closed

Committed. Thank You.