2008-06-22 00:11:50 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ruby
|
|
|
|
PORTVERSION= 1.2
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 3
|
2008-06-22 00:11:50 +02:00
|
|
|
CATEGORIES= irc ruby
|
2009-08-22 02:24:37 +02:00
|
|
|
MASTER_SITES= SF/xchat-${PORTNAME}/xchat-${PORTNAME}/${PORTVERSION}
|
2008-06-22 00:11:50 +02:00
|
|
|
PKGNAMEPREFIX= xchat-
|
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}-src
|
|
|
|
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
|
|
COMMENT= An ruby-scripting plugin for XChat
|
|
|
|
|
|
|
|
RUN_DEPENDS= xchat:${PORTSDIR}/irc/xchat
|
|
|
|
|
2010-06-04 15:49:15 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-09-21 13:06:03 +02:00
|
|
|
NO_STAGE= yes
|
|
|
|
|
2008-06-22 00:11:50 +02:00
|
|
|
USE_RUBY= yes
|
2012-03-16 16:52:38 +01:00
|
|
|
USE_LIBRUBY= yes
|
2008-06-22 00:11:50 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
DOCSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
PLIST_FILES= lib/xchat/plugins/xchat-ruby.so
|
|
|
|
PORTDOCS= README ChangeLog
|
|
|
|
PORTEXAMPLES= embedify.rb TimerSample.rb JFilter.rb JBanner.rb
|
|
|
|
|
2012-03-16 16:52:38 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's|^RUBY=.*|RUBY=${RUBY}|' \
|
|
|
|
-e 's|-lruby$$|-l${RUBY_NAME}|' \
|
|
|
|
-e 's|^ARCHDIR=.*|ARCHDIR=`$$(RUBY) ${FILESDIR}/rubypath.rb`|' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
2008-06-22 00:11:50 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xchat-ruby.so \
|
|
|
|
${PREFIX}/lib/xchat/plugins/
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${DOCSRC}/${doc} \
|
|
|
|
${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for doc in ${PORTEXAMPLES}
|
|
|
|
${INSTALL_DATA} ${DOCSRC}/*/${doc} \
|
|
|
|
${EXAMPLESDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2012-03-16 16:52:38 +01:00
|
|
|
.include <bsd.port.mk>
|