blob: 061edf95e0c94241edcbb5c4b668a5b3d00c9e94 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit toolchain-funcs
DESCRIPTION="Multi octet character encoding handling library"
HOMEPAGE="http://pub.ks-and-ks.ne.jp/prog/libmoe/"
SRC_URI="http://pub.ks-and-ks.ne.jp/prog/pub/${P}.tar.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
RDEPEND="dev-lang/perl"
DEPEND="${RDEPEND}"
HTML_DOCS=( libmoe.shtml )
PATCHES=(
"${FILESDIR}/${P}-gentoo.patch"
"${FILESDIR}/${P}-makefile.patch"
"${FILESDIR}/${P}-gcc5.patch" # taken from Debian
)
src_prepare() {
default
sed -i \
-e "/^PREFIX=/s:=.*:=${EPREFIX}/usr:" \
-e "/^LIBSODIR=/s:=.*:=\$\{PREFIX}/$(get_libdir):" \
-e "/^MANDIR=/s:=.*:=\$\{PREFIX}/share/man:" \
-e "/^CF=/s:=:=${CFLAGS} :" \
-e "/^LF=/s:=:=${LDFLAGS} :" \
-e "s:=gcc:=$(tc-getCC):" \
-e "/^AR=/s:=ar:=$(tc-getAR):" \
Makefile || die
}
|