From 32130be4950adbb2415225e5d1817bf8006e0a9e Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Fri, 16 Mar 2007 20:02:47 +0000 Subject: [PATCH] * added pg_collkey (0.2) - International UTF-8 collation for PostgreSQL git-svn-id: svn://svn.opensde.net/opensde/package/trunk@20460 10447126-35f2-4685-b0cf-6dd780d3921f --- database/pg_collkey/pg_collkey.cache | 22 ++++++++++++++++ database/pg_collkey/pg_collkey.conf | 25 ++++++++++++++++++ database/pg_collkey/pg_collkey.desc | 39 ++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 database/pg_collkey/pg_collkey.cache create mode 100644 database/pg_collkey/pg_collkey.conf create mode 100644 database/pg_collkey/pg_collkey.desc diff --git a/database/pg_collkey/pg_collkey.cache b/database/pg_collkey/pg_collkey.cache new file mode 100644 index 000000000..46dea705f --- /dev/null +++ b/database/pg_collkey/pg_collkey.cache @@ -0,0 +1,22 @@ + +[TIMESTAMP] 1174073125 Fri Mar 16 21:25:25 2007 +[BUILDTIME] 0 (5) +[SIZE] 0.02 MB, 8 files + +[DEP] 00-dirtree +[DEP] bash +[DEP] binutils +[DEP] bzip2 +[DEP] coreutils +[DEP] diffutils +[DEP] findutils +[DEP] gawk +[DEP] gcc +[DEP] glibc +[DEP] grep +[DEP] icu4c +[DEP] make +[DEP] postgresql +[DEP] sed +[DEP] sysfiles +[DEP] tar diff --git a/database/pg_collkey/pg_collkey.conf b/database/pg_collkey/pg_collkey.conf new file mode 100644 index 000000000..f074f6da8 --- /dev/null +++ b/database/pg_collkey/pg_collkey.conf @@ -0,0 +1,25 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../pg_collkey/pg_collkey.conf +# Copyright (C) 2007 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +pkgprefix -t icu4c +var_append makeopt ' ' "icu_libdir=$root$( pkgprefix libdir icu4c )" +makeinstopt= + +pkgprefix -t postgresql + +pg_collkey_install() { + cp -vf collkey_icu.so $root$( pkgprefix libdir postgresql ) + cp -vf collkey_icu.sql $root$( pkgprefix datadir postgresql ) +} +hook_add postmake 5 'pg_collkey_install' diff --git a/database/pg_collkey/pg_collkey.desc b/database/pg_collkey/pg_collkey.desc new file mode 100644 index 000000000..b2c4252da --- /dev/null +++ b/database/pg_collkey/pg_collkey.desc @@ -0,0 +1,39 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../pg_collkey/pg_collkey.desc +[COPY] Copyright (C) 2007 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] International UTF-8 collation for PostgreSQL + +[T] Pg_collkey is a wrapper to use the collation functions of the ICU library +[T] with a PostgreSQL database server. Using this wrapper, you can specify +[T] the desired locale for sorting UTF-8 strings directly in the SQL query, +[T] rather than setting it during database installation. Default Unicode +[T] collation (DUCET) is supported. You can select whether punctuation should +[T] be a primary collation attribute or not. The level of comparison can be +[T] limited (in order to ignore accents, for example). Numeric sequences of +[T] strings can be recognized, so that 'test2' sorts before 'test10'. This +[T] library is dependent on ICU. + +[U] http://www.flexiguided.de/publications.pgcollkey.en.html + +[A] Jan Behrens +[M] Nagy Karoly Gabriel + +[C] extra/database + +[L] BSD +[S] Beta +[V] 0.2 +[P] X -----5---9 130.000 + +[D] 1525007794 pg_collkey-v0.2.tar.gz http://www.flexiguided.de/pub/