diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-10-05 00:13:02 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-10-05 00:13:02 +0000 |
commit | 7cfbde2ebf2fb0adce15cdd16c3ae32d63493ea9 (patch) | |
tree | 48b8bce2ff59ca210ec58a3d8316a6575e35760a /dev-perl/HTML-Parser | |
parent | Removed Daniels latest changes, since they don't work (diff) | |
download | gentoo-2-7cfbde2ebf2fb0adce15cdd16c3ae32d63493ea9.tar.gz gentoo-2-7cfbde2ebf2fb0adce15cdd16c3ae32d63493ea9.tar.bz2 gentoo-2-7cfbde2ebf2fb0adce15cdd16c3ae32d63493ea9.zip |
*** empty log message ***
Diffstat (limited to 'dev-perl/HTML-Parser')
-rw-r--r-- | dev-perl/HTML-Parser/HTML-Parser-3.10.ebuild | 37 | ||||
-rw-r--r-- | dev-perl/HTML-Parser/files/Makefile.PL | 53 | ||||
-rw-r--r-- | dev-perl/HTML-Parser/files/digest-HTML-Parser-3.10 | 1 | ||||
-rw-r--r-- | dev-perl/HTML-Parser/files/digest-HTML-Parser-3.13 | 1 |
4 files changed, 54 insertions, 38 deletions
diff --git a/dev-perl/HTML-Parser/HTML-Parser-3.10.ebuild b/dev-perl/HTML-Parser/HTML-Parser-3.10.ebuild deleted file mode 100644 index b276dcfe07c4..000000000000 --- a/dev-perl/HTML-Parser/HTML-Parser-3.10.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTML-Parser/HTML-Parser-3.10.ebuild,v 1.2 2000/09/15 20:08:49 drobbins Exp $ - -P=HTML-Parser-3.10 -A=${P}.tar.gz -S=${WORKDIR}/${P} -CATEGORY="dev-perl" -DESCRIPTION="A HTML parser Perl Module" -SRC_URI="http://cpan.valueclick.com/modules/by-category/15_World_Wide_Web_HTML_HTTP_CGI/HTML/${A}" -HOMEPAGE="http://cpan.valueclick.com/modules/by-category/15_World_Wide_Web_HTML_HTTP_CGI/HTML/${P}.readme" - - -src_compile() { - - cd ${S} - perl Makefile.PL $PERLINSTALL - try make - try make test -} - -src_install () { - - cd ${S} - try make install - prepman - dodoc ANNOUNCEMENT Changes MANIFEST README TODO - -} - - - - - - - diff --git a/dev-perl/HTML-Parser/files/Makefile.PL b/dev-perl/HTML-Parser/files/Makefile.PL new file mode 100644 index 000000000000..a9fc444b7e65 --- /dev/null +++ b/dev-perl/HTML-Parser/files/Makefile.PL @@ -0,0 +1,53 @@ +require 5.004; +use strict; +use ExtUtils::MakeMaker; + +my @extra; +my @define; +my $ans = "y"; #prompt("Do you want to compile with support for marked sections?", "yes"); +if ($ans =~ /^y(es)?$/i) { + push(@define, "-DMARKED_SECTION"); +} + +if ($] >= 5.006) { + print <<"EOT"; + +Perl-5.6 provide experimental core support for Unicode strings. You +can compile HTML::Entities so that Unicode entities like € and +€ are decoded into a string containing "\\x{20AC}". If you +select no to the question below such entities will be left alone and +only entities in the Latin-1 range is decoded. + +EOT +# my $ans = prompt("Do you want decoding on unicode entities?", "no"); +# if ($ans =~ /^y(es)?$/i) { +# push(@define, "-DUNICODE_ENTITIES"); +# } +} +push(@extra, "DEFINE" => "@define") if @define; + + +WriteMakefile( + NAME => 'HTML::Parser', + VERSION_FROM => 'Parser.pm', + H => [ "hparser.h", "hctype.h", "tokenpos.h", "pfunc.h", + "hparser.c", "util.c", + ], + PREREQ_PM => { + 'HTML::Tagset' => 3, + }, + dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, + @extra, +); + + +sub MY::postamble +{ + ' +pfunc.h : mkpfunc + $(PERL) mkpfunc >pfunc.h + +hctype.h : mkhctype + $(PERL) mkhctype >hctype.h +' +} diff --git a/dev-perl/HTML-Parser/files/digest-HTML-Parser-3.10 b/dev-perl/HTML-Parser/files/digest-HTML-Parser-3.10 deleted file mode 100644 index 59fedcd02728..000000000000 --- a/dev-perl/HTML-Parser/files/digest-HTML-Parser-3.10 +++ /dev/null @@ -1 +0,0 @@ -MD5 a8d95c347d8c7eb6de0a633ff220545e HTML-Parser-3.10.tar.gz diff --git a/dev-perl/HTML-Parser/files/digest-HTML-Parser-3.13 b/dev-perl/HTML-Parser/files/digest-HTML-Parser-3.13 new file mode 100644 index 000000000000..a6511f7f33b5 --- /dev/null +++ b/dev-perl/HTML-Parser/files/digest-HTML-Parser-3.13 @@ -0,0 +1 @@ +MD5 75a61c3207923774d028bebbadee35aa HTML-Parser-3.13.tar.gz |