| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-shells/squirrelsh/squirrelsh-1.2.6.ebuild,v 1.1 2012/03/13 11:39:20 blueness Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit eutils multilib toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="An advanced, cross-platform object oriented scripting shell based
|
| 10 |
on the squirrel scripting language"
|
| 11 |
HOMEPAGE="http://squirrelsh.sourceforge.net/"
|
| 12 |
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
|
| 13 |
|
| 14 |
LICENSE="GPL-3"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
| 17 |
IUSE="doc"
|
| 18 |
|
| 19 |
RDEPEND="dev-libs/libpcre"
|
| 20 |
DEPEND="${RDEPEND}
|
| 21 |
virtual/pkgconfig"
|
| 22 |
|
| 23 |
src_prepare() {
|
| 24 |
epatch "${FILESDIR}"/${PN}-rename-LDFLAGS.patch
|
| 25 |
epatch "${FILESDIR}"/${PN}-no-strip.patch
|
| 26 |
epatch "${FILESDIR}"/${PN}-fix-in_LDFLAGS.patch
|
| 27 |
epatch "${FILESDIR}"/${PN}-remove-forced-abi.patch
|
| 28 |
epatch "${FILESDIR}"/${PN}-no-docs.patch
|
| 29 |
}
|
| 30 |
|
| 31 |
src_configure() {
|
| 32 |
#This package uses a custom written configure script
|
| 33 |
./configure --prefix="${D}"/usr \
|
| 34 |
--with-cc="$(tc-getCC)" \
|
| 35 |
--with-cpp="$(tc-getCXX)" \
|
| 36 |
--with-linker="$(tc-getCXX)" \
|
| 37 |
--libdir=/usr/"$(get_libdir)" \
|
| 38 |
--with-pcre="system" \
|
| 39 |
--with-squirrel="local" \
|
| 40 |
--with-mime=no || die "configure failed"
|
| 41 |
}
|
| 42 |
|
| 43 |
src_install() {
|
| 44 |
emake DESTDIR="${D}" install
|
| 45 |
doman doc/${PN}.1
|
| 46 |
dodoc HISTORY INSTALL README
|
| 47 |
use doc && dodoc doc/*.pdf
|
| 48 |
}
|