From f4f73784503345ccdaab85e44895561871af95b6 Mon Sep 17 00:00:00 2001 From: rakuco Date: Fri, 17 Jan 2014 20:10:59 +0000 Subject: - Fix the build when GCC is not present. [1] - Set LICENSE. - USE_DOS2UNIX -> USES=dos2unix PR: ports/183267 [1] Submitted by: Yasuhiro KIMURA Approved by: Naram Qashat (maintainer) MFH: 2014Q1 --- textproc/p5-SGML-Parser-OpenSP/Makefile | 8 ++++++-- textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL | 17 ++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/textproc/p5-SGML-Parser-OpenSP/Makefile b/textproc/p5-SGML-Parser-OpenSP/Makefile index d70f040..020fa0f 100644 --- a/textproc/p5-SGML-Parser-OpenSP/Makefile +++ b/textproc/p5-SGML-Parser-OpenSP/Makefile @@ -11,13 +11,17 @@ PKGNAMEPREFIX= p5- MAINTAINER= cyberbotx@cyberbotx.com COMMENT= Parse SGML documents using OpenSP +# The port's README says the port "is licensed under the same terms as Perl +# itself". +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + BUILD_DEPENDS= onsgmls:${PORTSDIR}/textproc/opensp \ p5-Class-Accessor>=0:${PORTSDIR}/devel/p5-Class-Accessor \ p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception RUN_DEPENDS:= ${BUILD_DEPENDS} -USE_DOS2UNIX= yes -USES= perl5 +USES= dos2unix perl5 USE_PERL5= configure CC= ${CXX} CONFIGURE_ARGS+="INC=-I${LOCALBASE}/include" diff --git a/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL b/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL index 202133a..ad9f61b 100644 --- a/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL +++ b/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL @@ -1,14 +1,17 @@ ---- Makefile.PL.orig 2010-02-07 23:33:39.000000000 +0900 -+++ Makefile.PL 2010-02-07 23:34:03.000000000 +0900 -@@ -15,7 +15,7 @@ +--- Makefile.PL.orig 2013-10-24 16:00:49.000000000 +0900 ++++ Makefile.PL 2013-10-24 16:08:32.000000000 +0900 +@@ -13,9 +13,9 @@ + else + { # assume some compatible Linux - $options{LD} = "g++"; - $options{CC} = "g++"; +- $options{LD} = "g++"; +- $options{CC} = "g++"; - $options{LIBS} = "-lstdc++ -losp"; ++ $options{LD} = "c++"; ++ $options{CC} = "c++"; + $options{LIBS} = "-L%%LOCALBASE%%/lib -lstdc++ -losp"; } - - WriteMakefile( + WriteMakefile( @@ -26,6 +26,10 @@ Test::Exception => 0, File::Temp => 0, -- cgit v1.1