aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ruby-syslog/Makefile
blob: 5eb9811093627dab640ec56124c761895219d01d (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
# New ports collection makefile for:    Ruby-syslog
# Date created:     15 Aug 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   syslog
PORTVERSION=    20010130
CATEGORIES= sysutils ruby
MASTER_SITES=   http://www.utdallas.edu/~amos/ruby/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org

USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes

INSTALL_TARGET= site-install

post-extract:
    ${RM} ${WRKSRC}/depend

post-patch:
    ${RUBY} -i -pe 'gsub /\bstr2cstr\b/, "rb_str2cstr"' ${WRKSRC}/*.[ch]

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_DOCDIR}/syslog/
    ${INSTALL_DATA} ${WRKSRC}/0README ${RUBY_DOCDIR}/syslog/
.endif

.include <bsd.port.mk>