| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/libtifiles2/libtifiles2-1.1.5.ebuild,v 1.2 2012/05/04 08:22:50 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit multilib
|
| 8 |
|
| 9 |
DESCRIPTION="Library for TI calculator files"
|
| 10 |
HOMEPAGE="http://lpg.ticalc.org/prj_tilp/"
|
| 11 |
SRC_URI="mirror://sourceforge/tilp/tilp2-linux/${P}.tar.bz2"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
| 16 |
IUSE="doc nls static-libs"
|
| 17 |
|
| 18 |
RDEPEND="dev-libs/glib:2
|
| 19 |
>=sci-libs/libticables2-1.3.3
|
| 20 |
>=sci-libs/libticonv-1.1.3
|
| 21 |
nls? ( virtual/libintl )"
|
| 22 |
|
| 23 |
DEPEND="${RDEPEND}
|
| 24 |
virtual/pkgconfig
|
| 25 |
nls? ( sys-devel/gettext )"
|
| 26 |
|
| 27 |
DOCS=( AUTHORS LOGO NEWS README ChangeLog docs/api.txt )
|
| 28 |
|
| 29 |
src_prepare() {
|
| 30 |
sed -e '/define _ZLIBIOAPI_H/ a#define OF(x) x' \
|
| 31 |
-i src/minizip/ioapi.h || die #403387
|
| 32 |
}
|
| 33 |
|
| 34 |
src_configure() {
|
| 35 |
econf \
|
| 36 |
--disable-rpath \
|
| 37 |
$(use_enable nls) \
|
| 38 |
$(use_enable static-libs static)
|
| 39 |
}
|
| 40 |
|
| 41 |
src_install() {
|
| 42 |
default
|
| 43 |
use doc && dohtml docs/html/*
|
| 44 |
use static-libs || rm -f "${D}"/usr/$(get_libdir)/${PN}.la
|
| 45 |
}
|