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

Diff of /app-i18n/nkf/nkf-2.1.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.3
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/nkf-2.1.3.ebuild,v 1.1 2013/12/01 07:21:09 matsuu Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/nkf-2.1.3.ebuild,v 1.3 2014/08/07 10:05:36 jer Exp $
4 4
5EAPI="5" 5EAPI="5"
6PYTHON_COMPAT=( python{2_6,2_7} ) 6PYTHON_COMPAT=( python{2_6,2_7} )
7inherit eutils distutils-r1 perl-module toolchain-funcs 7inherit eutils distutils-r1 perl-module toolchain-funcs
8 8
11SRC_URI="mirror://sourceforge.jp/nkf/59912/${P}.tar.gz 11SRC_URI="mirror://sourceforge.jp/nkf/59912/${P}.tar.gz
12 python? ( http://dev.gentoo.org/~naota/files/NKF_python20090602.tgz )" 12 python? ( http://dev.gentoo.org/~naota/files/NKF_python20090602.tgz )"
13 13
14LICENSE="ZLIB" 14LICENSE="ZLIB"
15SLOT="0" 15SLOT="0"
16KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-macos" 16KEYWORDS="~alpha ~amd64 hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-macos"
17IUSE="perl python linguas_ja" 17IUSE="perl python linguas_ja"
18 18
19src_prepare() { 19src_prepare() {
20 sed -i \ 20 sed -i \
21 -e "/^CFLAGS/s:-O2:${CFLAGS}:" \ 21 -e '/^CFLAGS/{s|-g -O2||;s|=|+=|;}' \
22 -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \ 22 -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
23 Makefile || die 23 Makefile || die
24 24
25 if use python; then
26 mv "${WORKDIR}/NKF.python" "${S}" || die 25 mv "${WORKDIR}/NKF.python" "${S}" || die
27 sed -i -e "s/-s/${CFLAGS}/" NKF.python/setup.py || die 26 epatch "${FILESDIR}"/${P}-strip.patch
28 fi
29} 27}
30 28
31src_compile() { 29src_compile() {
32 emake CC="$(tc-getCC)" nkf || die 30 emake CC="$(tc-getCC)" nkf || die
33 if use perl; then 31 if use perl; then

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20