blob: 662db56b1d573ff47b7ca505839f064929263b46 (
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
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= odbc
PORTVERSION= 0.99991
PORTREVISION= 1
CATEGORIES= databases ruby
MASTER_SITES= http://www.ch-werner.de/rubyodbc/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
COMMENT= Ruby extension library to use ODBC data sources
OPTIONS_DEFINe= DOCS EXAMPLES
LIB_DEPENDS= libodbc.so:databases/unixODBC
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
CONFIGURE_WRKSRC= ${WRKSRC}/ext
BUILD_WRKSRC= ${WRKSRC}/ext
INSTALL_WRKSRC= ${WRKSRC}/ext
INSTALL_TARGET= site-install
MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}"
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/odbc.so \
%%RUBY_SITELIBDIR%%/cqgen.rb
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
PORTEXAMPLES= test
DOCSDIR= ${RUBY_MODDOCDIR}
PORTDOCS= COPYING ChangeLog README doc
post-extract:
cd ${WRKSRC} && ${MV} lib ext/
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${EXAMPLESDIR}/
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DOCSDIR}/
.endfor
.include <bsd.port.mk>
|