Import libguess-1.0
libguess employs discrete-finite automata to deduce the character set of the input buffer. The advantage of this is that all character sets can be checked in parallel, and quickly. Right now, libguess passes a byte to each DFA on the same pass, meaning that the winning character set can be deduced as efficiently as possible. ok jasper@
This commit is contained in:
parent
a51ee7eb60
commit
a54ac523ea
35
devel/libguess/Makefile
Normal file
35
devel/libguess/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/11 11:03:22 shadchin Exp $
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
COMMENT = high-speed character set detection library
|
||||
|
||||
DISTNAME = libguess-1.0
|
||||
|
||||
SHARED_LIBS = guess 0.0 # 1.0
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE = http://www.atheme.org/project/libguess
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB = mowgli
|
||||
|
||||
MASTER_SITES = http://distfiles.atheme.org/
|
||||
EXTRACT_SUFX = .tgz
|
||||
|
||||
LIB_DEPENDS = devel/mowgli
|
||||
|
||||
MAKE_ENV = LIB_MAJOR=${LIBguess_VERSION:R} \
|
||||
LIB_MINOR=${LIBguess_VERSION:E}
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/libguess/distinfo
Normal file
5
devel/libguess/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (libguess-1.0.tgz) = ie+SlhYqm1uvMqMh2eNnwA==
|
||||
RMD160 (libguess-1.0.tgz) = DOtoRIafw6ulKXDpoYqhENiYukk=
|
||||
SHA1 (libguess-1.0.tgz) = tTJLSEAXYyRXbrkdQB5fnhMi/uw=
|
||||
SHA256 (libguess-1.0.tgz) = d+m2KnlvQT3P3pM2D5eTi3KqGumAd1G7Sq90Z6RB4F4=
|
||||
SIZE (libguess-1.0.tgz) = 90044
|
12
devel/libguess/patches/patch-buildsys_mk_in
Normal file
12
devel/libguess/patches/patch-buildsys_mk_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-buildsys_mk_in,v 1.1.1.1 2010/12/11 11:03:22 shadchin Exp $
|
||||
--- buildsys.mk.in.orig Sat Dec 4 18:10:19 2010
|
||||
+++ buildsys.mk.in Sat Dec 4 18:17:32 2010
|
||||
@@ -89,7 +89,7 @@ OBJS9 = ${OBJS8:.xpm=.o}
|
||||
OBJS10 = ${OBJS9:.S=.o}
|
||||
OBJS += ${OBJS10:.po=.gmo}
|
||||
|
||||
-.SILENT:
|
||||
+#.SILENT:
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .beam .c .cc .cxx .d .dep .erl .gmo .m .mm .o .po .py .pyc .xpm .S
|
||||
.PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean
|
12
devel/libguess/patches/patch-src_libguess_Makefile
Normal file
12
devel/libguess/patches/patch-src_libguess_Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_libguess_Makefile,v 1.1.1.1 2010/12/11 11:03:22 shadchin Exp $
|
||||
--- src/libguess/Makefile.orig Sat Dec 4 18:20:35 2010
|
||||
+++ src/libguess/Makefile Sat Dec 4 18:20:45 2010
|
||||
@@ -1,6 +1,6 @@
|
||||
LIB = ${LIB_PREFIX}guess${LIB_SUFFIX}
|
||||
-LIB_MAJOR = 1
|
||||
-LIB_MINOR = 0
|
||||
+LIB_MAJOR ?= 1
|
||||
+LIB_MINOR ?= 0
|
||||
DISTCLEAN = autoconf.h
|
||||
|
||||
SRCS = guess.c \
|
5
devel/libguess/pkg/DESCR
Normal file
5
devel/libguess/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
libguess employs discrete-finite automata to deduce the character set of
|
||||
the input buffer. The advantage of this is that all character sets can
|
||||
be checked in parallel, and quickly. Right now, libguess passes a byte
|
||||
to each DFA on the same pass, meaning that the winning character set can
|
||||
be deduced as efficiently as possible.
|
5
devel/libguess/pkg/PLIST
Normal file
5
devel/libguess/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/11 11:03:22 shadchin Exp $
|
||||
include/libguess/
|
||||
include/libguess/libguess.h
|
||||
@lib lib/libguess.so.${LIBguess_VERSION}
|
||||
lib/pkgconfig/libguess.pc
|
Loading…
Reference in New Issue
Block a user