/[gentoo-x86]/app-i18n/nkf/nkf-2.0.7_beta1.ebuild
Gentoo

Contents of /app-i18n/nkf/nkf-2.0.7_beta1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Sep 17 14:36:57 2007 UTC (12 years, 4 months ago) by hattya
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
cleaned out old ebuilds.
(Portage version: 2.1.3.9)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/nkf-2.0.7_beta1.ebuild,v 1.2 2006/12/20 23:24:23 flameeyes Exp $
4
5 inherit toolchain-funcs eutils perl-app distutils
6
7 MY_PV="${PV//./}"
8 MY_P="nkf${MY_PV/_beta/b}"
9 DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support"
10 HOMEPAGE="http://sourceforge.jp/projects/nkf/"
11 SRC_URI="mirror://sourceforge.jp/nkf/20055/${MY_P}.tar.gz"
12
13 LICENSE="as-is"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
16 IUSE="perl linguas_ja"
17 #IUSE="${IUSE} python"
18
19 DEPEND=""
20
21 S="${WORKDIR}/${MY_P%%b*}"
22
23 src_unpack() {
24 unpack ${A}
25
26 sed -i -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
27 "${S}/Makefile"
28 }
29
30 src_compile() {
31 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" nkf || die
32 if use perl; then
33 cd "${S}/NKF.mod"
34 perl-module_src_compile
35 perl-module_src_test
36 fi
37 #if use python; then
38 # cd ${WORKDIR}
39 # epatch ${FILESDIR}/nkf-python.patch
40 # cd ${S}/NKF.python
41 # distutils_src_compile
42 # src_test
43 #fi
44 }
45
46 src_install() {
47 dobin nkf || die
48 doman nkf.1
49 if use linguas_ja; then
50 ./nkf -e nkf.1j > nkf.1
51 doman -i18n=ja nkf.1
52 fi
53 dodoc INSTALL* nkf.doc
54 if use perl; then
55 cd "${S}/NKF.mod"
56 perl-module_src_install
57 fi
58 #if use python; then
59 # cd ${S}/NKF.python
60 # distutils_src_install
61 #fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20