summaryrefslogtreecommitdiff
path: root/www/raggle/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'www/raggle/patches/patch-aa')
-rw-r--r--www/raggle/patches/patch-aa42
1 files changed, 34 insertions, 8 deletions
diff --git a/www/raggle/patches/patch-aa b/www/raggle/patches/patch-aa
index afd342461cb..cfed98023de 100644
--- a/www/raggle/patches/patch-aa
+++ b/www/raggle/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2006/02/22 20:52:11 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2010/03/15 07:51:56 taca Exp $
--- Makefile.orig 2005-03-16 01:25:03.000000000 +0000
+++ Makefile
@@ -10,12 +10,38 @@ $NetBSD: patch-aa,v 1.2 2006/02/22 20:52:11 wiz Exp $
DOCDIR=${PREFIX}/share/doc/raggle
DATADIR=${PREFIX}/share/raggle
DATA=themes extras
-@@ -22,7 +21,7 @@ install :
- if [ ! -d "${MANDIR}" ]; then \
- ${mkdir} ${MANDIR}; \
+@@ -10,22 +9,22 @@ mkdir=/bin/mkdir -p
+ phony :
+ @echo "Run make install"
+ install :
+- if [ ! -d "${BINDIR}" ]; then \
+- ${mkdir} -p ${BINDIR}; \
++ if [ ! -d "${DESTDIR}${BINDIR}" ]; then \
++ ${mkdir} -p ${DESTDIR}${BINDIR}; \
+ fi && \
+- if [ ! -d "${DOCDIR}" ]; then \
+- ${mkdir} ${DOCDIR}; \
++ if [ ! -d "${DESTDIR}${DOCDIR}" ]; then \
++ ${mkdir} ${DESTDIR}${DOCDIR}; \
+ fi && \
+- if [ ! -d "${DATADIR}" ]; then \
+- ${mkdir} ${DATADIR}; \
++ if [ ! -d "${DESTDIR}${DATADIR}" ]; then \
++ ${mkdir} ${DESTDIR}${DATADIR}; \
+ fi && \
+- if [ ! -d "${MANDIR}" ]; then \
+- ${mkdir} ${MANDIR}; \
++ if [ ! -d "${DESTDIR}${MANDIR}" ]; then \
++ ${mkdir} ${DESTDIR}${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}
+- cp raggle.1 ${MANDIR} && \
+- cp -r ${DOCS} ${DOCDIR} && \
+- cp -r ${DATA} ${DATADIR}
++ ${RUBY} -pe 'gsub(/^(.)DATADIR = ".*"/, "\\1DATADIR = \"${DATADIR}\"")' < ./raggle > ${DESTDIR}${BINDIR}/raggle && chmod 755 ${DESTDIR}${BINDIR}/raggle && \
++ cp raggle.1 ${DESTDIR}${MANDIR} && \
++ cp -r ${DOCS} ${DESTDIR}${DOCDIR} && \
++ cp -r ${DATA} ${DESTDIR}${DATADIR}
+
+ apidoc:
+ rdoc -o doc/api --title "Raggle API Documentation" --webcvs http://cvs.pablotron.org/cgi-bin/viewcvs.cgi/raggle/ raggle README COPYING AUTHORS ChangeLog