Subject: Re: pkg/34548 possible solution
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Mark E. Perkins <perkinsm@bway.net>
List: pkgsrc-bugs
Date: 06/12/2007 22:25:03
The following reply was made to PR pkg/34548; it has been noted by GNATS.
From: "Mark E. Perkins" <perkinsm@bway.net>
To: gnats-bugs@netbsd.org
Cc: joerg@britannica.bec.de, "Mark E. Perkins" <perkinsm@bway.net>
Subject: Re: pkg/34548 possible solution
Date: Tue, 12 Jun 2007 18:23:57 -0400
joerg@britannica.bec.de wrote:
> I'd prefer to do:
>
>
> REQPKG.jadetex= tex-jadetex>=3.13
> REQPKG.gs= ghostscript{,-esp,-gnu}{,-nox11}>=7.05
>
>
> REQPKGS_PRINT= ${REQPKG.jadetex:Q} ${REQPKG.gs:Q}
>
>
> and change the loop to
> for T in ${REQPKGS_PRINT}; do
>
>
> Can you try that?
That works, and I prefer it, too. ;-)
To be absolutely clear about what I did, here's a patch for the above.
================================================================
--- ../htdocs/share/mk/doc.docbook.mk.orig 2007-06-12 18:01:21.000000000
-0400
+++ ../htdocs/share/mk/doc.docbook.mk 2007-06-12 17:59:28.000000000 -0400
@@ -57,7 +57,9 @@
REQPKGS_COMMON= docbook>=4.0 docbook-xml>=4.0 opensp>=1.5
REQPKGS_XSL= libxslt>=1.0.30 docbook-xsl>=1.62.4
REQPKGS_DSSSL= openjade>=1.3.2 dsssl-docbook-modular>=1.54
-REQPKGS_PRINT?= tex-jadetex>=3.13 ghostscript{,-esp,-gnu}{,-nox11}>=7.05
+REQPKG.jadetex= tex-jadetex>=3.13
+REQPKG.gs= ghostscript{,-esp,-gnu}{,-nox11}>=7.05
+REQPKGS_PRINT= ${REQPKG.jadetex:Q} ${REQPKG.gs:Q}
REQPKGS_ASCII= w3m>=0.4
.if defined(NO_TIDY) && empty(NO_TIDY:M[Yy][Ee][Ss])
REQPKGS_HTML= tidy>=20021108
@@ -66,7 +68,7 @@
.BEGIN:
@echo -n "[Checking tools for typesetting..."
@(missing=""; \
- for T in ${REQPKGS:S,<,\\<,:S,>,\\>,}; do \
+ for T in ${REQPKGS_PRINT}; do \
if ! ${PKG_INFO} -e $${T} > /dev/null 2>&1; then \
missing="$${missing} $${T}";\
fi; \