blob: e44110cc8bd2e6527f9f5456818da47c9cfa8dd7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $FreeBSD$
PORTNAME= ruby
PORTVERSION= 1.2
PORTREVISION= 3
CATEGORIES= irc ruby
MASTER_SITES= SF/xchat-${PORTNAME}/xchat-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= xchat-
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}-src
MAINTAINER= dinoex@FreeBSD.org
COMMENT= An ruby-scripting plugin for XChat
RUN_DEPENDS= xchat:${PORTSDIR}/irc/xchat
LICENSE= GPLv2
USE_RUBY= yes
USE_LIBRUBY= yes
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
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
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
.include <bsd.port.mk>
|