blob: 1b508b7685f9cae37d97b1a30fbb8cdc7b1fa32c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gperiodic/gperiodic-2.0.10-r2.ebuild,v 1.2 2011/12/11 09:21:03 phajdan.jr Exp $
EAPI="2"
inherit toolchain-funcs eutils
DESCRIPTION="Periodic table application for Linux"
SRC_URI="http://www.frantz.fi/software/${P}.tar.gz"
HOMEPAGE="http://www.frantz.fi/software/gperiodic.php"
KEYWORDS="~amd64 x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="nls"
RDEPEND=">=sys-libs/ncurses-5.2
x11-libs/gtk+:2
x11-libs/cairo[X]
nls? ( sys-devel/gettext )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_prepare() {
use nls && myopts="enable_nls=1" || myopts="enable_nls=0"
epatch "${FILESDIR}"/${P}-makefile.patch
}
src_compile() {
emake CC=$(tc-getCC) ${myopts} || die
}
src_install() {
emake DESTDIR="${D}" ${myopts} install || die
dodoc AUTHORS ChangeLog README NEWS || die
}
|