| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/jimtcl/jimtcl-0.70_pre20110317.ebuild,v 1.2 2012/05/05 16:51:29 hwoarang Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit git-2
|
| 8 |
|
| 9 |
DESCRIPTION="Small footprint implementation of Tcl programming language"
|
| 10 |
HOMEPAGE="http://jim.tcl.tk"
|
| 11 |
EGIT_REPO_URI="http://repo.or.cz/r/jimtcl.git"
|
| 12 |
|
| 13 |
LICENSE="LGPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS=""
|
| 16 |
IUSE="doc static-libs"
|
| 17 |
DEPEND="doc? ( app-text/asciidoc )
|
| 18 |
app-arch/unzip"
|
| 19 |
|
| 20 |
src_configure() {
|
| 21 |
! use static-libs && myconf=--with-jim-shared
|
| 22 |
econf ${myconf}
|
| 23 |
}
|
| 24 |
|
| 25 |
src_compile() {
|
| 26 |
emake all
|
| 27 |
use doc && emake docs
|
| 28 |
}
|
| 29 |
|
| 30 |
src_install() {
|
| 31 |
dobin jimsh
|
| 32 |
use static-libs && {
|
| 33 |
dolib.a libjim.a
|
| 34 |
} || {
|
| 35 |
dolib.so libjim.so
|
| 36 |
}
|
| 37 |
insinto /usr/include
|
| 38 |
doins jim.h jimautoconf.h jim-subcmd.h jim-signal.h
|
| 39 |
doins jim-win32compat.h jim-eventloop.h jim-config.h
|
| 40 |
dodoc AUTHORS README TODO
|
| 41 |
use doc && dohtml Tcl.html
|
| 42 |
}
|