mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
app-i18n/multiskkserv: update patch to build with dev-db/tinycdb
Package-Manager: Portage-2.3.6, Repoman-2.3.1
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 648f742..2ac4e92 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -108,22 +108,24 @@ if test "$with_cdb" = "no"; then
|
||||
else
|
||||
if test "$with_cdb" = "yes"; then
|
||||
for i in /usr/local /usr; do
|
||||
- if test -d "$i/include" -a -f "$i/include/cdb.h"; then
|
||||
- CDB_DIR="$i"
|
||||
- CDB_INCLUDES="-I$i/include"
|
||||
- available_cdb="yes"
|
||||
- for j in cdb.a buffer.a unix.a byte.a alloc.a; do
|
||||
- if test -f "$i/lib/$j"; then
|
||||
- LIBADD_CDB="$LIBADD_CDB $i/lib/$j"
|
||||
- else
|
||||
- available_cdb="no"
|
||||
- break
|
||||
- fi
|
||||
- done
|
||||
- if test "$available_cdb" = "yes"; then
|
||||
- break
|
||||
- fi
|
||||
- fi
|
||||
+ for inc in include include/cdb; do
|
||||
+ if test -d "$i/$inc" -a -f "$i/$inc/cdb.h"; then
|
||||
+ CDB_DIR="$i"
|
||||
+ CDB_INCLUDES="-I$i/$inc"
|
||||
+ available_cdb="yes"
|
||||
+ for j in cdb.a buffer.a unix.a byte.a alloc.a; do
|
||||
+ if test -f "$i/lib/$j"; then
|
||||
+ LIBADD_CDB="$LIBADD_CDB $i/lib/$j"
|
||||
+ else
|
||||
+ available_cdb="no"
|
||||
+ break
|
||||
+ fi
|
||||
+ done
|
||||
+ if test "$available_cdb" = "yes"; then
|
||||
+ break
|
||||
+ fi
|
||||
+ fi
|
||||
+ done
|
||||
done
|
||||
else
|
||||
if test -d "$with_cdb" -a -f "$with_cdb/cdb.h"; then
|
||||
52
app-i18n/multiskkserv/files/multiskkserv-cdb.patch
Normal file
52
app-i18n/multiskkserv/files/multiskkserv-cdb.patch
Normal file
@@ -0,0 +1,52 @@
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -126,19 +126,38 @@
|
||||
fi
|
||||
done
|
||||
else
|
||||
- if test -d "$with_cdb" -a -f "$with_cdb/cdb.h"; then
|
||||
- CDB_DIR="$with_cdb"
|
||||
- CDB_INCLUDES="-I$with_cdb"
|
||||
- available_cdb="yes"
|
||||
- for j in cdb.a buffer.a unix.a byte.a alloc.a; do
|
||||
- if test -f "$with_cdb/$j"; then
|
||||
- LIBADD_CDB="$LIBADD_CDB $with_cdb/$j"
|
||||
+ for i in include include/cdb; do
|
||||
+ if test -f "$with_cdb/$i/cdb.h"; then
|
||||
+ CDB_DIR="$with_cdb"
|
||||
+ CDB_INCLUDES="-I$with_cdb/$i"
|
||||
+ available_cdb="yes"
|
||||
+ if test -f "$with_cdb/$i/uint32.h"; then
|
||||
+ for l in lib64 lib32 lib; do
|
||||
+ for a in cdb.a alloc.a buffer.a byte.a unix.a; do
|
||||
+ if test -f "$with_cdb/$l/$a"; then
|
||||
+ LIBADD_CDB="$LIBADD_CDB $with_cdb/$l/$a"
|
||||
+ else
|
||||
+ LIBADD_CDB=""
|
||||
+ available_cdb="no"
|
||||
+ break
|
||||
+ fi
|
||||
+ done
|
||||
+ if test "$available_cdb" = "yes"; then
|
||||
+ break
|
||||
+ fi
|
||||
+ done
|
||||
else
|
||||
- available_cdb="no"
|
||||
- break
|
||||
+ save_LIBS="$LIBS"
|
||||
+ AC_CHECK_LIB(cdb, cdb_init)
|
||||
+ LIBS="$save_LIBS"
|
||||
+ LIBADD_CDB="-lcdb"
|
||||
+ AC_DEFINE(USE_TINYCDB, 1, [Use tinycdb])
|
||||
fi
|
||||
- done
|
||||
- fi
|
||||
+ fi
|
||||
+ if test "$available_cdb" = "yes"; then
|
||||
+ break
|
||||
+ fi
|
||||
+ done
|
||||
fi
|
||||
if test "$available_cdb" = "yes"; then
|
||||
AC_MSG_RESULT([cdb found, path: $CDB_DIR])
|
||||
@@ -14,11 +14,14 @@ SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-db/cdb
|
||||
DEPEND="|| (
|
||||
dev-db/tinycdb
|
||||
dev-db/cdb
|
||||
)
|
||||
test? ( app-i18n/nkf )"
|
||||
RDEPEND="app-i18n/skk-jisyo[cdb]"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-cdb.patch )
|
||||
PATCHES=( "${FILESDIR}"/${PN}-cdb.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
@@ -27,7 +30,7 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --with-cdb=yes
|
||||
econf --with-cdb="${EPREFIX}"/usr
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
Reference in New Issue
Block a user