pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/p5-Text-Markdown-Discount Revert previous and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ab11a56484c6
branches:  trunk
changeset: 359808:ab11a56484c6
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Mar 18 19:06:19 2017 +0000

description:
Revert previous and replace with a Darwin-specific workaround.

As joerg@ pointed out, this is not a cwrappers problem. Indeed, the
package had not been broken on NetBSD 7.x. Not sure how I jumped to my
wrong conclusion.

Instead, have the package instruct the cpp wrapper to run "/usr/bin/cpp"
on Darwin rather than the usual "clang -E". This is still a little odd,
but much less wrong, and fixes the Darwin build just as well.

diffstat:

 textproc/p5-Text-Markdown-Discount/Makefile                  |  10 +++++--
 textproc/p5-Text-Markdown-Discount/distinfo                  |   3 +-
 textproc/p5-Text-Markdown-Discount/patches/patch-Makefile.PL |  15 ------------
 3 files changed, 8 insertions(+), 20 deletions(-)

diffs (63 lines):

diff -r a45664fbdc6c -r ab11a56484c6 textproc/p5-Text-Markdown-Discount/Makefile
--- a/textproc/p5-Text-Markdown-Discount/Makefile       Sat Mar 18 18:18:45 2017 +0000
+++ b/textproc/p5-Text-Markdown-Discount/Makefile       Sat Mar 18 19:06:19 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2017/03/17 17:30:33 schmonz Exp $
+# $NetBSD: Makefile,v 1.14 2017/03/18 19:06:19 schmonz Exp $
 #
 
 DISTNAME=              Text-Markdown-Discount-0.11
@@ -12,13 +12,17 @@
 COMMENT=               Convert Markdown to (X)HTML
 LICENSE=               ${PERL5_LICENSE}
 
-BUILD_DEPENDS+=                tradcpp-[0-9]*:../../devel/tradcpp
-
 PERL5_PACKLIST=                auto/Text/Markdown/Discount/.packlist
 USE_LANGUAGES=         c
 
 MAKE_JOBS_SAFE=                no
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+PKG_CPP=               /usr/bin/cpp
+.endif
+
 post-extract:
        cd ${WRKSRC} && mv discount/VERSION discount/MYVERSION
 
diff -r a45664fbdc6c -r ab11a56484c6 textproc/p5-Text-Markdown-Discount/distinfo
--- a/textproc/p5-Text-Markdown-Discount/distinfo       Sat Mar 18 18:18:45 2017 +0000
+++ b/textproc/p5-Text-Markdown-Discount/distinfo       Sat Mar 18 19:06:19 2017 +0000
@@ -1,10 +1,9 @@
-$NetBSD: distinfo,v 1.8 2017/03/17 17:30:33 schmonz Exp $
+$NetBSD: distinfo,v 1.9 2017/03/18 19:06:19 schmonz Exp $
 
 SHA1 (Text-Markdown-Discount-0.11.tar.gz) = cd0b2bdc3479f90a0f3e68421984bb47f015d1d2
 RMD160 (Text-Markdown-Discount-0.11.tar.gz) = a4484f181746789b7bfb7c0faa95011bb374e383
 SHA512 (Text-Markdown-Discount-0.11.tar.gz) = 0f748330f76cfd5153f9bcd8bb9f1f67732657a2ee511a7ca7f0f4d9e29a085ad97373b8716d7c7436d2b6f262e8d8223393664a9c079c63b16ea417cb5c0614
 Size (Text-Markdown-Discount-0.11.tar.gz) = 177087 bytes
 SHA1 (patch-MANIFEST) = 3fcc9d2a3e827d3df3c80c13727a4cc89a62feb0
-SHA1 (patch-Makefile.PL) = a3df84ae13d1c901de1812ddc3425c66fb355b5d
 SHA1 (patch-configure.sh) = 244ae32f085b4587fc777aaabcc63735f74cef43
 SHA1 (patch-discount_Makefile.in) = 40bbbb1ef6c0a38d04cbfab618480b504614a125
diff -r a45664fbdc6c -r ab11a56484c6 textproc/p5-Text-Markdown-Discount/patches/patch-Makefile.PL
--- a/textproc/p5-Text-Markdown-Discount/patches/patch-Makefile.PL      Sat Mar 18 18:18:45 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-Makefile.PL,v 1.1 2017/03/17 17:30:33 schmonz Exp $
-
-cwrappers don't like piping to cpp. Work around this.
-
---- Makefile.PL.orig   2013-08-09 20:06:59.000000000 +0000
-+++ Makefile.PL
-@@ -61,7 +61,7 @@ sub MY::postamble {
-     return sprintf('
- $(MYEXTLIB):
-       %s
--', qq{( cd $extdir; CC='cc -fPIC' sh configure.sh; make )\n});
-+', qq{( cd $extdir; CC='cc -fPIC' AC_CPP_PROG='tradcpp' sh configure.sh; make )\n});
- }
- 
- WriteMakefile(



Home | Main Index | Thread Index | Old Index