From ac47c1ad4295d953f5c6be2865d6e2d7a15082a4 Mon Sep 17 00:00:00 2001 From: Dmitry Sivachenko Date: Wed, 7 Jan 2004 14:59:42 +0000 Subject: [PATCH] New port: libcyrillic. This C library allows to convert cyrillic text from any to any of the following cyrillic charsets: windows-1251, koi8-r, koi8-u, iso-8859-5, x-mac-cyrillic and ibm866. Automatic detection of charset is possible for any of those. The library also contains a number of automation features and useful service wrappers that are ready to be easily plugged into any application whenever one needs more wise features instead of just dumb converting. PR: 60042 Submitted by: Pavel Novikov --- russian/Makefile | 1 + russian/libcyrillic/Makefile | 26 +++++++++++++++++++ russian/libcyrillic/distinfo | 1 + russian/libcyrillic/files/Makefile.bsd | 36 ++++++++++++++++++++++++++ russian/libcyrillic/pkg-descr | 9 +++++++ russian/libcyrillic/pkg-plist | 5 ++++ 6 files changed, 78 insertions(+) create mode 100644 russian/libcyrillic/Makefile create mode 100644 russian/libcyrillic/distinfo create mode 100644 russian/libcyrillic/files/Makefile.bsd create mode 100644 russian/libcyrillic/pkg-descr create mode 100644 russian/libcyrillic/pkg-plist diff --git a/russian/Makefile b/russian/Makefile index 1b7982958951..af727391fc9e 100644 --- a/russian/Makefile +++ b/russian/Makefile @@ -15,6 +15,7 @@ SUBDIR += koi2koi SUBDIR += koi8r-ps SUBDIR += ksocrat + SUBDIR += libcyrillic SUBDIR += linux-mozillafirebird SUBDIR += messarge SUBDIR += mtc diff --git a/russian/libcyrillic/Makefile b/russian/libcyrillic/Makefile new file mode 100644 index 000000000000..9ec234e985ef --- /dev/null +++ b/russian/libcyrillic/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: libcyrillic +# Date created: 8 December 2003 +# Whom: Pavel Novikov +# +# $FreeBSD$ +# + +PORTNAME= libcyrillic +PORTVERSION= 1.9 +CATEGORIES= russian converters textproc +MASTER_SITES= http://ext.by/libcyrillic/ +PKGNAMEPREFIX= +DISTNAME= ${PORTNAME:S/^lib//}-${PORTVERSION} + +MAINTAINER= pavel@ext.by +COMMENT= Text manipulation and autodetection for 6 major cyrillic charsets + +MAKE_ENV= WRKSRC="${WRKSRC}" CFLAGS="${CFLAGS}" +MAKEFILE= ${FILESDIR}/Makefile.bsd +INSTALLS_SHLIB= yes + +.if !defined(WITHOUT_OPTIMIZE) +CFLAGS+= -O2 +.endif + +.include diff --git a/russian/libcyrillic/distinfo b/russian/libcyrillic/distinfo new file mode 100644 index 000000000000..1d955c43b38e --- /dev/null +++ b/russian/libcyrillic/distinfo @@ -0,0 +1 @@ +MD5 (cyrillic-1.9.tar.gz) = 1384f1a892c43e3401de523f97a5fb45 diff --git a/russian/libcyrillic/files/Makefile.bsd b/russian/libcyrillic/files/Makefile.bsd new file mode 100644 index 000000000000..907b7555f19c --- /dev/null +++ b/russian/libcyrillic/files/Makefile.bsd @@ -0,0 +1,36 @@ +SRCS= cyrillic.c cyrillic.h cyrillic_export.c cyrillic_export.h +INCS= cyrillic.h cyrillic_export.h +LIB= cyrillic + +MAKEDIR= /usr/share/mk + +SHLIB_MAJOR= 1 +SHLIB_MINOR= 9 + +SHLIB_NAME!= ${MAKE} -V SHLIB_NAME LIB=${LIB} \ + SHLIB_MAJOR=${SHLIB_MAJOR} \ + SHLIB_MINOR=${SHLIB_MINOR} \ + -f ${MAKEDIR}/bsd.lib.mk + +all: lib${LIB}.a ${SHLIB_NAME} + +lib${LIB}.a ${SHLIB_NAME}: ${SRCS} + ${MAKE} LIB=${LIB} \ + SRCS="${SRCS}" \ + CFLAGS="${CFLAGS}" \ + NOPROFILE=true \ + NOOBJ=true \ + SHLIB_MAJOR=${SHLIB_MAJOR} \ + SHLIB_MINOR=${SHLIB_MINOR} \ + -f ${MAKEDIR}/bsd.lib.mk + +install: + mkdir -p ${PREFIX}/include + ${MAKE} LIB=${LIB} \ + LIBDIR=${PREFIX}/lib \ + NOPROFILE=true \ + NOOBJ=true \ + SHLIB_MAJOR=${SHLIB_MAJOR} \ + SHLIB_MINOR=${SHLIB_MINOR} \ + -f ${MAKEDIR}/bsd.lib.mk install + cd ${.CURDIR} && ${BSD_INSTALL_DATA} ${INCS} ${PREFIX}/include diff --git a/russian/libcyrillic/pkg-descr b/russian/libcyrillic/pkg-descr new file mode 100644 index 000000000000..4ae1845e38ac --- /dev/null +++ b/russian/libcyrillic/pkg-descr @@ -0,0 +1,9 @@ +This C library allows to convert cyrillic text from any to any of the following +cyrillic charsets: windows-1251, koi8-r, koi8-u, iso-8859-5, x-mac-cyrillic and +ibm866. Automatic detection of charset is possible for any of those. + +The library also contains a number of automation features and useful service +wrappers that are ready to be easily plugged into any application whenever one +needs more wise features instead of just dumb converting. + +WWW: http://ext.by/libcyrillic/ diff --git a/russian/libcyrillic/pkg-plist b/russian/libcyrillic/pkg-plist new file mode 100644 index 000000000000..7eb6ac845a8d --- /dev/null +++ b/russian/libcyrillic/pkg-plist @@ -0,0 +1,5 @@ +include/cyrillic.h +include/cyrillic_export.h +lib/libcyrillic.a +lib/libcyrillic.so +lib/libcyrillic.so.1