summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLadislav Hagara2010-07-28 17:37:31 +0200
committerLadislav Hagara2010-07-28 17:37:31 +0200
commit064003365db6a7ec5df3b0a13a46a166f5aa1f7c (patch)
treedf59391f62982baf6c2e9a476deb2e0771921962
parent6831945a5adb79b521b20dd866e266c4f6ac5793 (diff)
poppler: added XPDF_HEADERS subdependency
-rw-r--r--graphics-libs/poppler/HISTORY3
-rwxr-xr-xgraphics-libs/poppler/PRE_SUB_DEPENDS1
-rwxr-xr-xgraphics-libs/poppler/SUB_DEPENDS4
3 files changed, 8 insertions, 0 deletions
diff --git a/graphics-libs/poppler/HISTORY b/graphics-libs/poppler/HISTORY
index 23d0830c9f..8022e18ee6 100644
--- a/graphics-libs/poppler/HISTORY
+++ b/graphics-libs/poppler/HISTORY
@@ -1,3 +1,6 @@
+2010-07-28 Ladislav Hagara <hgr@vabo.cz>
+ * SUB_DEPENDS, PRE_SUB_DEPENDS: XPDF_HEADERS added
+
2010-07-09 Ladislav Hagara <hgr@vabo.cz>
* DETAILS: 0.14.1
diff --git a/graphics-libs/poppler/PRE_SUB_DEPENDS b/graphics-libs/poppler/PRE_SUB_DEPENDS
index a86235160a..1bc966338c 100755
--- a/graphics-libs/poppler/PRE_SUB_DEPENDS
+++ b/graphics-libs/poppler/PRE_SUB_DEPENDS
@@ -1,5 +1,6 @@
case $THIS_SUB_DEPENDS in
QT4) is_depends_enabled $SPELL qt4 && return 0;;
+ XPDF_HEADERS) list_find "$POPPLER_OPTS" "--enable-xpdf-headers" && return 0;;
*) echo "Eek, unknown subdependency requested!"; return 1;;
esac
return 1
diff --git a/graphics-libs/poppler/SUB_DEPENDS b/graphics-libs/poppler/SUB_DEPENDS
index ff749e6271..aed2400579 100755
--- a/graphics-libs/poppler/SUB_DEPENDS
+++ b/graphics-libs/poppler/SUB_DEPENDS
@@ -2,5 +2,9 @@ case $THIS_SUB_DEPENDS in
QT4) echo "QT4 support requested, forcing qt4 dependency." &&
depends -sub TOOLS qt4 '--enable-poppler-qt4'
;;
+ XPDF_HEADERS) echo "XPDF_HEADERS requested, forcing --enable-xpdf-headers" &&
+ list_add POPPLER_OPTS --enable-xpdf-headers &&
+ list_remove POPPLER_OPTS --disable-xpdf-headers
+ ;;
*) echo unknown sub-depends!!! ; return 1 ;;
esac