Generate html docs in build phase (instead of install phase).

gnome-doc-tool seems to ignore "-o html" so manually generate
the same effect.

Solves PLIST problem due to missing html files.
This commit is contained in:
wiz 2010-09-25 12:29:01 +00:00
parent d07df6667b
commit 94f104fb16
3 changed files with 19 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2010/09/14 11:01:57 wiz Exp $
# $NetBSD: Makefile,v 1.12 2010/09/25 12:29:01 wiz Exp $
#
DISTNAME= geeqie-1.0
@ -21,6 +21,9 @@ REPLACE_BASH= plugins/rotate/geeqie-rotate
REPLACE_BASH+= plugins/ufraw/geeqie-ufraw
REPLACE_BASH+= plugins/import/geeqie-import
post-build:
cd ${WRKSRC}/doc && ${MAKE_PROGRAM} html
.include "../../graphics/exiv2/buildlink3.mk"
.include "../../graphics/lcms/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.4 2010/02/20 20:50:34 gdt Exp $
$NetBSD: distinfo,v 1.5 2010/09/25 12:29:01 wiz Exp $
SHA1 (geeqie-1.0.tar.gz) = 8494a557d67d20e6ad720645ec789dd2b33a3266
RMD160 (geeqie-1.0.tar.gz) = f410b5f7bca872f4e67dc2b9f9ffe8e0cedf291a
Size (geeqie-1.0.tar.gz) = 1934236 bytes
SHA1 (patch-ab) = 7a8a882489f9a6c9ea810051229a41803954be72
SHA1 (patch-ac) = 4109912f790351c4cc14d6db753c9571a421ae36

View file

@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.4 2010/09/25 12:29:01 wiz Exp $
--- doc/Makefile.in.orig 2010-09-25 12:02:12.000000000 +0000
+++ doc/Makefile.in
@@ -408,7 +408,7 @@ uninstall-am: uninstall-helpDATA
html/GuideIndex.html: docbook/GuideIndex.xml
rm -rf html; mkdir html
if [ -x "$(GNOME_DOC_TOOL)" ]; then \
- "$(GNOME_DOC_TOOL)" html -o html $(srcdir)/docbook/GuideIndex.xml ; \
+ cd html && "$(GNOME_DOC_TOOL)" html ../$(srcdir)/docbook/GuideIndex.xml ; \
else \
echo "gnome-doc-tool not found, html is not built" ; \
fi