New package: libuninum-2.7
This commit is contained in:
parent
6ac7127587
commit
00a2a83575
5 changed files with 71 additions and 0 deletions
|
@ -558,6 +558,7 @@ libpackagekit-glib2.so.18 PackageKit-1.1.12_1
|
|||
libpsl.so.5 libpsl-0.20.2_1
|
||||
libsoup-2.4.so.1 libsoup-2.34.0_1
|
||||
libsoup-gnome-2.4.so.1 libsoup-gnome-2.34.0_1
|
||||
libuninum.so.5 libuninum-2.7_1
|
||||
libunique-3.0.so.0 libunique-2.91.4_1
|
||||
libwebkit2gtk-4.0.so.37 webkit2gtk-2.6.2_1
|
||||
libjavascriptcoregtk-4.0.so.18 webkit2gtk-2.6.2_1
|
||||
|
|
1
srcpkgs/libuninum-devel
Symbolic link
1
srcpkgs/libuninum-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
libuninum
|
37
srcpkgs/libuninum/patches/fix-unicode.patch
Normal file
37
srcpkgs/libuninum/patches/fix-unicode.patch
Normal file
|
@ -0,0 +1,37 @@
|
|||
--- uninum.c.orig
|
||||
+++ uninum.c
|
||||
@@ -35,11 +35,11 @@
|
||||
*/
|
||||
|
||||
|
||||
-#define ucslen(x) wcslen((signed long *) x)
|
||||
-#define ucscpy(x,y) (UTF32 *)wcscpy((signed long *)x,(signed long *)y)
|
||||
-#define ucscat(x,y) (UTF32 *)wcscat((signed long *)x,(signed long *)y)
|
||||
-#define ucschr(x,y) (UTF32 *)wcschr((signed long *)x,(signed long)y)
|
||||
-#define ucsrchr(x,y) (UTF32 *)wcsrchr((signed long *)x,(signed long)y)
|
||||
+#define ucslen(x) wcslen((wchar_t *) x)
|
||||
+#define ucscpy(x,y) (UTF32 *)wcscpy((wchar_t *)x,(wchar_t *)y)
|
||||
+#define ucscat(x,y) (UTF32 *)wcscat((wchar_t *)x,(wchar_t *)y)
|
||||
+#define ucschr(x,y) (UTF32 *)wcschr((wchar_t *)x,(wchar_t)y)
|
||||
+#define ucsrchr(x,y) (UTF32 *)wcsrchr((wchar_t *)x,(wchar_t)y)
|
||||
|
||||
#define UNINUM
|
||||
|
||||
--- unicode.h.orig
|
||||
+++ unicode.h
|
||||
@@ -1,8 +1,10 @@
|
||||
-typedef unsigned long UTF32; /* at least 32 bits */
|
||||
-typedef unsigned short UTF16; /* at least 16 bits */
|
||||
-typedef unsigned short UCS2; /* at least 16 bits */
|
||||
-typedef unsigned char UTF8; /* 8 bits */
|
||||
-typedef unsigned char Boolean; /* 0 or 1 */
|
||||
+#include <stdint.h>
|
||||
+
|
||||
+typedef uint32_t UTF32; /* 32 bits */
|
||||
+typedef uint16_t UTF16; /* 16 bits */
|
||||
+typedef uint16_t UCS2; /* 16 bits */
|
||||
+typedef uint8_t UTF8; /* 8 bits */
|
||||
+typedef uint8_t Boolean; /* 0 or 1 */
|
||||
|
||||
#define UNI_MAX_ASCII (UTF32)0x0000007F
|
||||
#define UNI_MAX_BMP (UTF32)0x0000FFFF
|
31
srcpkgs/libuninum/template
Normal file
31
srcpkgs/libuninum/template
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Template file for 'libuninum'
|
||||
pkgname=libuninum
|
||||
version=2.7
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
makedepends="gmp-devel"
|
||||
short_desc="Library for converting between numbers and strings"
|
||||
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
||||
license="LGPL-2.1-only"
|
||||
homepage="http://billposer.org/Software/libuninum.html"
|
||||
distfiles="http://billposer.org/Software/Downloads/libuninum-${version}.tar.bz2"
|
||||
checksum=e704983c3c00e9b76bd836b8b83ce31bfe4eb1752eee8be123cf97c1275076ea
|
||||
|
||||
libuninum-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove "usr/lib/*.so"
|
||||
vmove "usr/lib/*.a"
|
||||
}
|
||||
}
|
||||
|
||||
numconv_package() {
|
||||
short_desc="Utility for converting between numbers and strings"
|
||||
license="GPL-2.0-only"
|
||||
pkg_install() {
|
||||
vmove usr/bin
|
||||
vmove usr/share
|
||||
}
|
||||
}
|
1
srcpkgs/numconv
Symbolic link
1
srcpkgs/numconv
Symbolic link
|
@ -0,0 +1 @@
|
|||
libuninum
|
Loading…
Reference in a new issue