summaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-06-17 02:37:15 +0000
committerwill <will@FreeBSD.org>2000-06-17 02:37:15 +0000
commit6dd7168cddcf03645b7b524d0eaec762ba4a5c26 (patch)
treedde5ee054b255f449dc09b875bfef1cb678c4d3e /textproc
parent09860925596143f36628cd7f462f54e90412d7ae (diff)
downloadFreeBSD-ports-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.zip
FreeBSD-ports-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.tar.gz
Lots and lots of cleanups. Teach p5-* in general about PKGNAMEPREFIX.
Add some missing/wrong dependencies. Show how to respect CC/CFLAGS. Many miscellaneous modifications. I used more excessive hacks to force p5-Jcode and p5-WWW-Search to respect CC/CFLAGS. Patches largely done by: Christian Weisgerber <naddy@mips.inka.de>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-Text-CSV_XS/Makefile9
-rw-r--r--textproc/p5-XML-DOM/Makefile8
-rw-r--r--textproc/p5-XML-Parser/Makefile9
3 files changed, 15 insertions, 11 deletions
diff --git a/textproc/p5-Text-CSV_XS/Makefile b/textproc/p5-Text-CSV_XS/Makefile
index 4997f6b..5f12c02 100644
--- a/textproc/p5-Text-CSV_XS/Makefile
+++ b/textproc/p5-Text-CSV_XS/Makefile
@@ -5,21 +5,22 @@
# $FreeBSD$
#
-PORTNAME= p5-Text-CSV_XS
+PORTNAME= Text-CSV_XS
PORTVERSION= 0.20
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Text
-DISTNAME= Text-CSV_XS-0.20
+PKGNAMEPREFIX= p5-
MAINTAINER= ache@FreeBSD.org
-USE_PERL5= YES
+USE_PERL5= yes
MAN3= Text::CSV_XS.3
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
do-configure:
- @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL \
+ CC="${CC}" CCFLAGS="${CFLAGS}"
.include <bsd.port.mk>
diff --git a/textproc/p5-XML-DOM/Makefile b/textproc/p5-XML-DOM/Makefile
index cfd4316..534fed7 100644
--- a/textproc/p5-XML-DOM/Makefile
+++ b/textproc/p5-XML-DOM/Makefile
@@ -5,18 +5,18 @@
# $FreeBSD$
#
-PORTNAME= p5-XML-DOM
+PORTNAME= XML-DOM
PORTVERSION= 1.25
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
-MASTER_SITE_SUBDIR= ../../authors/id/E/EN/ENNO
-DISTNAME= XML-DOM-1.25
+MASTER_SITE_SUBDIR= XML
+PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
-USE_PERL5= YES
+USE_PERL5= yes
MAN3= XML::DOM.3
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
diff --git a/textproc/p5-XML-Parser/Makefile b/textproc/p5-XML-Parser/Makefile
index 5d1a51b..83869b6 100644
--- a/textproc/p5-XML-Parser/Makefile
+++ b/textproc/p5-XML-Parser/Makefile
@@ -10,17 +10,20 @@ PORTVERSION= 2.28
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
http://wwwx.netheaven.com/~coopercc/xmlparser/
-MASTER_SITE_SUBDIR= ../by-authors/id/C/CO/COOPERCL
+MASTER_SITE_SUBDIR= XML
PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
-USE_PERL5= YES
+USE_PERL5= yes
MAN3= XML::Parser.3 XML::Parser::Expat.3
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
do-configure:
- @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL \
+ CC="${CC}" CCFLAGS="${CFLAGS}"
+ @${PERL} -i -pe 's/^(CC = ).*/$$1 ${CC}/;' \
+ -e 's/^(CCFLAGS = ).*/$$1 ${CFLAGS}/' ${WRKSRC}/Expat/Makefile
.include <bsd.port.mk>
OpenPOWER on IntegriCloud