summaryrefslogtreecommitdiff
path: root/print/foo2zjs
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-08-10 16:30:53 +0000
committermarino <marino@pkgsrc.org>2012-08-10 16:30:53 +0000
commit01b2d8cff7348f8e8ae330d8b077c8302a482f37 (patch)
treee170a8b1ba84ede278ecd014568b227d2e024e92 /print/foo2zjs
parentc135aa6a664b64dd2e1031b2c5c54360e625c046 (diff)
downloadpkgsrc-01b2d8cff7348f8e8ae330d8b077c8302a482f37.tar.gz
print/foo2zjs: Remove bad dependency check of dc
The package assumes that if the dc program doesn't support -V, it must not support -e either. This is a bad assumption; DragonFly supports -e but doesn't support -V. Rather than try to fix a bad conftest, just remove it completely. There's a previous test for dc presence. If dc doesn't support -e, let it break during the build rather than before it. It doesn't take long to build.
Diffstat (limited to 'print/foo2zjs')
-rw-r--r--print/foo2zjs/distinfo4
-rw-r--r--print/foo2zjs/patches/patch-Makefile18
2 files changed, 19 insertions, 3 deletions
diff --git a/print/foo2zjs/distinfo b/print/foo2zjs/distinfo
index 0a86a38a764..ab279744d17 100644
--- a/print/foo2zjs/distinfo
+++ b/print/foo2zjs/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.1 2012/07/25 17:15:45 imil Exp $
+$NetBSD: distinfo,v 1.2 2012/08/10 16:30:53 marino Exp $
SHA1 (foo2zjs.tar.gz) = c1a3aeb88cca8b284685c3457a7cc33d78319147
RMD160 (foo2zjs.tar.gz) = f24945860e41fda61342a9b867123202ecf82179
Size (foo2zjs.tar.gz) = 1644122 bytes
-SHA1 (patch-Makefile) = f12220eb3b77bafd63386ed7a1018dbacb9ae821
+SHA1 (patch-Makefile) = 8d1971b7c70def74dc68c1943f4a629610860d85
SHA1 (patch-icc2ps_Makefile) = 14dded40d85dcf75428277621b766963be837c12
diff --git a/print/foo2zjs/patches/patch-Makefile b/print/foo2zjs/patches/patch-Makefile
index 1abf8136b42..3bae6fe2e9f 100644
--- a/print/foo2zjs/patches/patch-Makefile
+++ b/print/foo2zjs/patches/patch-Makefile
@@ -1,6 +1,9 @@
-$NetBSD: patch-Makefile,v 1.1 2012/07/25 17:15:45 imil Exp $
+$NetBSD: patch-Makefile,v 1.2 2012/08/10 16:30:53 marino Exp $
Fix PREFIX path
+Remove extra dc check. The DragonFly version has dc that supports the -e
+option, but it doesn't support -V. It's a bad check, the conftest should
+actually test for -e support. Just remove it completely.
--- Makefile.orig 2012-06-01 23:10:31.000000000 +0000
+++ Makefile
@@ -24,3 +27,16 @@ Fix PREFIX path
DOCDIR=$(PREFIX)/share/doc/foo2zjs/
INSTALL=install
ROOT=root
+@@ -409,12 +407,6 @@ all-test:
+ echo " ***"; \
+ exit 1; \
+ fi
+- @if ! dc -V >/dev/null 2>&1; then \
+- echo " ***"; \
+- echo " *** Error: must install GNU dc with the -e option!"; \
+- echo " ***"; \
+- exit 1; \
+- fi
+ ifeq ($(UNAME),Darwin)
+ @if ! type gsed >/dev/null 2>&1; then \
+ echo " ***"; \