diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2007-01-07 14:38:30 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2007-01-07 14:38:30 +0000 |
commit | 49e622551e9e395923783d9435af7a51d739b507 (patch) | |
tree | 30392cc9eeed9a609f6136a130d4cff2636f345d | |
parent | fb80bfa99d3192ebca466b3a1891009f2153f915 (diff) | |
download | ports-49e622551e9e395923783d9435af7a51d739b507.tar.gz ports-49e622551e9e395923783d9435af7a51d739b507.zip |
This is a library for converting Unicode strings to numbers.
Standard functions like strtoul and strtod do this for numbers
written in the usual Western number system using the Indo-Arabic
numerals, but they do not handle other number systems.
The main functions take as input a UTF-32 Unicode string and
compute the corresponding unsigned integer.
WWW: http://billposer.org/Software/libuninum.html
Notes
Notes:
svn path=/head/; revision=181689
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/libuninum/Makefile | 28 | ||||
-rw-r--r-- | devel/libuninum/distinfo | 3 | ||||
-rw-r--r-- | devel/libuninum/files/patch-ltmain.sh | 15 | ||||
-rw-r--r-- | devel/libuninum/pkg-descr | 8 | ||||
-rw-r--r-- | devel/libuninum/pkg-plist | 8 |
6 files changed, 63 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index d18d4f803514..3afaadf83f8c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -604,6 +604,7 @@ SUBDIR += libtool15 SUBDIR += libukcprog SUBDIR += libunicode + SUBDIR += libuninum SUBDIR += libusb SUBDIR += libvanessa_adt SUBDIR += libvanessa_logger diff --git a/devel/libuninum/Makefile b/devel/libuninum/Makefile new file mode 100644 index 000000000000..8bb354bb3c29 --- /dev/null +++ b/devel/libuninum/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: libuninum +# Date created: 2007-01-07 +# Whom: Cheng-Lung Sung <clsung@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= libuninum +PORTVERSION= 1.2 +CATEGORIES= devel +MASTER_SITES= http://billposer.org/Software/Downloads/ +EXTRACT_SUFX= .tgz + +MAINTAINER= clsung@FreeBSD.org +COMMENT= Library for converting Unicode strings to numbers + +LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 + +GNU_CONFIGURE= yes +CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" +MAKE_ENV+= INCLUDES="-I${LOCALBASE}/include" +LDFLAGS+= -L${LOCALBASE}/lib +USE_LDCONFIG= yes + +post-patch: + ${REINPLACE_CMD} -e 's|uninum/||' ${WRKSRC}/uninum.c ${WRKSRC}/numconv.c + +.include <bsd.port.mk> diff --git a/devel/libuninum/distinfo b/devel/libuninum/distinfo new file mode 100644 index 000000000000..8bd40d941c3f --- /dev/null +++ b/devel/libuninum/distinfo @@ -0,0 +1,3 @@ +MD5 (libuninum-1.2.tgz) = 790f057501fb7cd96ee4a78b38c22f19 +SHA256 (libuninum-1.2.tgz) = 1af42162f0cd4028a10f27b341d2be2395bedfac336975149eaef8425c8dc439 +SIZE (libuninum-1.2.tgz) = 340453 diff --git a/devel/libuninum/files/patch-ltmain.sh b/devel/libuninum/files/patch-ltmain.sh new file mode 100644 index 000000000000..8a01c629fef2 --- /dev/null +++ b/devel/libuninum/files/patch-ltmain.sh @@ -0,0 +1,15 @@ +--- ltmain.sh.orig Sun Jan 22 03:36:15 2006 ++++ ltmain.sh Sun Jan 7 22:28:13 2007 +@@ -5995,10 +5995,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/devel/libuninum/pkg-descr b/devel/libuninum/pkg-descr new file mode 100644 index 000000000000..d8fb16ec043e --- /dev/null +++ b/devel/libuninum/pkg-descr @@ -0,0 +1,8 @@ +This is a library for converting Unicode strings to numbers. +Standard functions like strtoul and strtod do this for numbers +written in the usual Western number system using the Indo-Arabic +numerals, but they do not handle other number systems. +The main functions take as input a UTF-32 Unicode string and +compute the corresponding unsigned integer. + +WWW: http://billposer.org/Software/libuninum.html diff --git a/devel/libuninum/pkg-plist b/devel/libuninum/pkg-plist new file mode 100644 index 000000000000..a0ec05290779 --- /dev/null +++ b/devel/libuninum/pkg-plist @@ -0,0 +1,8 @@ +@comment $FreeBSD$ +bin/numconv +include/uninum/uninum.h +include/uninum/nsdefs.h +lib/libuninum.so.2 +lib/libuninum.so +lib/libuninum.a +@dirrmtry include/uninum |