summaryrefslogtreecommitdiff
path: root/devel/oniguruma
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-01-31 13:03:50 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-01-31 13:03:50 +0000
commit9227ab842391dbe4043bd3aaf6c2a487d608ac8c (patch)
treef22449e88d54f69c2b1261e6be7e30d0bf6ad9dc /devel/oniguruma
parentAdd dependency on devel/pcre. (diff)
Add devel/oniguruma.
Oniguruma is a BSDL Regular Expression library written for ruby-m17n, which implements all of Perl extensions plus more. It has multiple APIs; GNU regex, POSIX regex and its own interface. This library is fundamentally multilingualized and can have one encoding for each object. Currently supported character encodings are ASCII, UTF-8, EUC-JP and Shift_JIS. Author: K.Kosako <kosako@sofnec.co.jp> WWW: http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/oniguruma/
Notes
Notes: svn path=/head/; revision=74351
Diffstat (limited to 'devel/oniguruma')
-rw-r--r--devel/oniguruma/Makefile35
-rw-r--r--devel/oniguruma/distinfo1
-rw-r--r--devel/oniguruma/files/BSDmakefile19
-rw-r--r--devel/oniguruma/pkg-comment1
-rw-r--r--devel/oniguruma/pkg-descr10
-rw-r--r--devel/oniguruma/pkg-plist10
6 files changed, 76 insertions, 0 deletions
diff --git a/devel/oniguruma/Makefile b/devel/oniguruma/Makefile
new file mode 100644
index 000000000000..8d37fd530b1c
--- /dev/null
+++ b/devel/oniguruma/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: Oniguruma
+# Date created: 31 January 2003
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= oniguruma
+PORTVERSION= 1.6
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_RUBY}
+MASTER_SITE_SUBDIR= contrib
+DISTNAME= onigd20030121
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+GNU_CONFIGURE= yes
+MAKEFILE= BSDmakefile
+MAKE_ARGS= NOPROFILE=true
+INSTALLS_SHLIB= yes
+
+pre-build:
+ ${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}/
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${EXAMPLESDIR}/
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/oniguruma/distinfo b/devel/oniguruma/distinfo
new file mode 100644
index 000000000000..aa8d9c6fd003
--- /dev/null
+++ b/devel/oniguruma/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/onigd20030121.tar.gz) = 92ba124a64e0852e067f3aaeecf11f87
diff --git a/devel/oniguruma/files/BSDmakefile b/devel/oniguruma/files/BSDmakefile
new file mode 100644
index 000000000000..6d09167981f1
--- /dev/null
+++ b/devel/oniguruma/files/BSDmakefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+LIB= onig
+SHLIB_MAJOR?= 0
+SHLIB_MINOR?= 0
+CFLAGS+= -DHAVE_CONFIG_H
+SRCS= regerror.o regcomp.o regexec.o reggnu.o \
+ regposix.o regposerr.o
+INCS= regex.h \
+ onigposix.h
+NOMAN= YES
+LIBDIR= ${LOCALBASE}/lib
+INCSDIR= ${LOCALBASE}/include/onig
+INCDIR= ${INCSDIR} # for pre-bsd.incs.mk API
+
+beforeinstall:
+ mkdir -p ${INCSDIR}
+
+.include <bsd.lib.mk>
diff --git a/devel/oniguruma/pkg-comment b/devel/oniguruma/pkg-comment
new file mode 100644
index 000000000000..7297ffe16b52
--- /dev/null
+++ b/devel/oniguruma/pkg-comment
@@ -0,0 +1 @@
+A BSDL Regular Expressions library compatible with POSIX/GNU/Perl
diff --git a/devel/oniguruma/pkg-descr b/devel/oniguruma/pkg-descr
new file mode 100644
index 000000000000..5358c9ad9c38
--- /dev/null
+++ b/devel/oniguruma/pkg-descr
@@ -0,0 +1,10 @@
+Oniguruma is a BSDL Regular Expression library written for ruby-m17n,
+which implements all of Perl extensions plus more. It has multiple
+APIs; GNU regex, POSIX regex and its own interface.
+
+This library is fundamentally multilingualized and can have one
+encoding for each object. Currently supported character encodings
+are ASCII, UTF-8, EUC-JP and Shift_JIS.
+
+Author: K.Kosako <kosako@sofnec.co.jp>
+WWW: http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/oniguruma/
diff --git a/devel/oniguruma/pkg-plist b/devel/oniguruma/pkg-plist
new file mode 100644
index 000000000000..55e2976ae843
--- /dev/null
+++ b/devel/oniguruma/pkg-plist
@@ -0,0 +1,10 @@
+include/onig/onigposix.h
+include/onig/regex.h
+@dirrm include/onig
+lib/libonig.a
+lib/libonig.so
+lib/libonig.so.0
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTDOCS%%%%EXAMPLESDIR%%/simple.c
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%