Unbreak gnome-doc-tool again... (my bad).

This commit is contained in:
ajacoutot 2011-03-08 14:41:15 +00:00
parent 0b275cdd08
commit 04ad6d9668
2 changed files with 26 additions and 9 deletions

View File

@ -1,10 +1,12 @@
# $OpenBSD: Makefile,v 1.41 2011/01/10 21:48:11 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.42 2011/03/08 14:41:15 ajacoutot Exp $
COMMENT= collection of documentation utilities for the GNOME project
GNOME_PROJECT= gnome-doc-utils
GNOME_VERSION= 0.20.4
REVISION= 0
CATEGORIES= textproc
# (L)GPLv2
@ -21,22 +23,19 @@ BUILD_DEPENDS= ${RUN_DEPENDS} \
sysutils/ggrep \
textproc/rarian
RUN_DEPENDS= devel/gettext \
shells/bash \
misc/gnugetopt \
textproc/libxml,-python \
textproc/libxslt,-python \
textproc/rarian
USE_LIBTOOL= No
USE_GROFF = Yes
USE_GROFF= Yes
CONFIGURE_ARGS= --disable-scrollkeeper
CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FAKE_FLAGS+= pkgconfigdir="${PREFIX}/lib/pkgconfig/"
pre-configure:
${SUBST_CMD} ${WRKSRC}/tools/gnome-doc-tool.in
post-install:
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
${PREFIX}/lib/python${MODPY_VERSION}/site-packages/xml2po/

View File

@ -1,9 +1,27 @@
$OpenBSD: patch-tools_gnome-doc-tool_in,v 1.3 2011/01/10 21:48:11 ajacoutot Exp $
$OpenBSD: patch-tools_gnome-doc-tool_in,v 1.4 2011/03/08 14:41:15 ajacoutot Exp $
--- tools/gnome-doc-tool.in.orig Mon Jan 10 17:13:20 2011
+++ tools/gnome-doc-tool.in Mon Jan 10 22:44:31 2011
+++ tools/gnome-doc-tool.in Tue Mar 8 15:35:09 2011
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!${LOCALBASE}/bin/bash
+#!/bin/sh
# gnome-doc-html - Convert documentation to HTML
# gnome-doc-html. Generated from gnome-doc-html.in by configure.
# Copyright (C) 2006 Shaun McCance <shaunm@gnome.org>
@@ -548,7 +548,7 @@ create_css() {
-lversion
-lhelp
';
- options=`getopt -qn$progname $longopts -- o:vVh "$@"`
+ options=`gnugetopt -qn$progname $longopts -- o:vVh "$@"`
if [ "$?" != "0" ]; then print_help_css 1>&2; exit 1; fi
eval set -- "$options";
while [ "$1" != "--" ]; do
@@ -604,7 +604,7 @@ convert_2html() {
-lversion
-lhelp
';
- options=`getopt -qn$progname $longopts -- c:d:e:o:x:nvVh "$@"`
+ options=`gnugetopt -qn$progname $longopts -- c:d:e:o:x:nvVh "$@"`
if [ "$?" != "0" ]; then print_help_html $doc_format 1>&2; exit 1; fi
eval set -- "$options";
while [ "$1" != "--" ]; do