aboutsummaryrefslogtreecommitdiffstats
path: root/net/ruby-pcap/Makefile
blob: 89bbce17b9a897935de89ec9ed9a4064429d499c (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
# New ports collection makefile for:    Ruby/Pcap
# Date created:     20 Nov 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   pcap
PORTVERSION=    0.6
PORTREVISION=   2
CATEGORIES= net ruby
MASTER_SITES=   http://www.goto.info.waseda.ac.jp/~fukusima/ruby/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= ruby@FreeBSD.org
COMMENT=    Ruby interface to LBL Packet Capture library (libpcap)

DEPRECATED= Doesn't work with Ruby 1.9
EXPIRATION_DATE=    2011-08-03

USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}
CONFIGURE_ARGS= --with-pcap-dir=/usr
INSTALL_TARGET= site-install

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}
    ${CP} -R ${WRKSRC}/examples/ ${RUBY_MODEXAMPLESDIR}/
    ${MKDIR} ${RUBY_MODDOCDIR}/ja
    ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${WRKSRC}/doc/* \
        ${RUBY_MODDOCDIR}/
    ${INSTALL_DATA} ${WRKSRC}/README.ja ${WRKSRC}/doc-ja/* \
        ${RUBY_MODDOCDIR}/ja/
.endif

.include <bsd.port.pre.mk>
.if ${RUBY_VER} == 1.9
BROKEN= does not build with ruby 1.9
.endif
.include <bsd.port.post.mk>