diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-10-25 11:29:36 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-10-25 11:29:36 +0000 |
commit | 214321c7f88c53bc071d11b52872162854a45102 (patch) | |
tree | c6f78b75633fbd13e8a017e5a520710153c45ffa /app-i18n | |
parent | - (diff) | |
download | historical-214321c7f88c53bc071d11b52872162854a45102.tar.gz historical-214321c7f88c53bc071d11b52872162854a45102.tar.bz2 historical-214321c7f88c53bc071d11b52872162854a45102.zip |
Add patches by Zhang Le for fixing bug #240024 (fix curses/gpm search, fix amd64, fix building with new linux-headers).
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64
Diffstat (limited to 'app-i18n')
-rw-r--r-- | app-i18n/zhcon/ChangeLog | 6 | ||||
-rw-r--r-- | app-i18n/zhcon/Manifest | 14 | ||||
-rw-r--r-- | app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch | 76 | ||||
-rw-r--r-- | app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch | 18 | ||||
-rw-r--r-- | app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch | 77 | ||||
-rw-r--r-- | app-i18n/zhcon/files/zhcon-0.2.6-curses.patch | 22 | ||||
-rw-r--r-- | app-i18n/zhcon/zhcon-0.2.6-r1.ebuild | 40 |
7 files changed, 171 insertions, 82 deletions
diff --git a/app-i18n/zhcon/ChangeLog b/app-i18n/zhcon/ChangeLog index 5e1125ded164..e24754aaf7cd 100644 --- a/app-i18n/zhcon/ChangeLog +++ b/app-i18n/zhcon/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-i18n/zhcon # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/zhcon/ChangeLog,v 1.12 2008/06/09 12:46:04 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/zhcon/ChangeLog,v 1.13 2008/10/25 11:29:36 flameeyes Exp $ + + 25 Oct 2008; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Add patches by Zhang Le for fixing bug #240024 (fix curses/gpm search, fix + amd64, fix building with new linux-headers). 09 Jun 2008; Diego Pettenò <flameeyes@gentoo.org> +files/zhcon-0.2.6+gcc-4.3.patch, zhcon-0.2.6.ebuild: diff --git a/app-i18n/zhcon/Manifest b/app-i18n/zhcon/Manifest index 516abc548760..8eba0fc555e2 100644 --- a/app-i18n/zhcon/Manifest +++ b/app-i18n/zhcon/Manifest @@ -1,19 +1,23 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX zhcon-0.2.5.make-fix.patch 5527 RMD160 7a0a489bd6bf0278f42db87f45df74f9a8aeae61 SHA1 541104a7efe3f87872a4008b99f99a21b269b5e8 SHA256 5863ac3ddc62c82cb732c94d565d3f03b528082461f1e71f3d96452ce994fb3a +AUX zhcon-0.2.5.make-fix.patch 2618 RMD160 5d8187c897778a59396f58153545b75e291438b2 SHA1 c6495517ba7db32b014c20ec437144175fb8e446 SHA256 1ded6c08749c60d73a7071eb2a19833176da2b880025b4f457077f0f99de236e AUX zhcon-0.2.6+gcc-4.3.patch 5808 RMD160 486be46a85c08ac9b000bfd318b5a5a741dad655 SHA1 a023af19544257790f04470b85a1d0a42f126e70 SHA256 376503635df1d7d420d3979535db8b41ceeaf3c53643d2cf5ca0582bb5ebc068 +AUX zhcon-0.2.6+linux-headers-2.6.26.patch 527 RMD160 f05e417df9330f6d9233096f0f800e99fa871606 SHA1 f6a10c6d8075e90cb4be6a82fb14a46fb1143ff2 SHA256 4ac96b499010b099789fc2fb44715e4c30b170b37ca70512512fb2f02a085473 +AUX zhcon-0.2.6-amd64.patch 2760 RMD160 140a39cd02f9ccd107b4f727d4aacdc32fa93ea0 SHA1 adfb57f4aa24cc9f7f2f6e88e0dc93f5f80c2349 SHA256 86af4cd283c5b83fbb427248d79dd5a13e379870b735c678bb041736750ff103 +AUX zhcon-0.2.6-curses.patch 694 RMD160 41255902689919399659903f238300a87e22054e SHA1 6cf0ce421f38fdd929af179e8045e36156612b89 SHA256 7f64f8bba73ae1a5d8bc177ad8c2afec2c4993b618625b12f0e6ef89f381555b AUX zhcon-0.2.6.configure.in.patch 392 RMD160 8c221f9afeb13a0138b01744c7317e386c00223b SHA1 2fa7870749a0bc3d96574daf0982b298c4f44d4f SHA256 d2e745898117b9821f955f1b270dc346d50963b00f36bb740e17bb434adf5c25 AUX zhcon-0.2.6.sysconfdir.patch 876 RMD160 9ba739cdeede33d0baf51e8ca6002af34e548925 SHA1 4bb3c6f6141892b92e4fd1ca526c8eee14e60632 SHA256 a3ed1ff674cf65145cee27ead683b6da969d529a566e136b21367bc31f863319 DIST zhcon-0.2.5-to-0.2.6.diff.gz 2881 RMD160 b461e19f79c7a904d79f889106418eefee433d1c SHA1 524e82d1bf362101df777d31d81f2b9c035d5881 SHA256 c9da3f7290f7d74f3ca4f0d78c00c73c0100bcca5eba5d08c629ddc6c7ced9e1 DIST zhcon-0.2.5.tar.gz 5011644 RMD160 d72650f5f08eaedca55006c4cd96e45b1890abc4 SHA1 5e76471e75e8eefa72b29fcc05042d9539140f69 SHA256 4ce4dc1395b6f6a920d44aac069a284bff76df4019ac4164850d263538465d59 +EBUILD zhcon-0.2.6-r1.ebuild 1164 RMD160 e5d4b851b3353fb84a3b387bf69b6f5c54bd553c SHA1 49fc9ea74f30fe2154fab9ccbb98a0f62e4f1267 SHA256 869afe5a6f3e4e143e08a8f0456d906e00b8113f8fdf797663d8bd8448fa18a4 EBUILD zhcon-0.2.6.ebuild 1021 RMD160 c8822dbb56907478ee07d59c4fe23bd5c9ae9994 SHA1 1aa611d2618b10176f3e9f794561284a585c4997 SHA256 0f8d3be72f775c9ea8f94c759ac0ca6b899d5f02ff4939b5285472479f6046fb -MISC ChangeLog 2162 RMD160 868648f6c60f6bf20b1d127b3c99cbbd2eff23ac SHA1 8686a6b310cfb24a346c2799bc174132fe3e2ff9 SHA256 cfa6de73aca5acea7895d07588109fdc1c2a82c0d0b2b1717f575f692c2002fb +MISC ChangeLog 2351 RMD160 976edba59ed2721125bb4f9f0f7e0ae0342fd99d SHA1 ae65e2b71af5271837f3ae9df1efd3b658ad2ae2 SHA256 c6cb3c3d0cfde825436ab2f570221dca690d40d01976836c3106300c32aadf57 MISC metadata.xml 750 RMD160 beb031eb331d160e5d6447372763cd12f8e9ad18 SHA1 43d5cada96eddcc17fa6f28aec05018881ff1a90 SHA256 2ac7b724d74307141da102e0cfc8e3eb75688340c0360beb05f1a3e8739b85c5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) -iEYEARECAAYFAkhNJhIACgkQAiZjviIA2XjcvgCcDcqDlh5rBbGNLnsXADGhpdLq -gzMAoOtqew3EEdLE1ZFzyBy0l+ke7jAw -=CKwL +iEYEARECAAYFAkkDAyUACgkQAiZjviIA2Xg3IwCeLlzBj9S2DQCWbgaB/Df3YSFo +R10AnRNNYzfqhVUtlqbj3j3Yr3rNT+GG +=I4fP -----END PGP SIGNATURE----- diff --git a/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch b/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch index 182c80b8dd1d..b0485b97e9e7 100644 --- a/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch +++ b/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch @@ -13,24 +13,6 @@ diff -Nur zhcon-0.2.5.orig/doc/Makefile.am zhcon-0.2.5/doc/Makefile.am uninstall-local: - -rm -f $(mandir)/man1/zhcon.1 + -rm -f $(DESTDIR)$(mandir)/man1/zhcon.1 -diff -Nur zhcon-0.2.5.orig/doc/Makefile.in zhcon-0.2.5/doc/Makefile.in ---- zhcon-0.2.5.orig/doc/Makefile.in 2006-06-21 18:02:23.000000000 +0800 -+++ zhcon-0.2.5/doc/Makefile.in 2006-06-21 18:13:30.000000000 +0800 -@@ -326,11 +326,11 @@ - - - install-data-local: -- $(mkinstalldirs) $(mandir)/man1/ -- $(INSTALL_DATA) $(top_builddir)/doc/zhcon.1 $(mandir)/man1/zhcon.1 -+ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1/ -+ $(INSTALL_DATA) $(top_builddir)/doc/zhcon.1 $(DESTDIR)$(mandir)/man1/zhcon.1 - - uninstall-local: -- -rm -f $(mandir)/man1/zhcon.1 -+ -rm -f $(DESTDIR)$(mandir)/man1/zhcon.1 - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: diff -Nur zhcon-0.2.5.orig/font/Makefile.am zhcon-0.2.5/font/Makefile.am --- zhcon-0.2.5.orig/font/Makefile.am 2006-06-21 18:02:23.000000000 +0800 +++ zhcon-0.2.5/font/Makefile.am 2006-06-21 18:14:30.000000000 +0800 @@ -46,24 +28,6 @@ diff -Nur zhcon-0.2.5.orig/font/Makefile.am zhcon-0.2.5/font/Makefile.am uninstall-local: - -rm -f $(libdir)/zhcon/font/*.bpsf + -rm -f $(DESTDIR)$(libdir)/zhcon/font/*.bpsf -diff -Nur zhcon-0.2.5.orig/font/Makefile.in zhcon-0.2.5/font/Makefile.in ---- zhcon-0.2.5.orig/font/Makefile.in 2006-06-21 18:02:23.000000000 +0800 -+++ zhcon-0.2.5/font/Makefile.in 2006-06-21 18:15:02.000000000 +0800 -@@ -321,11 +321,11 @@ - - - install-data-local: -- $(mkinstalldirs) $(libdir)/zhcon/font/ -- $(INSTALL_DATA) $(srcdir)/*.bpsf $(libdir)/zhcon/font/ -+ $(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/font/ -+ $(INSTALL_DATA) $(srcdir)/*.bpsf $(DESTDIR)$(libdir)/zhcon/font/ - - uninstall-local: -- -rm -f $(libdir)/zhcon/font/*.bpsf -+ -rm -f $(DESTDIR)$(libdir)/zhcon/font/*.bpsf - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: diff -Nur zhcon-0.2.5.orig/input/Makefile.am zhcon-0.2.5/input/Makefile.am --- zhcon-0.2.5.orig/input/Makefile.am 2006-06-21 18:02:23.000000000 +0800 +++ zhcon-0.2.5/input/Makefile.am 2006-06-21 18:15:35.000000000 +0800 @@ -79,24 +43,6 @@ diff -Nur zhcon-0.2.5.orig/input/Makefile.am zhcon-0.2.5/input/Makefile.am uninstall-local: - -rm -f $(libdir)/zhcon/input/*.mb + -rm -f $(DESTDIR)$(libdir)/zhcon/input/*.mb -diff -Nur zhcon-0.2.5.orig/input/Makefile.in zhcon-0.2.5/input/Makefile.in ---- zhcon-0.2.5.orig/input/Makefile.in 2006-06-21 18:02:23.000000000 +0800 -+++ zhcon-0.2.5/input/Makefile.in 2006-06-21 18:16:02.000000000 +0800 -@@ -321,11 +321,11 @@ - - - install-data-local: -- $(mkinstalldirs) $(libdir)/zhcon/input/ -- $(INSTALL_DATA) $(srcdir)/*.mb $(libdir)/zhcon/input/ -+ $(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/input/ -+ $(INSTALL_DATA) $(srcdir)/*.mb $(DESTDIR)$(libdir)/zhcon/input/ - - uninstall-local: -- -rm -f $(libdir)/zhcon/input/*.mb -+ -rm -f $(DESTDIR)$(libdir)/zhcon/input/*.mb - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: diff -Nur zhcon-0.2.5.orig/src/Makefile.am zhcon-0.2.5/src/Makefile.am --- zhcon-0.2.5.orig/src/Makefile.am 2006-06-21 18:02:23.000000000 +0800 +++ zhcon-0.2.5/src/Makefile.am 2006-06-22 08:35:42.000000000 +0800 @@ -119,25 +65,3 @@ diff -Nur zhcon-0.2.5.orig/src/Makefile.am zhcon-0.2.5/src/Makefile.am # set the include path found by configure INCLUDES= $(all_includes) -diff -Nur zhcon-0.2.5.orig/src/Makefile.in zhcon-0.2.5/src/Makefile.in ---- zhcon-0.2.5.orig/src/Makefile.in 2006-06-21 18:02:23.000000000 +0800 -+++ zhcon-0.2.5/src/Makefile.in 2006-06-22 08:36:05.000000000 +0800 -@@ -602,14 +602,14 @@ - - - install-exec-local: -- chmod 4755 $(bindir)/zhcon -+ chmod 4755 $(DESTDIR)$(bindir)/zhcon - - install-data-local: -- $(mkinstalldirs) $(prefix)/etc -- $(INSTALL_DATA) $(srcdir)/zhcon.conf $(prefix)/etc/zhcon.conf -+ $(mkinstalldirs) $(DESTDIR)/etc -+ $(INSTALL_DATA) $(srcdir)/zhcon.conf $(DESTDIR)/etc/zhcon.conf - - uninstall-local: -- -rm -f $(prefix)/etc/zhcon.conf -+ -rm -f $(DESTDIR)/etc/zhcon.conf - - # the library search path. - #zhcon_LDFLAGS = $(all_libraries) -L/usr/lib/unicon diff --git a/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch b/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch new file mode 100644 index 000000000000..67d5b961a070 --- /dev/null +++ b/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch @@ -0,0 +1,18 @@ +diff --git a/src/display/lrmi.c b/src/display/lrmi.c +index 85c6fe6..5c74260 100644 +--- a/src/display/lrmi.c ++++ b/src/display/lrmi.c +@@ -33,6 +33,13 @@ This software has NO WARRANTY. Use it at your own risk. + + #include "lrmi.h" + ++#if defined(__linux__) && !defined(TF_MASK) ++ #define TF_MASK X86_EFLAGS_TF ++ #define IF_MASK X86_EFLAGS_IF ++ #define VIF_MASK X86_EFLAGS_VIF ++ #define IOPL_MASK X86_EFLAGS_IOPL ++#endif ++ + #define REAL_MEM_BASE ((void *)0x10000) + #define REAL_MEM_SIZE 0x10000 + #define REAL_MEM_BLOCKS 0x100 diff --git a/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch b/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch new file mode 100644 index 000000000000..58da5e99766a --- /dev/null +++ b/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch @@ -0,0 +1,77 @@ +diff --git a/src/winime.cpp b/src/winime.cpp +index 0c52393..85729a3 100644 +--- a/src/winime.cpp ++++ b/src/winime.cpp +@@ -56,10 +56,10 @@ mCandilistBufLen(0) + + memcpy(&mHead, mpBuf, sizeof(mHead)); + int len = strlen(mHead.mCodeSet); +- mpIndex1 = (char **) (mpBuf + sizeof(mHead)); +- mpIndex2 = (char **) (mpBuf + sizeof(mHead) + len * sizeof(char *)); +- mpText = mpBuf + sizeof(mHead) + len * sizeof(char *) + +- len * len * sizeof(char *); ++ mpIndex1 = (int *) (mpBuf + sizeof(mHead)); ++ mpIndex2 = (int *) (mpBuf + sizeof(mHead) + len * sizeof(int)); ++ mpText = mpBuf + sizeof(mHead) + len * sizeof(int) + ++ len * len * sizeof(int); + } + + WinIme::~WinIme() { +@@ -246,32 +246,33 @@ int WinIme::Search(char c) { + // p = *t; + } + else +- p = mpIndex1[Index(c)]; ++ p = (char *)mpIndex1[Index(c)]; + + if (p == (char *) 0xffffffff) + found = false; +- p = (unsigned int) p + mpText; ++ p = (unsigned long) p + mpText; + } //2nd level index + else if (mNum == 1) { + int l = strlen(mHead.mCodeSet); + if (c == mHead.mWildChar) { + char **t; + t = +- find_if(mpIndex2 + Index(mInput[0]) * l, +- mpIndex2 + (Index(mInput[0]) + 1) * l, ++ find_if((char **)(mpIndex2 + Index(mInput[0]) * l), ++ (char **)(mpIndex2 + (Index(mInput[0]) + 1) * l), + bind2nd(not_equal_to < char *>(), + (char *) 0xffffffff)); +- if (t == mpIndex2 + (Index(mInput[0]) + 1) * l) ++ if (t == ((char **)mpIndex2) + (Index(mInput[0]) + 1) * l) + p = (char *) 0xffffffff; + else + p = *t; +- } else +- p = mpIndex2[Index(mInput[0]) * l + Index(c)]; ++ } else { ++ int dd = Index(mInput[0]) * l + Index(c); ++ p = (char *)(mpIndex2[Index(mInput[0]) * l + Index(c)]); ++ } + + if (p == (char *) 0xffffffff) + found = false; +- +- p = (unsigned int) p + mpText; ++ p = (unsigned long) p + mpText; + } else if (mNum < mHead.mMaxCodes) { + p = mpOffset[mNum - 1]; + if (p == (char *) 0xffffffff) +diff --git a/src/winime.h b/src/winime.h +index c2f51ab..816a270 100644 +--- a/src/winime.h ++++ b/src/winime.h +@@ -83,8 +83,8 @@ class WinIme { + char* mpOffset[12]; + int mFd; + char* mpBuf; +- char** mpIndex1; +- char** mpIndex2; ++ int *mpIndex1; ++ int *mpIndex2; + char* mpText; + char* mpCur; //current search position + unsigned int mBufSize; diff --git a/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch b/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch new file mode 100644 index 000000000000..200014e1d717 --- /dev/null +++ b/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch @@ -0,0 +1,22 @@ +diff --git a/configure.in b/configure.in +index 63172e4..6c2afcc 100644 +--- a/configure.in ++++ b/configure.in +@@ -132,7 +132,7 @@ fi + AC_SUBST(ZHCON_LOCALE_DIR) + + AC_CHECK_LIB(util, forkpty) +-AC_CHECK_LIB(curses, main) ++AC_SEARCH_LIBS([tgetent], [cursesw curses ncursesw ncurses], [break;]) + + dnl for freebsd + dnl AC_CHECK_LIB(c, i386_set_ioperm) +@@ -172,7 +172,7 @@ dnl Checks for gpm + dnl----------------------------------------------------------------------- + usegpm="yes" + AC_CHECK_HEADERS(gpm.h,,usegpm="no") +-AC_CHECK_LIB(gpm,main,,usegpm="no") ++AC_CHECK_LIB(gpm,Gpm_Open,,usegpm="no") + + dnl----------------------------------------------------------------------- + dnl Checks for libggi diff --git a/app-i18n/zhcon/zhcon-0.2.6-r1.ebuild b/app-i18n/zhcon/zhcon-0.2.6-r1.ebuild new file mode 100644 index 000000000000..3e84f6b3660d --- /dev/null +++ b/app-i18n/zhcon/zhcon-0.2.6-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/zhcon/zhcon-0.2.6-r1.ebuild,v 1.1 2008/10/25 11:29:36 flameeyes Exp $ + +WANT_AUTOMAKE="1.9" + +inherit eutils autotools + +MY_P=${P/6/5} +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="A Fast CJK (Chinese/Japanese/Korean) Console Environment" +HOMEPAGE="http://zhcon.sourceforge.net/" +SRC_URI="mirror://sourceforge/zhcon/${MY_P}.tar.gz + mirror://sourceforge/zhcon/zhcon-0.2.5-to-0.2.6.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${DISTDIR}"/zhcon-0.2.5-to-0.2.6.diff.gz + epatch "${FILESDIR}"/zhcon-0.2.5.make-fix.patch + epatch "${FILESDIR}"/${P}.sysconfdir.patch + epatch "${FILESDIR}"/${P}.configure.in.patch + epatch "${FILESDIR}"/${P}+gcc-4.3.patch + epatch "${FILESDIR}"/${P}+linux-headers-2.6.26.patch + epatch "${FILESDIR}"/${P}-curses.patch + epatch "${FILESDIR}"/${P}-amd64.patch + eautoreconf +} + +src_install() { + emake -j1 DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog README NEWS TODO THANKS + dodoc ABOUT-NLS README.BSD README.gpm README.utf8 +} |