aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-rdbc1/Makefile
blob: 0e122a5739c28bc6356735a2ad22f9884fc2465a (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
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=   rdbc1
PORTVERSION=    001103
PORTREVISION=   2
CATEGORIES= databases ruby
MASTER_SITES=   http://homepage3.nifty.com/guion/SOFT/RDBC/ \
        ftp://ftp.dinoex.de/pub/approved/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    ruby

MAINTAINER= ruby@FreeBSD.org
COMMENT=    Ruby Database Connectivity

RUN_DEPENDS=    rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg

USE_RUBY=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}
NO_BUILD=   yes

NO_STAGE=   yes
do-install:
    ${MKDIR} ${RUBY_SITELIBDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.rb ${RUBY_SITELIBDIR}/
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/
    ${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_MODEXAMPLESDIR}/
.endif
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODDOCDIR}/ja
    ${CP} -R ${WRKSRC}/doc/en/* ${RUBY_MODDOCDIR}/
    ${CP} -R ${WRKSRC}/doc/ja/* ${RUBY_MODDOCDIR}/ja/
.endif

.include <bsd.port.mk>