blob: 609d5068ddd87a1aa3f36b662a65e8fb987bc4d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
inherit autotools eutils
DESCRIPTION="Toolkit for Internationalized Domain Names (IDN)"
HOMEPAGE="https://www.nic.ad.jp/ja/idn/idnkit/download/"
SRC_URI="https://www.nic.ad.jp/ja/idn/idnkit/download/sources/${P}-src.tar.gz"
LICENSE="JNIC"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
IUSE="static-libs"
DEPEND="virtual/libiconv"
S=${WORKDIR}/${P}-src
src_prepare() {
# Bug 263135, old broken libtool bundled
rm -f aclocal.m4 || die "rm failed"
epatch "${FILESDIR}"/${P}-autotools.patch
epatch "${FILESDIR}"/${P}-test-subdirs.patch
mv configure.{in,ac} || die
eautoreconf
}
src_configure() {
local myconf=""
if has_version dev-libs/libiconv; then
myconf="--with-iconv"
fi
econf $(use_enable static-libs static) ${myconf}
}
src_install() {
default
use static-libs || find "${ED}" -name 'lib*.la' -delete
dodoc ChangeLog DISTFILES NEWS README README.ja
}
|