openbsd-ports/www/raggle/patches/patch-Makefile
jeremy 153e929e51 Make raggle use the lang/ruby module. Don't hardcode the ruby18
path in the Makefile, and fix the shebangs of the installed
scripts using MODRUBY_ADJ_FILES.

ok landry
2010-10-07 18:10:47 +00:00

22 lines
828 B
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2010/10/07 18:10:47 jeremy Exp $
--- Makefile.orig Wed Mar 16 02:25:03 2005
+++ Makefile Tue Jun 3 00:50:13 2008
@@ -1,6 +1,6 @@
-PREFIX=/usr/local
+PREFIX?=/usr/local
BINDIR=${PREFIX}/bin
-MANDIR=${PREFIX}/share/man/man1
+MANDIR=${PREFIX}/man/man1
DOCDIR=${PREFIX}/share/doc/raggle
DATADIR=${PREFIX}/share/raggle
DATA=themes extras
@@ -22,7 +22,7 @@ install :
if [ ! -d "${MANDIR}" ]; then \
${mkdir} ${MANDIR}; \
fi && \
- ruby -pe 'gsub(/^(.)DATADIR = ".*"/, "\\1DATADIR = \"${DATADIR}\"")' < ./raggle > ${BINDIR}/raggle && chmod 755 ${BINDIR}/raggle && \
+ ${RUBY} -pe 'gsub(/^(.)DATADIR = ".*"/, "\\1DATADIR = \"${DATADIR}\"")' < ./raggle > ${BINDIR}/raggle && chmod 755 ${BINDIR}/raggle && \
cp raggle.1 ${MANDIR} && \
cp -r ${DOCS} ${DOCDIR} && \
cp -r ${DATA} ${DATADIR}