diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2010-01-11 17:00:46 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2010-01-11 17:00:46 +0000 |
commit | 6f083b32f4c4a1e9d43bdeaca12e7afdc66694f3 (patch) | |
tree | ef0ae8f504d313bfec9e6a75e8ee11d309aa5160 /app-i18n/canna | |
parent | Update maintainership to be qa@g.o (diff) | |
download | historical-6f083b32f4c4a1e9d43bdeaca12e7afdc66694f3.tar.gz historical-6f083b32f4c4a1e9d43bdeaca12e7afdc66694f3.tar.bz2 historical-6f083b32f4c4a1e9d43bdeaca12e7afdc66694f3.zip |
Added locale elog, bug #300055. Added CC, CFLAGS and LDFLAGS.
Package-Manager: portage-2.1.7.16/cvs/Linux x86_64
Diffstat (limited to 'app-i18n/canna')
-rw-r--r-- | app-i18n/canna/ChangeLog | 7 | ||||
-rw-r--r-- | app-i18n/canna/Manifest | 3 | ||||
-rw-r--r-- | app-i18n/canna/canna-3.7_p3-r2.ebuild | 158 |
3 files changed, 166 insertions, 2 deletions
diff --git a/app-i18n/canna/ChangeLog b/app-i18n/canna/ChangeLog index 8416bad25f45..0b7cbc8150c9 100644 --- a/app-i18n/canna/ChangeLog +++ b/app-i18n/canna/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-i18n/canna # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/canna/ChangeLog,v 1.64 2010/01/10 18:48:48 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/canna/ChangeLog,v 1.65 2010/01/11 17:00:46 matsuu Exp $ + +*canna-3.7_p3-r2 (11 Jan 2010) + + 11 Jan 2010; MATSUU Takuto <matsuu@gentoo.org> +canna-3.7_p3-r2.ebuild: + Added locale elog, bug #300055. Added CC, CFLAGS and LDFLAGS. 10 Jan 2010; nixnut <nixnut@gentoo.org> canna-3.7_p3-r1.ebuild: ppc stable #297441 diff --git a/app-i18n/canna/Manifest b/app-i18n/canna/Manifest index 8545ce1bac86..cd4595d6ac38 100644 --- a/app-i18n/canna/Manifest +++ b/app-i18n/canna/Manifest @@ -11,6 +11,7 @@ DIST Canna37p2.tar.bz2 1263325 RMD160 21ed7e026cc55f1b8c76a41e7f8cdd4058380a32 S DIST Canna37p3.tar.bz2 1263065 RMD160 33e5eb9e2dc144835db838612897e652acbc60ed SHA1 e39eece7c70c669dd46dd74b26121a60a2496fde SHA256 7d98d925043d3af24f99a8a2a09e3b4d6dfe881efc1303ef4a7f495a0f4542a7 EBUILD canna-3.7_p2.ebuild 3590 RMD160 9573abeb5ef9a1cd942f7490a92f5c3da116db5a SHA1 ebe1340c170922bad100ce0410422cb5c1f6633b SHA256 0081813c9a4b98e141ccf5f0a307cb391e4bbc17956d0a4102f31dbddf6b8fe5 EBUILD canna-3.7_p3-r1.ebuild 3739 RMD160 a84a1d6492f8f0607870fed811adb1df7149f3fe SHA1 5b0deafea101b373efa88421e45bc629998d610e SHA256 b3578cbfe0db38befab47b2d0c29f6bde0f1b1095bf49385b82d43e117c950b4 +EBUILD canna-3.7_p3-r2.ebuild 4400 RMD160 c62c0301ad5a03576f3ab9c37c8786bb85b189fd SHA1 a0bdcd47d97f444179c4a78b8ec7afdfe7dd9625 SHA256 da6cbfa8c79ee4f1934bc67d7c716b8a924e2fc66ece796d82cf5b2e8953a72d EBUILD canna-3.7_p3.ebuild 3616 RMD160 ec65f1ce77e20b328c4a02628645309541e705d7 SHA1 2afd4fddeda2759be4db266b6f684bc53fbce79a SHA256 81c541a857e2e332757f2c612d0a951043de362d4164d8085c8a7162ac6ba2d0 -MISC ChangeLog 9591 RMD160 b1d5288a2d201f80ce29cd6a4a17f294a4f82c29 SHA1 cbab34f99d12f67f7cd941f9ef5ab21b6de87496 SHA256 21db166b59917d845b38fef74fd6c2f4d5f1f8373a7553ee1be7e4ed79787104 +MISC ChangeLog 9762 RMD160 25501ec3a970da6edbfb26458edb8c08bd63a4b1 SHA1 2b370073af00e42eb63cb3ad68d948728007a79d SHA256 18041841fbdac1a89cee1dd72e2c4d47dd9cf2e443f82c3b3fbd5b4a46abad0e MISC metadata.xml 156 RMD160 8adcf0a760a605cd42501f53097ca3a1c4e8daad SHA1 8ccc2b0f20743002b783b1f7b5162c71f7f54c2e SHA256 815820f2e5866d973fafb29a8b8027d022ccea43023309b6dc294cf077598215 diff --git a/app-i18n/canna/canna-3.7_p3-r2.ebuild b/app-i18n/canna/canna-3.7_p3-r2.ebuild new file mode 100644 index 000000000000..327a0f28fb29 --- /dev/null +++ b/app-i18n/canna/canna-3.7_p3-r2.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/canna/canna-3.7_p3-r2.ebuild,v 1.1 2010/01/11 17:00:46 matsuu Exp $ + +inherit cannadic eutils multilib + +MY_P="Canna${PV//./}" +MY_P="${MY_P/_/}" + +DESCRIPTION="A client-server based Kana-Kanji conversion system" +HOMEPAGE="http://canna.sourceforge.jp/" +SRC_URI="mirror://sourceforge.jp/canna/9565/${MY_P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +DEPEND=">=sys-apps/sed-4 + x11-misc/gccmakedep + x11-misc/imake + doc? ( app-text/ptex )" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + + find . -name '*.man' -o -name '*.jmn' | xargs sed -i.bak -e 's/1M/8/g' || die + sed -e "s%@cannapkgver@%${PF}%" \ + "${FILESDIR}"/${PN}-3.7-gentoo.diff.in > "${T}"/${PF}-gentoo.diff || die + epatch "${T}"/${PF}-gentoo.diff + + # bug #248723 + epatch "${FILESDIR}"/${P}-strip.patch + + # Multilib-strict fix for amd64 + sed -i -e "s:\(DefLibCannaDir.*\)/lib:\1/$(get_libdir):g" Canna.conf* || die + # fix deprecated sort syntax + sed -e 's:^\(sortcmd=\".* -s\).*$:\1 -k 1,1\":' \ + -i cmd/mkbindic/mkbindic.cpp || die + + cd "${S}"/dic/phono + epatch "${FILESDIR}"/${PN}-kpdef-gentoo.diff + +} + +src_compile() { + xmkmf || die + + #make libCannaDir=../lib/canna canna || die + # bug #279706 + emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \ + LOCAL_LDFLAGS="${LDFLAGS}" canna || die + + if use doc ; then + einfo "Compiling DVI, PS (and PDF) document" + cd doc/man/guide/tex + xmkmf || die + emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \ + LOCAL_LDFLAGS="${LDFLAGS}" JLATEXCMD=platex \ + DVI2PSCMD="dvips -f" canna.dvi canna.ps || die + if has_version 'app-text/dvipdfmx' && \ + ( has_version 'app-text/acroread' \ + || has_version 'app-text/xpdf-japanese' ); then + emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \ + LOCAL_LDFLAGS="${LDFLAGS}" JLATEXCMD=platex \ + DVI2PSCMD="dvips -f" \ + canna.pdf || die + fi + fi +} + +src_install() { + emake DESTDIR="${D}" install || die + emake DESTDIR="${D}" install.man || die + + # install default.canna (removed from Canna36p4) + insinto /usr/share/canna + newins misc/initfiles/verbose.canna default.canna + + # cannakill should link to /usr/bin/catdic + dosym ../bin/catdic /usr/sbin/cannakill + + dodir /usr/share/man/man8 /usr/share/man/ja/man8 + for man in cannaserver cannakill ; do + for mandir in "${D}"/usr/share/man "${D}"/usr/share/man/ja ; do + mv ${mandir}/man1/${man}.1 ${mandir}/man8/${man}.8 + done + done + + dodoc CHANGES.jp ChangeLog INSTALL* README* WHATIS* + + if use doc ; then + insinto /usr/share/doc/${PF} + doins doc/man/guide/tex/canna.{dvi,ps,pdf} + fi + + newinitd "${FILESDIR}"/${P}.initd canna || die + newconfd "${FILESDIR}"/${P}.confd canna || die + insinto /etc/ ; newins "${FILESDIR}"/canna.hosts hosts.canna || die + keepdir /var/log/canna/ || die + + # for backward compatibility + dosbin "${FILESDIR}"/update-canna-dics_dir + + insinto /var/lib/canna/dic/dics.d/ + newins "${D}"/var/lib/canna/dic/canna/dics.dir 00canna.dics.dir + + # fix permission for user dictionary + keepdir /var/lib/canna/dic/{user,group} + fowners root:bin /var/lib/canna/dic/{user,group} + fperms 775 /var/lib/canna/dic/{user,group} +} + +pkg_postinst() { + update-cannadic-dir + elog + elog "Canna dictionary format has been changed." + elog "You should rebuild app-dict/canna-* after emerge." + elog + + local localearchive="${ROOT}usr/$(get_libdir)/locale/locale-archive" + if [ -f "${localearchive}" -a -x /usr/bin/localedef ] && \ + ! /usr/bin/localedef --list-archive "${localearchive}" | grep -i 'ja_JP.eucjp' >/dev/null 2>&1 ; then + elog "Some dictionary tools in this package require ja_JP.eucJP locale." + elog "Please add ja_JP.eucJP locale to /etc/locale.gen:" + elog + elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen" + elog "# locale-gen" + elog + fi +} + +pkg_prerm() { + if [ -S /tmp/.iroha_unix/IROHA ] ; then + # make sure cannaserver get stopped because otherwise + # we cannot stop it with /etc/init.d after emerge -C canna + einfo + einfo "Stopping Canna for safe unmerge" + einfo + /etc/init.d/canna stop + touch "${T}"/canna.cookie + fi +} + +pkg_postrm() { + if [ -f /usr/sbin/cannaserver -a -e "${T}"/canna.cookie ] ; then + #update-cannadic-dir + einfo + einfo "Restarting Canna" + einfo + /etc/init.d/canna start + rm -f "${T}"/canna.cookie + fi +} |