diff options
author | marcus <marcus@FreeBSD.org> | 2007-03-25 13:12:50 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2007-03-25 13:12:50 +0800 |
commit | 4804e034a327942b8992c423241fef36fabc2314 (patch) | |
tree | d965590cfa307d8d451ba62368f7596a3ad1b21e /accessibility/orca | |
parent | 2f32764dbe0407cc22a596555e28ef99351fe4ea (diff) | |
download | freebsd-ports-gnome-4804e034a327942b8992c423241fef36fabc2314.tar.gz freebsd-ports-gnome-4804e034a327942b8992c423241fef36fabc2314.tar.zst freebsd-ports-gnome-4804e034a327942b8992c423241fef36fabc2314.zip |
Fix orca so that it actually runs. While here, replace some hardcoded paths
with replaceable values.
Diffstat (limited to 'accessibility/orca')
-rw-r--r-- | accessibility/orca/Makefile | 9 | ||||
-rw-r--r-- | accessibility/orca/files/patch-src_orca_orca.in | 26 | ||||
-rw-r--r-- | accessibility/orca/files/patch-src_orca_orca.in.orig | 0 | ||||
-rw-r--r-- | accessibility/orca/files/patch-src_orca_platform.py.in | 8 | ||||
-rw-r--r-- | accessibility/orca/files/patch-src_orca_platform.py.in.orig | 0 |
5 files changed, 43 insertions, 0 deletions
diff --git a/accessibility/orca/Makefile b/accessibility/orca/Makefile index 3344b316898c..84dd8e2363f9 100644 --- a/accessibility/orca/Makefile +++ b/accessibility/orca/Makefile @@ -8,6 +8,7 @@ PORTNAME= orca PORTVERSION= 2.18.0 +PORTREVISION= 1 CATEGORIES= accessibility x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} @@ -17,6 +18,7 @@ MAINTAINER= gnome@FreeBSD.org COMMENT= Scriptable screen reader LIB_DEPENDS= gnome-mag.2:${PORTSDIR}/accessibility/gnome-mag +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash LATEST_LINK= gnome-orca @@ -33,4 +35,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ MAN1= orca.1 +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \ + s|/usr/X11R6|${X11BASE}|g' \ + ${WRKSRC}/src/orca/orca.in + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ + ${WRKSRC}/src/orca/orca_i18n.py + .include <bsd.port.mk> diff --git a/accessibility/orca/files/patch-src_orca_orca.in b/accessibility/orca/files/patch-src_orca_orca.in new file mode 100644 index 000000000000..80da5c7cb189 --- /dev/null +++ b/accessibility/orca/files/patch-src_orca_orca.in @@ -0,0 +1,26 @@ +--- src/orca/orca.in.orig Sun Mar 25 00:58:52 2007 ++++ src/orca/orca.in Sun Mar 25 01:02:09 2007 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/local/bin/bash + # + # Orca + # +@@ -30,7 +30,7 @@ + + # Set the user's $PATH for this script. + # +-export PATH="/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/X11R6/bin" ++export PATH="/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/local/bin:/usr/X11R6/bin" + + # If you set RUNONCE to "true", then this will just run Orca once and quit. + # +@@ -125,7 +125,7 @@ watchdog() + do + sleep 5 + USERID=`id | cut -f2 -d= | cut -f1 -d\(` +- PID=`ps -eo pid,ruid,args | grep $USERID | egrep "orca[.]orca" | grep -v grep | awk '{ print $1 }'` ++ PID=`ps -exo pid,ruid,args | grep $USERID | egrep "orca[.]orca" | grep -v grep | awk '{ print $1 }'` + + if [ "x$PID" = "x" ] + then diff --git a/accessibility/orca/files/patch-src_orca_orca.in.orig b/accessibility/orca/files/patch-src_orca_orca.in.orig new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/accessibility/orca/files/patch-src_orca_orca.in.orig diff --git a/accessibility/orca/files/patch-src_orca_platform.py.in b/accessibility/orca/files/patch-src_orca_platform.py.in new file mode 100644 index 000000000000..a21ae5f069bc --- /dev/null +++ b/accessibility/orca/files/patch-src_orca_platform.py.in @@ -0,0 +1,8 @@ +--- src/orca/platform.py.in.orig Sun Mar 25 01:07:40 2007 ++++ src/orca/platform.py.in Sun Mar 25 01:07:56 2007 +@@ -40,4 +40,4 @@ package = "@PACKAGE@" + + # The name of the data directory (usually "share"). + # +-datadirname = "@DATADIRNAME@" ++datadirname = "@datadir@" diff --git a/accessibility/orca/files/patch-src_orca_platform.py.in.orig b/accessibility/orca/files/patch-src_orca_platform.py.in.orig new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/accessibility/orca/files/patch-src_orca_platform.py.in.orig |