aboutsummaryrefslogtreecommitdiffstats
path: root/devel/oniguruma
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-01-31 21:03:50 +0800
committerknu <knu@FreeBSD.org>2003-01-31 21:03:50 +0800
commit9672179d445d40ea76c860e80ce7720b64366535 (patch)
treeb3f8fd3caa6106b9336b6c7ebd8fd134495734e5 /devel/oniguruma
parent8edf0609ab06a1afdfffdf207856fad2dcb7a29d (diff)
downloadfreebsd-ports-gnome-9672179d445d40ea76c860e80ce7720b64366535.tar.gz
freebsd-ports-gnome-9672179d445d40ea76c860e80ce7720b64366535.tar.zst
freebsd-ports-gnome-9672179d445d40ea76c860e80ce7720b64366535.zip
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/
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%%