openbsd-ports/x11/gnome/tomboy/patches/patch-Tomboy_tomboy_in
jasper 18a7a89331 ....and get rid of the bashism by using echo(1) and cut(1)
also add a missing build dependency (from mr. frog aka ajacoutot)

ok ajacoutot@
2008-11-19 22:22:14 +00:00

32 lines
895 B
Plaintext

$OpenBSD: patch-Tomboy_tomboy_in,v 1.3 2008/11/19 22:22:14 jasper Exp $
Remove bashism.
--- Tomboy/tomboy.in.orig Wed Nov 19 19:23:03 2008
+++ Tomboy/tomboy.in Wed Nov 19 19:23:44 2008
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
if [ "x$PWD" = "x@srcdir@" ] ; then
echo "*** Running uninstalled @target@ ***"
@@ -20,15 +20,15 @@ else
[ -n "$TOMBOY_PROFILE" ] && TOMBOY_PROFILE="--profile=$TOMBOY_PROFILE"
for arg in $*; do
- case "x--debug" in ("x$arg")
+ case "x--debug" in ("x`echo $arg`")
TOMBOY_DEBUG=$arg
esac
- case "x--trace=" in ("x${arg:0:8}")
+ case "x--trace=" in ("x`echo $arg | cut -c1-8`")
TOMBOY_TRACE=$arg
esac
- case "x--profile=" in ("x${arg:0:10}")
+ case "x--profile=" in ("x`echo $arg | cut -c1-10`")
TOMBOY_PROFILE=$arg
esac
done