blob: dc126082e348cfcc1a62ef1f263b4df3c24af338 (
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
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= oniguruma
PORTVERSION= 2.5.8
CATEGORIES= devel textproc
MASTER_SITES= http://www.geocities.jp/kosako3/oniguruma/archive/:onig \
http://www.SpringDaemons.com/stas/:ruby
DISTFILES= onigd${PORTVERSION:S/./_/g}${EXTRACT_SUFX}:onig \
ruby187p248-oniguruma.patch:ruby
DIST_SUBDIR= ruby
EXTRACT_ONLY= onigd${PORTVERSION:S/./_/g}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= BSDL Regular Expressions library compatible with POSIX/GNU/Perl
WRKSRC= ${WRKDIR}/${PORTNAME}
CONFLICTS_INSTALL= oniguruma-4.*
GNU_CONFIGURE= yes
DOCS= HISTORY README doc/*
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
${CP} ${DISTDIR}/${DIST_SUBDIR}/ruby187p248-oniguruma.patch \
${WRKSRC}/ruby187.patch
post-configure:
${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
${FILESDIR}/onig-config > ${WRKSRC}/onig-config
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/onig-config ${STAGEDIR}${PREFIX}/bin/
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>
|