summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArwed von Merkatz2009-12-01 06:59:40 +0100
committerArwed von Merkatz2009-12-02 06:55:23 +0100
commitc3a1db6d9a5afbae394737b4727825614c4d530f (patch)
tree312f8dccef6a7dbab551864649c0b5773fae33cf
parenta0599c3eb585ad4313445116bac7958893877ef0 (diff)
cairo: removed bogus dependencies causing problems, bug 15402
(cherry picked from commit 3a2cc1a371af0367e58fe05e4194820add1a1ad6)
-rwxr-xr-xx11-libs/cairo/DEPENDS15
-rw-r--r--x11-libs/cairo/HISTORY8
-rwxr-xr-xx11-libs/cairo/PRE_SUB_DEPENDS6
-rwxr-xr-xx11-libs/cairo/REPAIR^all^PRE_SUB_DEPENDS6
-rwxr-xr-xx11-libs/cairo/SUB_DEPENDS9
5 files changed, 17 insertions, 27 deletions
diff --git a/x11-libs/cairo/DEPENDS b/x11-libs/cairo/DEPENDS
index 47516ea430..cf21093689 100755
--- a/x11-libs/cairo/DEPENDS
+++ b/x11-libs/cairo/DEPENDS
@@ -43,21 +43,6 @@ optional_depends directfb \
"--disable-directfb" \
"for directfb surface backend feature" &&
-optional_depends poppler \
- "--enable-pdf" \
- "--disable-pdf" \
- "for PDF surface backend feature" &&
-
-optional_depends ghostscript \
- "--enable-ps" \
- "--disable-ps" \
- "for PS surface backend feature" &&
-
-optional_depends librsvg2 \
- "--enable-svg" \
- "--disable-svg" \
- "for SVG surface backend feature" &&
-
optional_depends gtk-doc \
"--enable-gtk-doc" \
"--disable-gtk-doc" \
diff --git a/x11-libs/cairo/HISTORY b/x11-libs/cairo/HISTORY
index 76db0b26de..d70e717723 100644
--- a/x11-libs/cairo/HISTORY
+++ b/x11-libs/cairo/HISTORY
@@ -1,3 +1,11 @@
+2009-12-01 Arwed v. Merkatz <v.merkatz@gmx.net>
+ * DEPENDS: removed optional_depends on poppler, librsvg2 and
+ ghostscript, all of those are only used for the testsuite,
+ fixes bug #15402
+ * PRE_SUB_DEPENDS, REPAIR^all^PRE_SUB_DEPENDS: return true for SVG,
+ PDF and PS sub depends if the corresponding header file exists
+ * SUB_DEPENDS: always return true for SVG, PDF and PS sub_depends.
+
2009-08-25 Eric Sandall <sandalle@sourcemage.org>
* REPAIR^all^PRE_SUB_DEPENDS: Update with PNG support (Bug #15368)
diff --git a/x11-libs/cairo/PRE_SUB_DEPENDS b/x11-libs/cairo/PRE_SUB_DEPENDS
index d53513cae6..3708b1bbe3 100755
--- a/x11-libs/cairo/PRE_SUB_DEPENDS
+++ b/x11-libs/cairo/PRE_SUB_DEPENDS
@@ -1,9 +1,9 @@
case $THIS_SUB_DEPENDS in
- PDF) is_depends_enabled $SPELL poppler;;
+ PDF) [[ -f /usr/include/cairo/cairo-pdf.h ]];;
XCB) is_depends_enabled $SPELL xcb-util;;
PNG) is_depends_enabled $SPELL libpng;;
- PS) is_depends_enabled $SPELL ghostscript;;
- SVG) is_depends_enabled $SPELL librsvg2;;
+ PS) [[ -f /usr/include/cairo/cairo-ps.h ]];;
+ SVG) [[ -f /usr/include/cairo/cairo-svg.h ]];;
X) is_depends_enabled $SPELL libx11;;
*) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"
return 1;;
diff --git a/x11-libs/cairo/REPAIR^all^PRE_SUB_DEPENDS b/x11-libs/cairo/REPAIR^all^PRE_SUB_DEPENDS
index d53513cae6..3708b1bbe3 100755
--- a/x11-libs/cairo/REPAIR^all^PRE_SUB_DEPENDS
+++ b/x11-libs/cairo/REPAIR^all^PRE_SUB_DEPENDS
@@ -1,9 +1,9 @@
case $THIS_SUB_DEPENDS in
- PDF) is_depends_enabled $SPELL poppler;;
+ PDF) [[ -f /usr/include/cairo/cairo-pdf.h ]];;
XCB) is_depends_enabled $SPELL xcb-util;;
PNG) is_depends_enabled $SPELL libpng;;
- PS) is_depends_enabled $SPELL ghostscript;;
- SVG) is_depends_enabled $SPELL librsvg2;;
+ PS) [[ -f /usr/include/cairo/cairo-ps.h ]];;
+ SVG) [[ -f /usr/include/cairo/cairo-svg.h ]];;
X) is_depends_enabled $SPELL libx11;;
*) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"
return 1;;
diff --git a/x11-libs/cairo/SUB_DEPENDS b/x11-libs/cairo/SUB_DEPENDS
index c18f4de34e..b230956702 100755
--- a/x11-libs/cairo/SUB_DEPENDS
+++ b/x11-libs/cairo/SUB_DEPENDS
@@ -1,14 +1,11 @@
case $THIS_SUB_DEPENDS in
- PDF) message "Cairo with PDF support requested, forcing poppler dependency" &&
- depends poppler "--enable-pdf";;
+ PDF) return 0;;
XCB) message "Cairo with XCB support requested, forcing xcb-util dependency" &&
depends xcb-util "--enable-xcb";;
PNG) message "Cairo with PNG support requested, forcing libpng dependency" &&
depends libpng "--enable-png";;
- PS) message "Cairo with PS support requested, forcing ghostscript dependency" &&
- depends ghostscript "--enable-ps";;
- SVG) message "Cairo with SVG support requested, forcing libsvrg2 dependency" &&
- depends librsvg2 "--enable-svg";;
+ PS) return 0;;
+ SVG) return 0;;
X) message "Cairo with Xlib support requested, forcing libx11 dependency" &&
depends libx11 "--enable-xlib";;
*) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"