57 lines
1.2 KiB
Bash
57 lines
1.2 KiB
Bash
# Copyright 1999-2016 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI="6"
|
|
|
|
inherit autotools eutils
|
|
|
|
MY_P="${P^g}"
|
|
|
|
DESCRIPTION="A Unix system friendly Scheme Interpreter"
|
|
HOMEPAGE="http://practical-scheme.net/gauche/"
|
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
|
IUSE="ipv6 libressl test"
|
|
|
|
RDEPEND="sys-libs/gdbm"
|
|
DEPEND="${RDEPEND}
|
|
test? (
|
|
!libressl? ( dev-libs/openssl:0 )
|
|
libressl? ( dev-libs/libressl )
|
|
)"
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-0.9-rpath.patch
|
|
"${FILESDIR}"/${PN}-0.9-gauche.m4.patch
|
|
"${FILESDIR}"/${PN}-0.9-ext-ldflags.patch
|
|
"${FILESDIR}"/${PN}-0.9-xz-info.patch
|
|
"${FILESDIR}"/${PN}-0.9-rfc.tls.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
mv gc/src/*.[Ss] gc || die
|
|
sed -i "/^EXTRA_libgc_la_SOURCES/s|src/||g" gc/Makefile.am
|
|
|
|
default
|
|
eautoconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
$(use_enable ipv6) \
|
|
--with-slib="${EPREFIX}"/usr/share/slib
|
|
}
|
|
|
|
src_test() {
|
|
emake -j1 -s check
|
|
}
|
|
|
|
src_install() {
|
|
emake -j1 DESTDIR="${D}" install-pkg install-doc
|
|
dodoc AUTHORS ChangeLog HACKING README
|
|
}
|