summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2006-01-22 16:45:30 +0000
committertonio <tonio@pkgsrc.org>2006-01-22 16:45:30 +0000
commit4cd1f89b6b8d636265ae24cd374fe5d819617571 (patch)
treea02a9d7485884d4aa28ed338fb546609110f1e21 /print
parent214d81075cdab74cd662ec6cb61d521a39830c34 (diff)
downloadpkgsrc-4cd1f89b6b8d636265ae24cd374fe5d819617571.tar.gz
move the PLIST SUBST from tex.buildlink3.mk to tetex?-bin/buildlink3.mk
This should fix bulk build for teTeX1 packages
Diffstat (limited to 'print')
-rw-r--r--print/teTeX-bin/buildlink3.mk10
-rw-r--r--print/teTeX1-bin/buildlink3.mk10
-rw-r--r--print/teTeX3-bin/buildlink3.mk10
3 files changed, 27 insertions, 3 deletions
diff --git a/print/teTeX-bin/buildlink3.mk b/print/teTeX-bin/buildlink3.mk
index 9d4fbdfcfd8..5e9eefa1937 100644
--- a/print/teTeX-bin/buildlink3.mk
+++ b/print/teTeX-bin/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2006/01/08 14:00:12 tonio Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2006/01/22 16:45:30 tonio Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
TETEX_BIN_BUILDLINK3_MK:= ${TETEX_BIN_BUILDLINK3_MK}+
@@ -19,5 +19,13 @@ TEX=tex
PDFTEX=pdftex
PKG_TEXMFPREFIX= ${PREFIX}/share/texmf
PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf
+PLIST_SUBST+= PKG_TEXMFPREFIX=${PKG_TEXMFPREFIX:C|^${PREFIX}/||}
+PLIST_SUBST+= PKG_LOCALTEXMFPREFIX=${PKG_LOCALTEXMFPREFIX:C|^${PREFIX}/||}
+
+PRINT_PLIST_AWK+= /^@dirrm ${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}(\/bibtex(\/bib|\/bst)?|\/tex(\/latex)?)?$$/ \
+ { next; }
+PRINT_PLIST_AWK+= /^(@dirrm )?${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/ \
+ { gsub(/${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, "$${PKG_LOCALTEXMFPREFIX}"); \
+ print; next; }
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/print/teTeX1-bin/buildlink3.mk b/print/teTeX1-bin/buildlink3.mk
index d4ea0e0bf01..3f2ab55514c 100644
--- a/print/teTeX1-bin/buildlink3.mk
+++ b/print/teTeX1-bin/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.3 2006/01/08 14:00:12 tonio Exp $
+# $NetBSD: buildlink3.mk,v 1.4 2006/01/22 16:45:30 tonio Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
TETEX_BIN_BUILDLINK3_MK:= ${TETEX_BIN_BUILDLINK3_MK}+
@@ -18,5 +18,13 @@ BUILDLINK_PKGSRCDIR.teTeX-bin?= ../../print/teTeX1-bin
PKG_TEXMFPREFIX= ${PREFIX}/share/texmf
PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf
+PLIST_SUBST+= PKG_TEXMFPREFIX=${PKG_TEXMFPREFIX:C|^${PREFIX}/||}
+PLIST_SUBST+= PKG_LOCALTEXMFPREFIX=${PKG_LOCALTEXMFPREFIX:C|^${PREFIX}/||}
+
+PRINT_PLIST_AWK+= /^@dirrm ${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}(\/bibtex(\/bib|\/bst)?|\/tex(\/latex)?)?$$/ \
+ { next; }
+PRINT_PLIST_AWK+= /^(@dirrm )?${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/ \
+ { gsub(/${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, "$${PKG_LOCALTEXMFPREFIX}"); \
+ print; next; }
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/print/teTeX3-bin/buildlink3.mk b/print/teTeX3-bin/buildlink3.mk
index 2e4c6f9e7c2..822d7305308 100644
--- a/print/teTeX3-bin/buildlink3.mk
+++ b/print/teTeX3-bin/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.3 2006/01/08 14:00:12 tonio Exp $
+# $NetBSD: buildlink3.mk,v 1.4 2006/01/22 16:45:30 tonio Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
TETEX_BIN_BUILDLINK3_MK:= ${TETEX_BIN_BUILDLINK3_MK}+
@@ -21,5 +21,13 @@ PDFTEX=pdfetex
PKG_TEXMFPREFIX= ${PREFIX}/share/texmf
#PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf-local
PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf
+PLIST_SUBST+= PKG_TEXMFPREFIX=${PKG_TEXMFPREFIX:C|^${PREFIX}/||}
+PLIST_SUBST+= PKG_LOCALTEXMFPREFIX=${PKG_LOCALTEXMFPREFIX:C|^${PREFIX}/||}
+
+PRINT_PLIST_AWK+= /^@dirrm ${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}(\/bibtex(\/bib|\/bst)?|\/tex(\/latex)?)?$$/ \
+ { next; }
+PRINT_PLIST_AWK+= /^(@dirrm )?${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/ \
+ { gsub(/${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, "$${PKG_LOCALTEXMFPREFIX}"); \
+ print; next; }
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}