You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
939 B
43 lines
939 B
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
|
|
inherit flag-o-matic multilib toolchain-funcs
|
|
|
|
DESCRIPTION="Perl package for Tcl"
|
|
HOMEPAGE="http://jfontain.free.fr/tclperl.htm"
|
|
SRC_URI="http://jfontain.free.fr/${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~ppc x86"
|
|
IUSE=""
|
|
|
|
DEPEND="
|
|
>=dev-lang/tcl-8.3.3:0
|
|
>=dev-lang/perl-5.6.0
|
|
sys-libs/binutils-libs"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_compile() {
|
|
append-flags -fPIC
|
|
|
|
# ./build.sh
|
|
perl Makefile.PL || die
|
|
emake OPTIMIZE="${CFLAGS}" Tcl.o
|
|
|
|
$(tc-getCC) -shared ${LDFLAGS} ${CFLAGS} -o tclperl.so.${PV} -DUSE_TCL_STUBS \
|
|
tclperl.c tclthread.c `perl -MExtUtils::Embed -e ccopts -e ldopts` \
|
|
/usr/$(get_libdir)/libtclstub`echo 'puts $tcl_version' | tclsh`.a Tcl.o || die
|
|
}
|
|
|
|
src_install() {
|
|
exeinto /usr/$(get_libdir)/${P}
|
|
doexe tclperl.so.${PV}
|
|
doexe pkgIndex.tcl
|
|
|
|
dodoc CHANGES README
|
|
dohtml tclperl.htm
|
|
}
|