diff options
author | Mamoru Komachi <usata@gentoo.org> | 2003-09-22 19:26:08 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2003-09-22 19:26:08 +0000 |
commit | e005c5e6086e21eaeee13b7d2c3b9c0cdd403180 (patch) | |
tree | b34da0ba502081a69a36cc83dcd7b77147f70013 /app-i18n/canna/canna-3.6_p4.ebuild | |
parent | Version bumped. Fixed numerous bugs in ebuild. See ChangeLog for detail (diff) | |
download | gentoo-2-e005c5e6086e21eaeee13b7d2c3b9c0cdd403180.tar.gz gentoo-2-e005c5e6086e21eaeee13b7d2c3b9c0cdd403180.tar.bz2 gentoo-2-e005c5e6086e21eaeee13b7d2c3b9c0cdd403180.zip |
Version bumped. Fixed numerous bugs in ebuild. See ChangeLog for detail
Diffstat (limited to 'app-i18n/canna/canna-3.6_p4.ebuild')
-rw-r--r-- | app-i18n/canna/canna-3.6_p4.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/app-i18n/canna/canna-3.6_p4.ebuild b/app-i18n/canna/canna-3.6_p4.ebuild new file mode 100644 index 000000000000..115ec4266cdb --- /dev/null +++ b/app-i18n/canna/canna-3.6_p4.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/canna/canna-3.6_p4.ebuild,v 1.1 2003/09/22 19:26:04 usata Exp $ + +inherit cannadic eutils + +MY_P="Canna36${PV#*_}" + +DESCRIPTION="A client-server based Kana-Kanji conversion system" +HOMEPAGE="http://canna.sourceforge.jp/" +SRC_URI="mirror://sourceforge.jp/canna/6059/${MY_P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha" + +DEPEND="virtual/glibc + x11-base/xfree + >=sys-apps/sed-4" +RDEPEND="virtual/glibc" + +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' + epatch ${FILESDIR}/${P}-gentoo.diff +} + +src_compile() { + xmkmf || die + make Makefiles || die + # make includes + make canna || die +} + +src_install() { + make DESTDIR=${D} install || die + make DESTDIR=${D} install.man || die + + 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* + exeinto /etc/init.d ; newexe ${FILESDIR}/canna.initd.new canna || die + insinto /etc/conf.d ; newins ${FILESDIR}/canna.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_prerm () { + + if [ -S /tmp/.iroha_unix/IROHA ] ; then + einfo + einfo "Stopping Canna for safe unmerge" + einfo + /etc/init.d/canna stop + fi + if [ -e /var/lib/canna/dic/canna/dics.dir ] ; then + # no need to keep dics.dir if canna is not installed + rm -f /var/lib/canna/dic/canna/dics.dir + fi +} |