pkgsrc-WIP-changes archive

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

tex-blindtext: use the options framework for language-support dependencies.



Module Name:	pkgsrc-wip
Committed By:	Jim Bernard <jbernard%mines.edu@localhost>
Pushed By:	jimb
Date:		Sun May 1 13:45:21 2016 -0600
Changeset:	cc2745561b26cf91b658ca83b583507082b5cd69

Modified Files:
	tex-blindtext/DESCR
	tex-blindtext/Makefile
Added Files:
	tex-blindtext/options.mk

Log Message:
tex-blindtext: use the options framework for language-support dependencies.

Added file options.mk.
Include options.mk in Makefile.
Remove mention of language-support prerequisites in DESCR.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cc2745561b26cf91b658ca83b583507082b5cd69

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tex-blindtext/DESCR      |  4 +---
 tex-blindtext/Makefile   |  1 +
 tex-blindtext/options.mk | 18 ++++++++++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diffs:
diff --git a/tex-blindtext/DESCR b/tex-blindtext/DESCR
index 4914d84..86f91df 100644
--- a/tex-blindtext/DESCR
+++ b/tex-blindtext/DESCR
@@ -4,6 +4,4 @@ paragraphs, nested lists, mathematics, and entire documents containing
 sections, lists, mathematics, and table of contents.  Supported languages
 include, english, (n)german, french, catalan, and latin; the latin option
 provides a short "lorem ipsum" (for a longer lorem ipsum text, see the
-lipsum package).  Each language requires either the babel package plus
-the corresponding babel language package, or the polyglossia package (if
-using LuaLaTeX or XeLaTeX).
+lipsum package).
diff --git a/tex-blindtext/Makefile b/tex-blindtext/Makefile
index 9ba77a4..41cc208 100644
--- a/tex-blindtext/Makefile
+++ b/tex-blindtext/Makefile
@@ -14,4 +14,5 @@ LICENSE=	lppl-1.3c
 USE_LANGUAGES=	# none
 
 .include "../../print/texlive/package.mk"
+.include "options.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/tex-blindtext/options.mk b/tex-blindtext/options.mk
new file mode 100644
index 0000000..6961dcd
--- /dev/null
+++ b/tex-blindtext/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.tex-blindtext
+BLINDTEXT_LANGUAGES=	catalan english french german latin
+PKG_SUPPORTED_OPTIONS+=	$(BLINDTEXT_LANGUAGES) polyglossia
+PKG_SUGGESTED_OPTIONS+=	english
+
+.include "../../mk/bsd.options.mk"
+
+.for l in $(BLINDTEXT_LANGUAGES)
+.if !empty(PKG_OPTIONS:M$(l))
+DEPENDS+=	tex-babel-$(l)-[0-9]*:../../print/tex-babel-$(l)
+.endif
+.endfor
+
+.if !empty(PKG_OPTIONS:Mpolyglossia)
+DEPENDS+=	tex-polyglossia-[0-9]*:../../print/tex-polyglossia
+.endif


Home | Main Index | Thread Index | Old Index