summaryrefslogtreecommitdiff
blob: 65f0be97b11e7dab68c41df5de69a332a41de2ef (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

AUTOTOOLS_AUTORECONF=1

inherit eutils autotools-multilib

DATE="${PV##*_p}"
MY_PV="${PV%%_*}"
MY_P="${PN}-${DATE}-${MY_PV}"

DESCRIPTION="Port of the NetBSD editline library"
HOMEPAGE="http://thrysoee.dk/editline"
SRC_URI="http://thrysoee.dk/editline/${MY_P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"

RDEPEND="
	sys-libs/ncurses:0="

DEPEND="
	${RDEPEND}
	sys-devel/libtool
	virtual/pkgconfig"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	autotools-multilib_src_prepare
}

multilib_src_configure() {
	local myeconfargs=(
		--enable-widec
		$(use_enable examples)
	)

	autotools-utils_src_configure
}

src_compile() {
	autotools-multilib_src_compile
}

multilib_src_install() {
	emake install DESTDIR="${D}"
}

src_install() {
	autotools-multilib_src_install
}