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
This commit is contained in:
jeremy 2010-10-07 18:10:47 +00:00
parent ea588ec908
commit 153e929e51
2 changed files with 8 additions and 7 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.3 2010/09/23 22:21:54 jeremy Exp $
# $OpenBSD: Makefile,v 1.4 2010/10/07 18:10:47 jeremy Exp $
COMMENT= console RSS aggregator
DISTNAME= raggle-0.4.4
REVISION= 0
REVISION= 1
CATEGORIES= www news
@ -18,12 +18,13 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/files/
BUILD_DEPENDS= :ruby->=1.8,<=1.9:lang/ruby/1.8,-main
RUN_DEPENDS= :ruby->=1.8,<=1.9:lang/ruby/1.8,-main \
::devel/ruby-ncurses
MODULES= lang/ruby
RUN_DEPENDS= ::devel/ruby-ncurses
NO_REGRESS= Yes
NO_BUILD= Yes
PKG_ARCH= *
MAKE_ENV= RUBY=${RUBY}
MODRUBY_ADJ_FILES= raggle *.rb
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-Makefile,v 1.2 2010/09/23 22:21:54 jeremy Exp $
$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 @@
@ -15,7 +15,7 @@ $OpenBSD: patch-Makefile,v 1.2 2010/09/23 22:21:54 jeremy Exp $
${mkdir} ${MANDIR}; \
fi && \
- ruby -pe 'gsub(/^(.)DATADIR = ".*"/, "\\1DATADIR = \"${DATADIR}\"")' < ./raggle > ${BINDIR}/raggle && chmod 755 ${BINDIR}/raggle && \
+ ruby18 -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}