aboutsummaryrefslogtreecommitdiffstats
path: root/net/ruby-growl/Makefile
blob: db66363ecca566a8bb3da196fcc82a7284964748 (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
# Created by: TAKATSU Tomonari <tota@FreeBSD.org>
# $FreeBSD$

PORTNAME=   growl
PORTVERSION=    3.0
CATEGORIES= net ruby
MASTER_SITES=   RF
MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX:S|${RUBY_SUFFIX}||}${PORTNAME}
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ${PKGNAMEPREFIX:S|${RUBY_SUFFIX}||}${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    ${RUBY_PKGNAMEPREFIX:S|${RUBY_SUFFIX}-||}

MAINTAINER= tota@FreeBSD.org
COMMENT=    A pure-ruby growl notifier

USE_RUBY=   yes
NO_BUILD=   yes

RUBY_SHEBANG_FILES= bin/growl lib/ruby-growl.rb
PLIST_FILES=    bin/growl \
        %%RUBY_SITELIBDIR%%/ruby-growl.rb

PORTDOCS=   History.txt README.txt
DOCSDIR=    ${RUBY_MODDOCDIR}

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/growl ${STAGEDIR}${PREFIX}/bin/
    ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/
    ${INSTALL_DATA} ${WRKSRC}/lib/ruby-growl.rb ${STAGEDIR}${RUBY_SITELIBDIR}/
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor

.include <bsd.port.mk>